- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2015 04:57 PM
Hello,
On the create view of one of my documents I have a list box with 3 values: a, b, c, and a date picker.
I need the date to be set as mandatory only if a or b is present in the list box.
I've been reading here and there about JSF and found that the most approaching answer was given by this topic on stackoverflow:
But when I try to reproduce this kind of declaration inside my layout definition, it just doesn't work.
Can anyone please share a sample ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2015 01:49 PM
Hi,
You're looking for cross validation, you should checkout http://www.nuxeo.com/blog/cross-validation-with-jsf/ or http://stackoverflow.com/questions/6282466/jsf-doesnt-support-cross-field-validation-is-there-a-work...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2015 01:49 PM
Hi,
You're looking for cross validation, you should checkout http://www.nuxeo.com/blog/cross-validation-with-jsf/ or http://stackoverflow.com/questions/6282466/jsf-doesnt-support-cross-field-validation-is-there-a-work...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2015 07:48 AM
Thanks you! For any reason I had to use getSubmittedValue() instead of getLocalValue() to get it done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2015 10:03 AM
That's the right one to use when dealing with an input component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2015 04:30 PM
Thanks for this usefull precision
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2017 10:29 AM
Hey Antoine Cordier,did you achieve this in client side without pressing the submit button?
