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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -