This content has been marked as final.
Show 3 replies
-
1. Re: validate h:textInput only if any value is entered
lfryc May 9, 2011 5:27 AM (in response to nikh123123)Hi Nikhil, it seems like an issue (validation should not be processed when @required=false and input is empty), could you please fire RichFaces JIRA issue [1]?
But as a workaround, you can fix your pattern to state something like ^(|\d{10})$ - it means "empty or 10 decimals".
Regards, Lukas
-
2. validate h:textInput only if any value is entered
nikh123123 May 9, 2011 6:43 AM (in response to lfryc)@Lukas, Thanks for the info and workaournd Lukas!
Here's the JIRA issue https://issues.jboss.org/browse/RF-10977
-
3. validate h:textInput only if any value is entered
ilya_shaikovsky May 9, 2011 8:21 AM (in response to nikh123123)I think that http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#validation-empty-fields also should be considered. I will comment the issue accordingly.