How to provide validation for inputText component in rich:dataTable?
Suppose that sessionScope listVlaues has two objetcs. So dataTable contains two outputTexts and two InputTexts. Now my requirement is, I have to show a validation message "Enter only Number" for inputText under below of inputText.
How can i achieve this? kindly post the reply as soon as possible
You've miscoded your inputText. It would be more like:
I don't remember the exact name or format of the regex pattern validator, however, so this is just a guideline. Also, as written the error message will be to the right of the text control unless you have text wrapping in that column. Solutions include the brute-force approach of adding a raw HTML <br/> tag to force a new line (not recommended) or wrapping the input control and message in a dataGrid component that's 1 column wide.
An IDE is no substitute for an Intelligent Developer.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: validation of inputText in rich:dataTable