3 Replies Latest reply on Nov 22, 2007 2:01 AM by Arne Luedtke

    Problem with Refresh of IFrame using IFramePortlet.

    Gopi Surabhi Newbie

      Hi,

      I'm using the IFramePortlet in my portal. The Issue I'm facing is when I maximize/ minimize / normal the IFrame window, the IFrame is loaded again with the same initial page configured. I'm loosing all the navigaitons done till that point. Has anyone came across this problem, pls suggest the solution.

      BTW, I'm using the IFramePortlet downloaded from

      http://labs.jboss.com/portletswap/downloads/portlets/miscellaneous/?action=a&windowstate=maximized

      Thanks

        • 1. Re: Problem with Refresh of IFrame using IFramePortlet.
          Arne Luedtke Newbie

          Hy there,

          I had the same Problem. But that is no Bug, it always happens, when you use IFrames. The Problem is, that in the IFrame the Source URL of the Content is hardcoded. Everytime you refresh the whole IFrame Container, the Source is refreshed. And because of that your Content gets refreshed.

          I had an Idea how to solve this, but it needs a modifikation in the IFramePortlet, and you have to be able to put a Filter before the Content Website

          Greetings
          Soon5

          • 2. Re: Problem with Refresh of IFrame using IFramePortlet.
            Gopi Surabhi Newbie

            Hi,

            Can you suggest how to implement the solution? I can modify the IFramePortlet and work with it.

            Thanks

            • 3. Re: Problem with Refresh of IFrame using IFramePortlet.
              Arne Luedtke Newbie

              Hy,

              I have to say, that I haven't tested this idea because I had no time, but if you want, you can try.

              The idea is, that you put a filter before the applikation that you want to display in the IFrame. That filter does nothing but writing the actual called URL, identified by the session ID into the Database.

              Your IFrame Portlet uses the session ID, to get the last URL from the database, and uses that URL as Source. So the IFrame always displays the last visited URL. It should work for all GET operations. POSTs won't work, but I think thats not a problem.

              There is some more logik needed, like dropping old entrys in the database, when session is invalidatet or User logs out.

              Greetings

              Soon5