- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 02:40 AM
Hi there.
I'm writing a edit page for a document that requires a combination of two fields to be unique. Is there a way of validating a component based on multiple widget fields in the layouts-contrib.xml file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 07:15 AM
Hi,
You can take example on what's been done in the default user layout to perform password confirm validation. The generic explanation on how to perform cross validation is here: http://blogs.nuxeo.com/dev/2009/03/cross-validation-with-jsf.html
You can take example on the default nuxeo implementation (layout configuration, custom widget template, and java code of the validation method):
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/OS...
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/we...
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/java/org/nux... (method validatePassword)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 07:15 AM
Hi,
You can take example on what's been done in the default user layout to perform password confirm validation. The generic explanation on how to perform cross validation is here: http://blogs.nuxeo.com/dev/2009/03/cross-validation-with-jsf.html
You can take example on the default nuxeo implementation (layout configuration, custom widget template, and java code of the validation method):
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/OS...
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/we...
- https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/java/org/nux... (method validatePassword)
