Scott,
What version of J2 are you using? There were bugs with the nested
layouts in the 2.0 release. The latest svn HEAD version has most if not
all issues resolved. It looks like you have the right idea. Take a look
at the nested layouts examples under the
jetspeed/WEB-INF/pages/_user/user for more.
Randy
Scott Pezanowski wrote:
Hi,
Is it possible to have a portlet span across two columns in the
layout. I'd like to have two columns in my portal and have the portlet
that is in the top row span across both columns. And then have all the
other portlets layout in the two columns. Is this possible? What
method would I go about doing this?
I tried to create a psml file where I had a fragment element that used
the layout VelocityOneColumn, place my row one portlet fragment within
this, and then below that have another fragment element with a
VelocityTwoColumns layout. And then put the rest of my portlet
fragments within this. As shown below:
<?xml version="1.0" encoding="UTF-8"?>
<page>
<defaults
skin="orange"
layout-decorator="tigris"
portlet-decorator="tigris"
/>
<title>The GeoCollaborative Web Portal</title>
<metadata name="title" xml:lang="fr">La plus simple portlet du
monde</metadata>
<fragment id="simplest-out" type="layout"
name="jetspeed-layouts::VelocityOneColumn">
<!--fragment id="simplest-1" type="portlet"
name="simplest::Mapbuilder">
<property layout="OneColumn" name="row" value="0" />
</fragment-->
<fragment id="simplest-in" type="layout"
name="jetspeed-layouts::VelocityTwoColumns">
<property layout="OneColumn" name="row" value="0"/>
<!--fragment id="simplest-2" type="portlet"
name="simplest::Annotation">
<property layout="TwoColumns" name="row" value="0" />
<property layout="TwoColumns" name="column" value="0" />
</fragment>
<fragment id="simplest-3" type="portlet" name="simplest::Address">
<property layout="TwoColumns" name="row" value="1" />
<property layout="TwoColumns" name="column" value="0" />
</fragment>
<!--fragment id="simplest-4" type="portlet"
name="simplest::Geotiff">
<property layout="TwoColumns" name="row" value="1" />
<property layout="TwoColumns" name="column" value="1" />
</fragment>
<fragment id="simplest-5" type="portlet"
name="simplest::MapSession">
<property layout="TwoColumns" name="row" value="0" />
<property layout="TwoColumns" name="column" value="1" />
</fragment>
<fragment id="simplest-6" type="portlet" name="simplest::WMS">
<property layout="TwoColumns" name="row" value="2" />
<property layout="TwoColumns" name="column" value="0" />
</fragment>
<fragment id="simplest-7" type="portlet" name="simplest::GPX">
<property layout="TwoColumns" name="row" value="2" />
<property layout="TwoColumns" name="column" value="1" />
</fragment>
<fragment id="simplest-8" type="portlet" name="simplest::CV">
<property layout="TwoColumns" name="row" value="3" />
<property layout="TwoColumns" name="column" value="0" />
</fragment-->
</fragment>
</fragment>
<security-constraints>
<security-constraints-ref>public-view</security-constraints-ref>
</security-constraints>
</page>
I am able to view my portlet that is in the top row, however I can not
see the rest of the portlets. I get the following error:
VelocityViewServlet : Error processing the template
Unable to find resource 'no_such_resource.vm'
org.apache.velocity.exception.ResourceNotFoundException: Unable to
find resource 'no_such_resource.vm'
Am I going about this the correct way. Is there another way to do this?
Thank you in advance for your help.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]