On Tue, Jul 9, 2013 at 4:35 PM, <pierrick.bena@intech.lu> wrote:
Hi everybody !
I have a problem with validation using regular expression.
I created a class with a number property "price". I defined the Validation Regular Expression : [-+]?[0-9]*[.,]?[0-9]+ and the Validation Message is stored in a translation page.
I would like that the Validation message appears when I try to edit the price property of an object of this class with a bad value. Currently it seems my regexp is not used : I never see my validation message.
I tried to use this page but no success : http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid...
You mean http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+valid... ? So you added the xvalidate hidden input to your form? Can you check that you have it on the client (inspect with Firebug or other browser dev tool)? What happens on save when the price value is invalid? Is the page saved with the bad value? What version of XWiki are you using? Hope this helps, Marius
Need help please.
Thanks a lot!
Pierrick
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users