B
Bhanu
I am using an action event, but it calls the action listener method in
my backing bean only once.
here is th part of code from jsp
<h:commandButton id = "purView" value = "#{msg.view_button2}"
actionListener = "#{personBean.toggleView}" immediate = "true"/>
and here is my backing bean method
public void toggleView(ActionEvent ae) {
this.viewCatalog = !this.viewCatalog;
System.out.println("method toggle called" + this.catalogView);
}
once I click the button i can see the string 'method toggle
calledfalse' on my tomcat console
but second time when i click the sam button page is reloaded but method
doesnt comes to the picture at all.
Can any one help me what may be the problem.
Thanks in advance
my backing bean only once.
here is th part of code from jsp
<h:commandButton id = "purView" value = "#{msg.view_button2}"
actionListener = "#{personBean.toggleView}" immediate = "true"/>
and here is my backing bean method
public void toggleView(ActionEvent ae) {
this.viewCatalog = !this.viewCatalog;
System.out.println("method toggle called" + this.catalogView);
}
once I click the button i can see the string 'method toggle
calledfalse' on my tomcat console
but second time when i click the sam button page is reloaded but method
doesnt comes to the picture at all.
Can any one help me what may be the problem.
Thanks in advance