File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

validateLongRange Button error

Minni Sharma

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

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: validateLongRange Button error
jQuery in Action, 3rd edition