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'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<render-config default=3D"About =
Apache Pluto"></div><div>=A0=A0 =A0 =A0 =A0<page name=3D"Ab=
out Apache Pluto" uri=3D"/WEB-INF/themes/pluto-default-theme.jsp&=
quot;></div><div>
=A0=A0 =A0 =A0 =A0 =A0 =A0<portlet context=3D"/pluto" name=3D&=
quot;AboutPortlet"/></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<portle=
t context=3D"/testsuite" name=3D"TestPortlet1"/></di=
v><div>=A0=A0 =A0 =A0 =A0</page></div>
<div>=A0=A0 =A0 =A0 =A0<page name=3D"Test Page" uri=3D"/W=
EB-INF/themes/pluto-default-theme.jsp"></div><div>=A0=A0 =A0 =A0 =
=A0 =A0 =A0<portlet context=3D"/testsuite" name=3D"TestPo=
rtlet1"/></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<portlet context=
=3D"/testsuite" name=3D"TestPortlet2"/></div>
<div>=A0=A0 =A0 =A0 =A0</page></div><div>=A0=A0 =A0 =A0 =A0<page n=
ame=3D"JSR 286 Tests" uri=3D"/WEB-INF/themes/pluto-default-t=
heme.jsp"></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<portlet context=
=3D"/testsuite" name=3D"286TestPortlet"/></div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0<portlet context=3D"/testsuite"=
name=3D"286TestCompanionPortlet"/></div><div>=A0=A0 =A0 =A0 =
=A0</page></div><div>=A0=A0 =A0 =A0 =A0<page name=3D"Pluto Ad=
min" uri=3D"/WEB-INF/themes/pluto-default-theme.jsp"></di=
v>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0<portlet context=3D"/pluto" nam=
e=3D"PlutoPageAdmin"/></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<=
;portlet context=3D"/pluto" name=3D"AboutPortlet"/><=
/div><div>=A0=A0 =A0 =A0 =A0</page></div>
<div>=A0=A0 =A0</render-config></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'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--