Is it possible to create a4j:jsFunction that will call a method inside my managed bean and from there to perform forward to another jsf page ?
Thank’s In Advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it’s not possible because the
<a4j:jsFunction>will create a javascript method available in the HTML that communicates with the server via Ajax. Instead, you could do something ugly like this:In this case at the end of your js function, you will call the method of a
<a4j:commandButton>(also<a4j:commandLink>or any otherhcomponent) that could do the navigation.