Anand:
Take a look at the following psml that you sent yesterday. I replaced
with demo portlets. Try to save this file to some other name and test it
out. Everything worked well, 2575 TwoColumns layout. I was also able to
change the layout to anything that I want. Nothing was wrong. I am using
2.1-dev, Jetspeed-2.0 was the same as well in that regards.
What needs to pay attention is the id in the layout fragment:
<fragment id="mtf" type="layout"
The id has to be unique. If you use the same id with a different name,
you need to restart Jetspeed after you change it. Try use an ID that you
*never* used before, restart jetspeed anyayway. Then you should be
fine.
If you want to know what is actually used for the id you are assigning,
please take a look at Portlet_entity table and see what portletName is
when id is 'mtf'. You will get more info. Restart Jetspeed after any
manual change...
---Yang
------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<page id="/corporate.psml" hidden="false">
<title>Corporate</title>
<metadata name="title" xml:lang="en">Estel Corporate</metadata>
<defaults skin="orange" layout-decorator="simple"
portlet-decorator="clear" />
<fragment id="mtf" type="layout"
name="jetspeed-layouts::VelocityTwoColumns2575">
<fragment id="mtf-1" type="portlet"
name="demo::BookmarkPortlet">
<property layout="TwoColumns" name="row" value="0"/>
<property layout="TwoColumns" name="column" value="0"/>
</fragment>
<fragment id="mtf-2" type="portlet"
name="demo::UserInfoTest">
<property layout="TwoColumns" name="row" value="0"/>
<property layout="TwoColumns" name="column" value="1"/>
</fragment>
</fragment>
<security-constraints>
<security-constraints-ref>public-view</security-constraints-ref>
</security-constraints>
</page>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 24, 2006 2:13 AM
>To: Jetspeed Developers List
>Subject: PSML fragment ID finds confusing
>
>Hi,
>
>Its really confusing in Jetspeed-2. I changed the id in the <fragment>
tag.
>But sometimes I get the body contents page as 50%, 50% layout and
sometimes
>I do not see anything in body contents. This change happens just
because of
>changing fragment id inside PSML file.
>
>When I read PSML basics on internet, it is said that the 'id' must be
>unique within the site. And in my case it is certainly unique. Then why
I
>am not getting 25% and 75% layout using VelocityTwoColumns2575 layout
>pattern?
>
>Is it a bug in Jetspeed-2?
>Please share your comments.
>
>Thanks.
>regards,
>
>Anand
>
>
>
>
>>
>> From: "Sie, Yang" <[EMAIL PROTECTED]>
>> Date: 2006/12/23 Sat PM 01:03:08 EST
>> To: "Jetspeed Developers List" <[email protected]>
>> Subject: RE: RE: PSML: VelocityTwoColumns2575 does not work
>>
>> Your psml is fine. I plugged in demo portlets and 2575 worked OK. In
my
>> last post, I suggested you try to make the fragment id different, did
>> you try that?? i.e. make:
>>
>> <fragment id="mtf" type="layout"
>> to
>> <fragment id="anotherID" type="layout"
>>
>> what I wondered was that you started with mtf with 5050 to begin
with,
>> then changed to 2575.
>>
>> ---Yang
>>
>>
>>
>>
>>
>> >-----Original Message-----
>> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> >Sent: Saturday, December 23, 2006 10:01 AM
>> >To: Jetspeed Developers List
>> >Subject: Re: RE: PSML: VelocityTwoColumns2575 does not work
>> >
>> >Hi Yang,
>> >
>> >Thanks for your quick response.
>> >As per your suggestions, I went through portlet.xml file. I saw
there
>> >various portlets/layouts mapped and one of them was of course
>> >VelocityTwoColumns2575. I have tried all options of layout but its
>> always
>> >dividing my screens as 50%, 50%.
>> >For your information, I am giving you my PSML definition. You please
>> tell
>> >me whats the wrong:
>> >
>> >
>> >
>> ><?xml version="1.0" encoding="UTF-8"?>
>> >
>> ><page id="/corporate.psml" hidden="false">
>> >
>> > <title>Corporate</title>
>> > <metadata name="title" xml:lang="en">Estel Corporate</metadata>
>> >
>> > <defaults skin="orange" layout-decorator="simple" portlet-
>> >decorator="clear" />
>> >
>> > <fragment id="mtf" type="layout" name="jetspeed-
>> >layouts::VelocityTwoColumns2575">
>> > <fragment id="mtf-1" type="portlet"
>> >name="MTF::Estel_Corporate_ItemList">
>> > <property layout="TwoColumns" name="row" value="0"/>
>> > <property layout="TwoColumns" name="column" value="0"/>
>> > </fragment>
>> > <fragment id="mtf-2" type="portlet"
>> >name="MTF::CMSPageVisualizationPortlet">
>> > <property layout="TwoColumns" name="row" value="0"/>
>> > <property layout="TwoColumns" name="column" value="1"/>
>> > </fragment>
>> > </fragment>
>> >
>> >
>> > <security-constraints>
>> >
>> <security-constraints-ref>public-view</security-constraints-
>> >ref>
>> > </security-constraints>
>> ></page>
>> >
>> >Kindly send the reply as soon as possible.
>> >Thanks.
>> >regards,
>> >
>> >Anand
>> >
>
>
>
>---------------------------------------------------------------------
>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]