• Post Reply Bookmark Topic Watch Topic
  • New Topic

Skip validation while opening modal panel  RSS feed

 
Shaiju scientia
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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
 
Anand Ramesh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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;
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!