-
1. Re: Wizard in JBoss AS7
iabughosh Apr 15, 2012 5:43 AM (in response to haroonfoad)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.
regards.
-
2. Re: Wizard in JBoss AS7
haroonfoad Apr 15, 2012 7:10 AM (in response to iabughosh)Dear Ibrahim:
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 ?
-
3. Re: Wizard in JBoss AS7
iabughosh Apr 16, 2012 1:58 AM (in response to haroonfoad)you didn't answer me quite correctly , anyway, nested forms means that your generated html doesn't have a code like this:
<form ....>
<form>
</form>
</form>
if you already have your JSF jars in your WEB-INF/lib directory, try adding this to your web.xml :
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
-
4. Re: Wizard in JBoss AS7
haroonfoad Apr 16, 2012 4:18 AM (in response to iabughosh)Dear Ibrahim,
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?
Please help.
-
-
6. Re: Wizard in JBoss AS7
haroonfoad Apr 22, 2012 3:23 AM (in response to haroonfoad)It was something silly.
I changed the bean scope from request to session.