Validate on multiple widget fields

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?

0 votes

1 answers

2027 views

ANSWER



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):

0 votes