You need to call it manually from your action do* action event methods. buildNormalContext is only called if no other event is invoked. This is due to the fact the build* methods are invoked from within the doPerform() method of JspPortletAction/VelocityPortletAction. doPerform is only called if no other action event is requested.
*===================================* * Scott T Weaver������������������� * * Jakarta Jetspeed Portal Project�� * * [EMAIL PROTECTED] * *===================================* � > -----Original Message----- > From: Qualilearning Technical [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 11:29 AM > To: [EMAIL PROTECTED] > Subject: Problem with buildNormalContext() in a JspPortletAction. > > Hi, > > I have made an JspPortletAction class to handle form events. There is 3 > methods > > public void doNext() { > //... > } > > public void doPrevious() { > //... > } > > public void doReset() { > //... > } > > That work fine. But if I try to set an attribute in the > buildNormalContext method nothing appens. > > protected void buildNormalContext(Portlet portlet, RunData rundata) > throws Exception { > > JetspeedRunData jpdata = (JetspeedRunData)rundata; > > jpdata.getRequest().setAttribute("testattrib","attrib un"); > > } > > My question is: When is the "buildNormalContext" method called? > > Thanks > > Fabiano > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
