2 Replies Latest reply on Dec 14, 2011 12:33 PM by dgalland

    PanelMenuItem and Dynamic ui:include view not changed

    dgalland

      I use RF 4.1 M2 with JSF 2.0 Mojarra 2.1.3 and I have a problem with a dynamic ui:include

      Here is my code (in a left menu)

       

        <h:commandLink

          value="Search"

          action="person/search"

          immediate="true"

        />

      ...

         <rich:panelMenu

          mode="server"

        >

            <rich:panelMenuItem

              label="Search"

              action="person/search"

              immediate="true"

            />

       

      The outcome "person/search" is handled by a custom NavigationHandler not described here wich control a dynamic ui:include in the content of the page:

      ...

      <ui:define name="content">

        <h:form>

         <ui:include src="#{includeControl.content}" />

        </ice:form>

      </ui:define>

      ...

       

      The plain JSF commandLink works but the rich:panelMenuItem doesnt work, the view doesnt change.

      Note that the view changes after a refresh in the browser.

      I read many discussions about potential problems with ui:include specially with JSF 2.0

      But in that case it seems that it works with plain JSF and not with RF

      Could someone have an explanation about this rendering difference between JSF and RF ?

      I tried with other frameworks the problem arise also with PrimeFaces but not with IceFaces.

      Regards.

      Dominique Galland

        • 1. Re: Dynamic ui:include problem view not changed
          dgalland

          I spent some time on this problem, without any result.

          I put the commandLink in a panelMenuItem

             <rich:panelMenu

              mode="server"

            >

                <rich:panelMenuItem>

                  <h:commandLink

                     value="Search"

                     action="person/search"

                     immediate="true"

                   />

                 </rich:panelMenuItem>

                <rich:panelMenuItem

                  label="Search"

                  action="person/search"

                  immediate="true"

                />

          ...

          The first panelMenuItem works but not the second one, I cant understand the différence

          It is not clear to know in the documentation and the showcase if the panelMenu by itself has an action

          Dominique Galland

          • 2. Re: Dynamic ui:include problem view not changed
            dgalland

            I found that it works if every panelMenuItem has the mode="server" attribute

            Does the panelMenu mode="server" propagates on included panelMenuItem ?

            Any feedback from the development team ?

            Regards.

            Dominique Galland