• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Skip validation while opening modal panel

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a form where it got an icon to open an LOV(List Of Values) panel.The LOV panel is nothing but a modal panel.
The original form(the parent form ) got couple of inputText with required="true" validation. To open the LOV panel i.e the modal panel, I am using a h:commandLink


Now the issue is , the moment I click on this button, the required="true" validation for the inputTextBox get fired and stays back in the page,with validation error messages.
If I enter some value in the text box , the modal panels shows up ,as the validation is passed this time.

I have tried using a4j:commanButton also , but without any luck.
Can anybody suggest ??

Thanks in advance.
Shaiju
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should help: http://java.dzone.com/news/richfaces-region-partial-jsf . You can probably also use immediate="true".

Max
http://mkblog.exadel.com
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you solved it yet ?
If not,
You may need to consider using PhaseListener to deactivate page validation on

public void afterPhase(PhaseEvent arg0)

with custom code

and the phase should be

public PhaseId getPhaseId() {
return PhaseId.APPLY_REQUEST_VALUES;
}
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic