How to validate Text Box field in JSF
Hi all,
I am developing the program using JSF with JBOSS as server. I am having a program with two fields Code, Description. I am having option (ADD / MOD) as List Box. If Add / Mod has been selected then Code should be validated from the database but using struts i can able to develop but using JSF i am not able to continue further can any one help in this regard.
Thanks in advance,
V.Lakshmi Narayanan
[431 byte] By [
vlnmcaa] at [2007-10-2 18:48:35]

its a little a hard to understand what you want to do ...
Do you want to xecute two different validation methods regarding to the value selected in the listbox?
where validation is checking text in input field versus database?
if so you have to write a "custom validator".
You can download the chapter "Conversion and Validation" from the nice JSF Book Core JSF from here: http://www.horstmann.com/corejsf/
Hi,
I am not getting your point. I am new to JSF and previously i am working in VB and there we are having field by field validation, only if value is present in database we can set the focus to next field. i want the same concept if any body has done please give me the coding so that it will be helpful to develop the programs.
Thanks
what do you mean with "Code should be validated from the database"
do you just want to test on equality?
the component pringi posted is a part of apache myfaces. amongst other things it provides some additional components. see their homepage for details.
read sth about validation, you wont get the point with some snippets posted.