cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I do a Cross validation with jsf for metadata of a document type in nuxeo studio

geekonspace
Star Contributor
Star Contributor

Hi, I had defined a document type in my nuxeo studio, this document has two fields: "begin time" and "end time". I want to validate in the creation time, "begin time" is less than "end time". I was reading this post: Cross validation with jsf

But, how would I get the inputTexts ids if these are generate automatically with the documentLayout tag? and how can I define the inputHidden in my nuxeo studio?

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

In studio it's not really easy right now to get the widget name, but looking at your generated extensions.xml file you should be able to retrieve the generated widget names (generally it's derived from the field name, with a counter to handle duplications). If your layout definition does not change much, their name should not change.

The inputHidden widget can be defined using an advanced "generic" widget, making it use the type "template", and uploading your template in Studio.

Also note that in 5.7 a built-in "date range" widget type will be available, performing that validation natively.

View answer in original post

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

In studio it's not really easy right now to get the widget name, but looking at your generated extensions.xml file you should be able to retrieve the generated widget names (generally it's derived from the field name, with a counter to handle duplications). If your layout definition does not change much, their name should not change.

The inputHidden widget can be defined using an advanced "generic" widget, making it use the type "template", and uploading your template in Studio.

Also note that in 5.7 a built-in "date range" widget type will be available, performing that validation natively.

Thanks!! I will try it

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.