[Gridsphere-users] using same portlet in multiple places

Thawan Kooburat kthawan at gmail.com
Wed Mar 5 20:20:49 PST 2008


   You have use portlet-frame label on each layout.xml

    On project1

           <portlet-tab label="Resources">
                <title lang="en">Resources</title>
                <table-layout>
                    <row-layout>
                        <column-layout>
                            <portlet-frame label="FirstResourceBrowserPortlet">

<portlet-class>gridportlets#ResourceBrowserPortlet</portlet-class>
                            </portlet-frame>
                        </column-layout>
                    </row-layout>
                </table-layout>
            </portlet-tab>

    On project2

           <portlet-tab label="Resources">
                <title lang="en">Resources</title>
                <table-layout>
                    <row-layout>
                        <column-layout>
                            <portlet-frame label="SecondResourceBrowserPortlet">

<portlet-class>gridportlets#ResourceBrowserPortlet</portlet-class>
                            </portlet-frame>
                        </column-layout>
                    </row-layout>
                </table-layout>
            </portlet-tab>

   Now you will have 2 instances of the same portlet


On Thu, Mar 6, 2008 at 2:46 AM, Mona <mona at sdsc.edu> wrote:
>
>
>  Hi:
>
>     I have a browse portlet that I'd like to use in multiple deployed
>  projects.  Is this doable and how can it be done?
>
>     What's happening is that the portlet shows up in both places fine by
>  adding that portlet to each project's layout.xml.  However, when I
>  perform an action on the browse portlet in project 2, it changes
>  screens and takes me to the original project 1.   How do I make it so
>  GridSphere does not switch project?
>
>     I'm using GridSphere 2.2.8.
>
>  thanks,
>  Mona
>
>  ****************************************************
>     Mona Wong-Barnum, portal developer
>     Data Central ( datacentral.sdsc.edu )
>     San Diego Supercomputer Center
>
>     "Use your head, live in your heart..."
>                      Chinese fortune cookie
>  ****************************************************
>
>  _______________________________________________
>  Gridsphere-users mailing list
>  Gridsphere-users at gridsphere.org
>  http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
>



-- 
Thawan Kooburat

Department of Computer Engineering
Faculty of Engineering
Chulalongkorn University
Bangkok Thailand


More information about the Gridsphere-users mailing list