• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validateLongRange Button error

 
Minni Sharma
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17616
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic