cancel
Showing results for 
Search instead for 
Did you mean: 

Validate text field on document creation

hgonzalez_
Confirmed Champ
Confirmed Champ

I have a custom document and I want to validate one of the fields, which is a text field, before document creation. Validation means parsing it against a regular expression. Is there any way to do this in Nuxeo?

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Each field is implemented as a JSF component. You can use validation system.

Easy way with Nuxeo Studio/IDE, here is the documentation:

http://doc.nuxeo.com/x/XYSE

But if you want to do it yourself, because you feel as an JSF expert :

http://doc.nuxeo.com/x/pgQz

View answer in original post

4 REPLIES 4

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Each field is implemented as a JSF component. You can use validation system.

Easy way with Nuxeo Studio/IDE, here is the documentation:

http://doc.nuxeo.com/x/XYSE

But if you want to do it yourself, because you feel as an JSF expert :

http://doc.nuxeo.com/x/pgQz

Hi have created a validator but nuxeo can't find it.

I just solved it.

I recommend to use Seam component instead a pure JSF validator, for refactoring and managing, all will be easier.