JSF (MyFaces) Action issue

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top