jQuery in Action, 3rd edition
The moose likes JSF and the fly likes validateLongRange Button error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "validateLongRange Button error " Watch "validateLongRange Button error " New topic
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: 17026
    
  26

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.
 
Have you checked out Aspose?
 
subject: validateLongRange Button error
 
It's not a secret anymore!