3 Replies Latest reply on Jul 2, 2013 10:09 AM by rutlucas

    Need to refresh browser on the maximize and minimize mode

    anishantony

      Hi all

      I need to refresh my whole brower when i switch from  maximize to minimize  view (from one view to another view) of portlet, How it is possible by using GateIn?.

      Currently only ajax request happen when i do those operation

       

      regards

       

      Anish Antony

        • 1. Re: Need to refresh browser on the maximize and minimize mode
          rutlucas

          Are you testing using a custom portlet or this is something that can reproduce with the default examples ?

           

          If you can attach a small example we can take a look into it.

           

          Thanks,

          Lucas

          • 2. Re: Need to refresh browser on the maximize and minimize mode
            anishantony

            Thanks Lucas Ponce

            I am testing using custom porlet by manually changing pages.xml and navigation.xml....  Here follows my pages.xml and portlet.xml

             

            Portlet.xml

            <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"

                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                         xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"

                         version="2.0">

             

             

                  <portlet>

                    <description>Sample Portlet</description>

             

                    <portlet-name>SamplePortlet</portlet-name>

                    <display-name>Sample Portlet</display-name>

             

                    <portlet-class>

                        com.sample.view.util.GenericPortlet

                    </portlet-class>

                    <init-param>

                        <name>default-view</name>

                        <value>/views/configuration/view/sample.jsp</value>

                    </init-param>

                    <expiration-cache>-1</expiration-cache>

             

                    <supports>

                        <mime-type>text/html</mime-type>

                        <portlet-mode>VIEW</portlet-mode>

                    </supports>

             

                    <portlet-info>

                        <title>Sample Portlet</title>

                        <short-title>SamplePortlet</short-title>

                        <keywords>JSF, Portlet</keywords>

                    </portlet-info>

                    ......

                </portlet>

             

            </portlet-app>

             

             

            Pages.xml

             

            <page>

                  <name>Sample Portlet</name>

                  <title>SamplePortlet</title>

                  <access-permissions>Administrator:/MYGROUP;</access-permissions>

                  <edit-permission>Administrator:/MYGROUP</edit-permission>

                  <show-max-window>false</show-max-window>

                  <container id="SampleContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">

                     <access-permissions>Administrator:/MYGROUP;</access-permissions>

                     <portlet-application>

                        <portlet>

                           <application-ref>sample</application-ref>

                           <portlet-ref>SamplePortlet</portlet-ref>

                        </portlet>

                        <title>Search Objects</title>

                        <access-permissions>Administrator:/MYGROUP;</access-permissions>

                        <show-info-bar>true</show-info-bar>

                        <show-application-state>true</show-application-state>

                        <show-application-mode>true</show-application-mode>

                        <description>Search Objects Portlet</description>

                     </portlet-application>

                  </container>

            ........

               </page>

            • 3. Re: Need to refresh browser on the maximize and minimize mode
              rutlucas

              Thanks Anish.

               

              We think this issue is related to this one:

               

              https://issues.jboss.org/browse/GTNPORTAL-3149

               

              We are going to investigate.

               

              Thanks for the test.

               

              Lucas