i think you have a nested h:form in your application, JSF 2 doesn't support this, when you deploy your application to AS 7, JSF 2.1 by default bundled with your application, please confirm if you have nested forms or not.
I am not sure if what I have is called a nested form.But what I have is like this:
1. broadcastmsg.xhtml ( This page has a button which starts the first page and it is inside h:form )
page1.xhtml (h:form is the root tag in the page)
page2.xhtml (h:form is the root tag in the page)
page3.xhtml (h:form is the root tag in the page)
page4.xhtml (h:form is the root tag in the page)
Is that called nested form?
If yes what should I use instead inside the four pages of my wizard ?
you didn't answer me quite correctly , anyway, nested forms means that your generated html doesn't have a code like this:
if you already have your JSF jars in your WEB-INF/lib directory, try adding this to your web.xml :
In my jsf pages I dont have any nested forms.But I dont know if there are nested forms in the generated html because I tried to discover
that but I could not because it is hard to know that in the generated html.
I also noticed that if I click on any action button in the second page it sends me to the first page even if I commited the code in the called method.
Is that a bug in AS7 or what should I do?
It was something silly.
I changed the bean scope from request to session.