jsf bean validation with dto and validation in entities -
jsf capable automatically validate objects connected form. f.e. have entity person bean validation in there. can populate entity form using {form.entity.field}. jsf managed bean forced have entity entity getter getentity() (to automatic validation using annotations in object).
on other side, such solution not preferable , should use dtos in jsf managed beans. unfortunately, want bean validation logic keep in 1 place - entity.
is possible validate entity dto's annotations entity (not copying) automatically jsf (no or little code, using embedded jsf bean validator jsr-303)?
Comments
Post a Comment