6 Replies Latest reply on Apr 22, 2012 3:23 AM by Haroon Foad

    Wizard in JBoss AS7

    Haroon Foad Newbie

      Dear all,

      I have created a wizard form using jsf1.2 and richfaces 3.3.3.Final. And it was working fine in JBoss AS4.

      After migrating from AS4 to AS7 all jsf pages along with richfaces are working fine except the wizard form.

      I have 4 pages in the wizard form.

      I have open the first page, second page, but when I click next on the second page , it goes to the first page.

      There is no error in log error , nor in the page.

       

      Any idea can help will be appreciated.

        • 1. Re: Wizard in JBoss AS7
          iabughosh Master

          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
            Haroon Foad Newbie

            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 Master

              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
                Haroon Foad Newbie

                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.

                • 5. Re: Wizard in JBoss AS7
                  Haroon Foad Newbie

                  Any idea.

                  • 6. Re: Wizard in JBoss AS7
                    Haroon Foad Newbie

                    It was something silly.

                    I changed the bean scope from request to session.