You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rajath Rajagopal <Ra...@stabilixindia.com> on 2007/02/20 07:00:59 UTC
Nested layout fragment not working
Hi,
I was trying to create a layout by nesting more than one layout as shown
in the code below. However I can see only the top portlet in the browser
window. Other two portlets are not seen. What could be the reason for
this ? Actually I found this piece of code in the jetspeed-2
documentation.
========================================================================
======================================
CODE
------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<page>
<!-- page info -->
<title>Welcome to Jetspeed 2</title>
<!-- page decoration -->
<defaults layout-decorator="simple" portlet-decorator="tigris"/>
<!-- page fragments -->
<fragment id="100393" type="layout"
name="jetspeed-layouts::VelocityOneColumn">
<fragment id="100939" type="portlet"
name="j2-admin::LocaleSelector">
<property layout="OneColumn" name="row" value="0"/>
</fragment>
<fragment id="100345" type="layout"
name="jetspeed-layouts::VelocityTwoColumns">
<property layout="OneColumn" name="row" value="1"/>
<property layout="TwoColumns" name="sizes" value="33%,66%"/>
<fragment id="100121" type="portlet"
name="j2-admin::LoginPortlet">
<property layout="TwoColumns" name="row" value="0"/>
<property layout="TwoColumns" name="column" value="0"/>
</fragment>
<fragment id="100171" type="portlet" name="demo::UserInfoTest">
<property layout="TwoColumns" name="row" value="0"/>
<property layout="TwoColumns" name="column" value="1"/>
</fragment>
</fragment>
</fragment>
<!-- security constraints -->
<security-constraints>
<security-constraints-ref>public-view</security-constraints-ref>
</security-constraints>
</page>
========================================================================
===========================================
Thanks in advance.
Regards,
Rajath.
Re: Nested layout fragment not working
Posted by Elif Guner <el...@gmail.com>.
Hi Rajath,
If you are using 2.0 nested layouts are not working. When I had the
same problem I had to switch to 2.0.1 to get the nested layouts to
work.
Elif
On 2/19/07, Rajath Rajagopal <Ra...@stabilixindia.com> wrote:
> Hi,
>
> I was trying to create a layout by nesting more than one layout as shown
> in the code below. However I can see only the top portlet in the browser
> window. Other two portlets are not seen. What could be the reason for
> this ? Actually I found this piece of code in the jetspeed-2
> documentation.
>
> ========================================================================
> ======================================
> CODE
> ------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <page>
> <!-- page info -->
> <title>Welcome to Jetspeed 2</title>
>
> <!-- page decoration -->
> <defaults layout-decorator="simple" portlet-decorator="tigris"/>
>
> <!-- page fragments -->
> <fragment id="100393" type="layout"
> name="jetspeed-layouts::VelocityOneColumn">
> <fragment id="100939" type="portlet"
> name="j2-admin::LocaleSelector">
> <property layout="OneColumn" name="row" value="0"/>
> </fragment>
> <fragment id="100345" type="layout"
> name="jetspeed-layouts::VelocityTwoColumns">
> <property layout="OneColumn" name="row" value="1"/>
> <property layout="TwoColumns" name="sizes" value="33%,66%"/>
> <fragment id="100121" type="portlet"
> name="j2-admin::LoginPortlet">
> <property layout="TwoColumns" name="row" value="0"/>
> <property layout="TwoColumns" name="column" value="0"/>
> </fragment>
> <fragment id="100171" type="portlet" name="demo::UserInfoTest">
> <property layout="TwoColumns" name="row" value="0"/>
> <property layout="TwoColumns" name="column" value="1"/>
> </fragment>
> </fragment>
> </fragment>
>
> <!-- security constraints -->
> <security-constraints>
> <security-constraints-ref>public-view</security-constraints-ref>
> </security-constraints>
> </page>
> ========================================================================
> ===========================================
>
>
>
> Thanks in advance.
>
> Regards,
> Rajath.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org