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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -