El lun, 08-08-2005 a las 08:48 +0200, Sven Thiergen escribió:
> Von: Sebastian Komander [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 6. August 2005 15:30
> An: [email protected]
> Betreff: One portlet on multiple pages but different parameters
> 
> > Hi...
> >
> >
> > I want to create a portlet which shows articles. I want to place
> > this portlet on many pages. Then, i want to set a parameter which
> > is different for every page. Example:
> >
> > Portlet is placed on page1, page2, page3, page4, page5. The
> > parameter is named "type".
> >
> > ...
> >
> > I want to do this without copying the portlet 5 times. Is this
> > possible? The parameter should be saved in the portlet preferences
> > or where ever it is possible.
> 
> If you have 5 different PSML pages for this (I guess you need them, anyway)
> you should be able to access its parameters (skin, fragment id) via some
> Jetspeed internal object; bound in the request:
> 
>   Object layoutObject = request.getAttribute(...);
> 
>   where "Object" needs to be casted in some Jetspeed thingy.
> 
> Does someone know the correct attribute key for this? Otherwise just iterate
> over your request object; you'll be suprised what you are going to find in
> it. ;-)   Maybe there is a cleaner solution for this; I don't think it is
> good design to access Jetspeed's core objects from a simple portlet.
> 

Non specified attributes in the request are likely to change or
disappear. You should not trust them as being there, as security or
efficiency constrains can make us remove them.

I recently wrote a python portlet, as part of the python bridge that
will land soon in svn, and I found way too many attributes are "leaked"
to the webapp requests. I plan to take a look into this.

Part of the reason this is going on is the fact that there is no
standard JSR-168 way to advertise, discover and get services. 

Regards
Santiago

> 
> Sven.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
VP and Chair, Apache Portals (http://portals.apache.org)
Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to