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 angeloimm <an...@libero.it> on 2005/02/07 16:17:17 UTC
Read a psml file
Hi all; if i know the psml name... how could i have a parameter in this psml file?
For example let's suppose i have in the file a.psml a parameter called text..... well in a portlet called b how can i have this parameter?
Thanks
____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Read a psml file
Posted by David Sean Taylor <da...@bluesunrise.com>.
zaza wrote:
> David Sean Taylor wrote:
>
>> angeloimm wrote:
>>
>>> Hi all; if i know the psml name... how could i have a parameter in
>>> this psml file?
>
>
> Hi,
>
> What about J2? Can you configure fragments responsible for portlets in
> similar way? Can you add a paramater tag to the psml file? And finally
> can you access those parameters programatically later?
>
Jetspeed-2 is different. We make a clean separation of layout (PSML) and
preferences (J1 parameters). Preferences are stored in a database and
are accessible from your portlet with the Portlet API. Default
preferences are specified in the portlet.xml descriptor
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Read a psml file
Posted by Carlos Torres <ct...@mcn.com.br>.
Hi
You could read the parameter in the psml file as a XML file with DOM or SAX
API.
I didn't know if it is your question, if not explain better....
If you need to change the attribute or parameter in the psml you could read
it and transform in a DOM object and write it back, with the new attribute,
in the file.
Carlos Torres.
----- Original Message -----
From: "zaza" <za...@tlen.pl>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Wednesday, February 09, 2005 10:27 AM
Subject: Re: Read a psml file
> David Sean Taylor wrote:
> > angeloimm wrote:
> >
> >> Hi all; if i know the psml name... how could i have a parameter in
> >> this psml file?
> >
> >
> > Not sure if I understand the question, but I'll try.
> > To change the parameters on a portlet instance, you can edit the psml
> > file by hand, for example the StockQuote portlet, override the default
> > init parameters on a portlet instance:
> >
> > <entry id="P-f570871a5a-10008" parent="StockQuote">
> > <layout position="-1" size="-1">
> > <property name="column" value="0"/>
> > <property name="row" value="1"/>
> > </layout>
> >
> > <parameter name="symbols" value="MSFT,IBM,ORCL,SUNW,ITGW"/>
> >
> > </entry>
> >
> > or change them from the running portlet. For example the StockQuote
> > portlet provides an edit mode to edit the parameters
> >
> >> For example let's suppose i have in the file a.psml a parameter called
> >> text..... well in a portlet called b how can i have this parameter?
> >> Thanks
> >>
> > Programatically a Jetspeed-1 portlet can access its PSML parameters by
> > via the portlet instance
> >
> >
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletInstance.html
> >
> >
> > The are a few variations on this, see the example portlets that come
> > with the distribution
>
> Hi,
>
> What about J2? Can you configure fragments responsible for portlets in
> similar way? Can you add a paramater tag to the psml file? And finally
> can you access those parameters programatically later?
>
> Thank you for any help.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Read a psml file
Posted by zaza <za...@tlen.pl>.
David Sean Taylor wrote:
> angeloimm wrote:
>
>> Hi all; if i know the psml name... how could i have a parameter in
>> this psml file?
>
>
> Not sure if I understand the question, but I'll try.
> To change the parameters on a portlet instance, you can edit the psml
> file by hand, for example the StockQuote portlet, override the default
> init parameters on a portlet instance:
>
> <entry id="P-f570871a5a-10008" parent="StockQuote">
> <layout position="-1" size="-1">
> <property name="column" value="0"/>
> <property name="row" value="1"/>
> </layout>
>
> <parameter name="symbols" value="MSFT,IBM,ORCL,SUNW,ITGW"/>
>
> </entry>
>
> or change them from the running portlet. For example the StockQuote
> portlet provides an edit mode to edit the parameters
>
>> For example let's suppose i have in the file a.psml a parameter called
>> text..... well in a portlet called b how can i have this parameter?
>> Thanks
>>
> Programatically a Jetspeed-1 portlet can access its PSML parameters by
> via the portlet instance
>
> http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletInstance.html
>
>
> The are a few variations on this, see the example portlets that come
> with the distribution
Hi,
What about J2? Can you configure fragments responsible for portlets in
similar way? Can you add a paramater tag to the psml file? And finally
can you access those parameters programatically later?
Thank you for any help.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Read a psml file
Posted by David Sean Taylor <da...@bluesunrise.com>.
angeloimm wrote:
> Hi all; if i know the psml name... how could i have a parameter in this psml file?
Not sure if I understand the question, but I'll try.
To change the parameters on a portlet instance, you can edit the psml
file by hand, for example the StockQuote portlet, override the default
init parameters on a portlet instance:
<entry id="P-f570871a5a-10008" parent="StockQuote">
<layout position="-1" size="-1">
<property name="column" value="0"/>
<property name="row" value="1"/>
</layout>
<parameter name="symbols" value="MSFT,IBM,ORCL,SUNW,ITGW"/>
</entry>
or change them from the running portlet. For example the StockQuote
portlet provides an edit mode to edit the parameters
> For example let's suppose i have in the file a.psml a parameter called text..... well in a portlet called b how can i have this parameter?
> Thanks
>
Programatically a Jetspeed-1 portlet can access its PSML parameters by
via the portlet instance
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletInstance.html
The are a few variations on this, see the example portlets that come
with the distribution
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org