3 Replies Latest reply on Jan 18, 2007 6:18 AM by djmacpac

    How to create a home button for the portal

    djmacpac

      Hi,

      i want to create a home button, that when it is clicked, brings back the user to the starting screen that ist showed to him after the login. all variables and parameters should be deleted.

      Does it work with:

      response.setHeader("Pragma", "no-cache");
      response.setHeader("Cache-Control", "no-cache");
      

      ? But where do i have to implement this? My Home Button should be rendered in a jsp, that is included in a portlet through a request.dispatcher...

      I'm happy about any kind of help

        • 1. Re: How to create a home button for the portal
          djmacpac

          Hi,
          have a new Problem with the home button.
          It should be in the index.JSP of my layout(generic for example). How does it work, that I can set Paramters for a special Portlet in a link or something like this...

          • 2. Re: How to create a home button for the portal
            antoine_h

            what you want to do is, if I understand well, :
            after login, all portlet have a state (stateA)
            then the user do things : some portlets goes into stateB, stateC etc...

            you want, by clicking a button, that all the portlets go back to stateA.

            => find a way to store or have each portlet to go to the stateA
            and use the IPC (inter portlet communication) to tell all the portlet to reset to stateA.

            but a portal is not supposed to work like that... so why not, but it may be a lot of work and trouble to reach this...

            hope this helps,...

            • 3. Re: How to create a home button for the portal
              djmacpac

              you understood well :-)

              So the problem is not the home itself. I have implemented one in a portlet and it works fine.

              But I want to have a home Button in my Layout JSP (for example the generic index.jsp). Does this work? If yes how?