| Author |
validateLongRange Button error
|
Minni Sharma
Greenhorn
Joined: Mar 03, 2010
Posts: 16
|
|
Hi All,
I am using jsf 1.1 and I am facing following problem
If "validateLongRange" returns a error(i.e the input is not a long number)the error mesaage is displayed correctly but the control doesnt goes to action class. Can I solve this is some way
<h:commandButton action="#{faces$Mailboxes.filterMailboxes}" id="filterId2" value="#{Web.Filter}" onclick="document.getElementById('mailbox_waitDlg').style.display='block' "styleClass="pushbutton" />
Thanks in advance
Minni
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14568
|
|
You would be defeating one of the primary principles of JSF if you did that.
In JSF, the contract is that EVERY submitted item MUST be valid or NONE of them will be updated and the action processor will not be invoked. Thus, the action processor is ensured that all data will be valid according the abilities of the validators used.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: validateLongRange Button error
|
|
|