Mittwoch, 10. März 2010

More about required="true" and partialSubmit

After some research in the iceFaces forums I found out that partialSubmit by design disables all required=true settings on all the form's fields but the current one.

The question remains why required=true does not come back on subsequent form submits....

ICEFaces validation and required="true"

Today I found out the following about ICEFaces 1.8.2 validation:
  • required="true" does not work whenever a partial submit is sent (e.g. by an user selecting a date with an ice:selectInputDate)
  • as a consequence empty fields which have required="true" set just don't throw an validation error
  • other validators trigger correctly
  • this behaviour is even more problematic because in subsequent form submits (partial or complete ones) the required="true" behaviour does not come back, so it's possible to send the form without filling out the fields which are marked as required="true"
It seems like the only way out of this is to use custom validation in the submit action...that's no good news as it makes the built in validation quiet useless.

Thanks for comments and work arounds or clarifications.