4 Replies Latest reply on Oct 30, 2008 3:04 PM by Bart DP

    Breadcrumbs

    Bart DP Newbie

      Hi all,


      I've read some issues about the breadcrumbs and also the seam documentatin, but it is not clear to me. :-(
      I have a little application where I want to show these things.
      Home page, overview products and add/edit product.


      (Home | Overview | Add)



      If I use


      value="#{facesContext.viewRoot.viewId}"
      


      in my xhtml page, I only get the link.
      Can someone help me with this?


      Bart



        • 1. Re: Breadcrumbs
          Bart DP Newbie

          I put these lines as help:


          <ice:outputText value="#{conversation.viewId} | "/>
          <ice:outputText value="#{conversation.description} | "/>
          <ice:outputText value="#{facesContext.externalContext.requestParameterMap.keySet()} | "/>
          <ice:outputText value="#{conversationStack.size()}"/>
          


          conversationStack size is 0, and with the keyset I can see the parameters in the request.



          I want a seam solution for breadcrumbs, is this possible?

          • 2. Re: Breadcrumbs
            Ingo Jobling Master

            According to the reference documentation, Breadcrumbs are useful in applications which use a nested conversation model
            Breadcrumbs


            So I think you need something like



            <page view-id="/myPage.xhtml">
                <begin-conversation nested="true" />
            </page>






            • 3. Re: Breadcrumbs
              Bart DP Newbie

              I use the following code in my pages.xml:


              <page view-id="/login.xhtml">
                <navigation>
                  <rule if="#{identity.loggedIn}">
                    <begin-conversation nested="true" />
                      <redirect view-id="/home.xhtml"/>
                  </rule>
                </navigation>
              </page>
              <page view-id="*">
                <navigation from-action="#{identity.logout}">
                  <rule if-outcome="logout">
                    <end-conversation />
                      <redirect view-id="/login/loginPage.xhtml"/>
                  </rule>
                </navigation>
                ...
              


              But where do I have to create my list of links and how exactly can I do this?


              • 4. Re: Breadcrumbs
                Bart DP Newbie

                a little error in my previous post, the redirect for the logout is:


                <redirect view-id="/login.xhtml"/>