[jboss-user] [JBoss Portal] - Re: ActionRequest setAttribute

thomas.heute@jboss.com do-not-reply at jboss.com
Fri Apr 13 10:50:40 EDT 2007


It would work if you put the setAttribute in the render method.

Remember that the portal should be able to render your portlet without having to call the action method (only based on render parameters).

Let's say it would work:
- you set the object as an attribute in the action phase
- the render phase of this portlet is called and displays the object.
- now you rerender the page (refresh or click on another portlet for example)
- it will call the render phase again (without having called the action phase that set the attibute) and your object will be null.


You must set render parameters, then in the render phase set the attribute.





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037104#4037104

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037104



More information about the jboss-user mailing list