Hi,
I am migrating my application from
JSF 1.2 to JSF 2.0 where in I have the following scenario in my JSF application where I am using <h:commandLink> to provide the step by step registration which is not working properly.
I have mainRegistration.xhtml file which includes either step1.xhtml or step2.xhtml or step3.xhtml based on some if condition, each of these 3 xhtmls have one form and one <h:commandLink> tag which calls respective action method (continueStep1(),continueStep2(),continueStep3()) in the same mangedbean which is a request scoped when we click on the command Link.
My problem is : when I request mainRegistration.xhtml for the first time, it includes step1.xhtml which renders a form with commandLink, after filling up the form and click on the link it calls continueStep1 method in the bean and sends the response back to the same page (mainRegistration.xhtml) this time it includes the step2.xhtml which renders a form with commandLink till this point it is fine.
But After filling up the form and click on the link it doesn't call any method but constructor only instead of calling continueStep2 method in the bean and sends the response back to the same page (mainRegistration.xhtml) becuase of this it includes step1.xhtml again instead of including step3.xhtml. I am not sure why it is not calling the method, it is just ending after constructor execution. it was perfectly working with JSF 1.2.
Thanks in advance....
My bean must be request scoped, because there are several issues in changing it into session scope. The same scenario is perfectly working with JSF 1.2