File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 15641
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validateLongRange Button error
 
Similar Threads
Action Class Not Called
How to send error message from action to action struts2
validateLongRange in JSF
Error while forwarding from struts.xml
The action name cannot be the same as the action suffix [Action]