jsf - model validation of table using extval -


The values ​​in the table in my page are in the editor. Something like this:

  & lt; H: DataTable var = "actor" value = "# {bean.actors}" & gt; & Lt; H: column & gt; & Lt; H: input value = "# {actor. Name}" /> & Lt; H: column & gt; & Lt; / H: datatable & gt;   

I want all the actor bean in the list. Actors are valid, when users click on the savings button So I put the following annotation inside my bean

  @BeanValidation (usergroup = default.clash, model validation = @ModelValidation (isActive = true)) Private list & lt; Actor & gt; the actors;   

inside my actor object

  @NotNull is the personal string name; @AssertTrue Public Boolean is invalid ()   

So non-annotation is valid for all actors, but AssewtTrue is not valid.

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -