The idea of the portlet spec is for the doView (Render) method to strictly just render the view ... NOT change the state of the view as you are suggesting. Best bet is for you to change the parameters in the Action as the portlet spec intended. However, I have noticed that J2 still does not clear render parameters when navigating between pages. J2 (the latest version) seems to treat render parameters like session variables ... even after you navigate away from a page and come back to it ... something about that seems screwy to me. Can a J2 developer comment on this behaviour? Is this by design or a bug? Either way I applied my own patch to bypass this quirk.
- Frank > -----Original Message----- > From: Martin Maidhof [mailto:[EMAIL PROTECTED] > Sent: Friday, January 27, 2006 12:59 PM > To: Jetspeed Users List > Subject: How to clear RenderParameters set in action ? > > > Hi, > > is there a way to clear the render parameters (set in the action > method) in the RENDER method of the portlet ? > > Scenario: > - the action method sets render parameters for all sub-sequent > render calls (ActionResponse.setRenderParameter() ) > - the doView() method receives this parameters and renders the > right state, so far so good > - but now the portlet gets a message in its RENDER method > (via portlet messaging -> see AbstractVelocityMessagingPortlet) > that it should clear its state (meaning clear the RenderParameters) > > How to do that if the action method isn't called ??? > I can't find this in the spec ! (it would be nice if you could clear > the parameters in the RenderResponse BUT THIS FUNCTIONALITY IS > MISSING ... or am i missing something ?) > > thx for every reply, > Martin > -- > > . frankfurt am main, -5°c, die gefühlte temperatur > liegt bei -11°c. zur zeit keine wolken unter 1500 m > und keine kumulunimbus oder gewitterwolken. die > sichtweite reicht weiter als 10 km. > > < martin maidhof > [EMAIL PROTECTED] > t +49 69 759003 14 > > wemove digital solutions GmbH > www.wemove.com > > > > > --------------------------------------------------------------------- > 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]
