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. Sven. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
