Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Extend o:validateOrder to provide optional attribute #47
Would it be possible to extend the o:validateOrder component to provide an optional attribute so that if any of the client IDs specified in the components attribute contain a null value then the validation is skipped. The use case I've got is a form that has a start date and end date component both of which are optional and the user can popuate either or both components, and I would only like the o:validateOrder component to execute its validation if both start and end date components have been populated.
Whilst not needed in my use case another useful extension would be to include an o:validateOrder component which is based on o:validateAllOrNone
After a thought, I decided to remove nulls (and empty strings) from to-be-validated values. This responsibility should be up to the
The change is available in today's 2.0 snapshot https://oss.sonatype.org/content/repositories/snapshots/org/omnifaces/omnifaces/2.0-SNAPSHOT/ (which requires JSF 2.2 / CDI 1.0 though). Please give it a try.