Embedding Pluto 2

James Cook <[email protected]> Sun, 25 Jul 2010 23:35:47 -0400
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
--000e0cdfc91cbcb14a048c4215e6
Content-Type: text/plain; charset=ISO-8859-1

I have integrated the Pluto Portlet Driver in my web application, and setup
a Spring context which mimics the config that ships with Pluto.

I am at the point where I need to embed a portlet in my web application, and
I am confused over the next steps.

I don't want to give the user any control over where the portlets appear and
how they are configured. I just want to hardcode portlets into particular
spots in the web app. One of the config files I had to set up is the
pluto-portal-driver-config.xml file. This file has the render-config
section:

    <render-config default="About Apache Pluto">
        <page name="About Apache Pluto"
uri="/WEB-INF/themes/pluto-default-theme.jsp">
            <portlet context="/pluto" name="AboutPortlet"/>
            <portlet context="/testsuite" name="TestPortlet1"/>
        </page>
        <page name="Test Page"
uri="/WEB-INF/themes/pluto-default-theme.jsp">
            <portlet context="/testsuite" name="TestPortlet1"/>
            <portlet context="/testsuite" name="TestPortlet2"/>
        </page>
        <page name="JSR 286 Tests"
uri="/WEB-INF/themes/pluto-default-theme.jsp">
            <portlet context="/testsuite" name="286TestPortlet"/>
            <portlet context="/testsuite" name="286TestCompanionPortlet"/>
        </page>
        <page name="Pluto Admin"
uri="/WEB-INF/themes/pluto-default-theme.jsp">
            <portlet context="/pluto" name="PlutoPageAdmin"/>
            <portlet context="/pluto" name="AboutPortlet"/>
        </page>
    </render-config>

If the portlet driver requires the setup of this information I fear I am
barking up the wrong tree. Based on my use case, I shouldn't be setting up
pages or specifying which portlets reside on each page.

Should I be looking into embedding the portlet container and not the portlet
driver?

-- jim

--000e0cdfc91cbcb14a048c4215e6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have integrated the Pluto Portlet Driver in my web application, and setup=
 a Spring context which mimics the config that ships with Pluto.<div><br></=
div><div>I am at the point where I need to embed a portlet in my web applic=
ation, and I am confused over the next steps.</div>

<div><br></div><div>I don&#39;t want to give the user any control over wher=
e the portlets appear and how they are configured. I just want to hardcode =
portlets into particular spots in the web app. One of the config files I ha=
d to set up is the pluto-portal-driver-config.xml file. This file has the r=
ender-config section:</div>

<div><br></div><div><div>=A0=A0 =A0&lt;render-config default=3D&quot;About =
Apache Pluto&quot;&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;page name=3D&quot;Ab=
out Apache Pluto&quot; uri=3D&quot;/WEB-INF/themes/pluto-default-theme.jsp&=
quot;&gt;</div><div>

=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portlet context=3D&quot;/pluto&quot; name=3D&=
quot;AboutPortlet&quot;/&gt;</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portle=
t context=3D&quot;/testsuite&quot; name=3D&quot;TestPortlet1&quot;/&gt;</di=
v><div>=A0=A0 =A0 =A0 =A0&lt;/page&gt;</div>

<div>=A0=A0 =A0 =A0 =A0&lt;page name=3D&quot;Test Page&quot; uri=3D&quot;/W=
EB-INF/themes/pluto-default-theme.jsp&quot;&gt;</div><div>=A0=A0 =A0 =A0 =
=A0 =A0 =A0&lt;portlet context=3D&quot;/testsuite&quot; name=3D&quot;TestPo=
rtlet1&quot;/&gt;</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portlet context=
=3D&quot;/testsuite&quot; name=3D&quot;TestPortlet2&quot;/&gt;</div>

<div>=A0=A0 =A0 =A0 =A0&lt;/page&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;page n=
ame=3D&quot;JSR 286 Tests&quot; uri=3D&quot;/WEB-INF/themes/pluto-default-t=
heme.jsp&quot;&gt;</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portlet context=
=3D&quot;/testsuite&quot; name=3D&quot;286TestPortlet&quot;/&gt;</div>

<div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portlet context=3D&quot;/testsuite&quot;=
 name=3D&quot;286TestCompanionPortlet&quot;/&gt;</div><div>=A0=A0 =A0 =A0 =
=A0&lt;/page&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;page name=3D&quot;Pluto Ad=
min&quot; uri=3D&quot;/WEB-INF/themes/pluto-default-theme.jsp&quot;&gt;</di=
v>

<div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;portlet context=3D&quot;/pluto&quot; nam=
e=3D&quot;PlutoPageAdmin&quot;/&gt;</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt=
;portlet context=3D&quot;/pluto&quot; name=3D&quot;AboutPortlet&quot;/&gt;<=
/div><div>=A0=A0 =A0 =A0 =A0&lt;/page&gt;</div>

<div>=A0=A0 =A0&lt;/render-config&gt;</div></div><div><br></div><div>If the=
 portlet driver requires the setup of this information I fear I am barking =
up the wrong tree. Based on my use case, I shouldn&#39;t be setting up page=
s or specifying which portlets reside on each page.</div>

<div><br></div><div>Should I be looking into embedding the portlet containe=
r and not the portlet driver?</div><div><br></div><div>-- jim</div>

--000e0cdfc91cbcb14a048c4215e6--