[jboss-user] [JBoss Portal] New message: "How to set a request attribute in processEvent"

antoine seilles do-not-reply at jboss.com
Mon Mar 8 13:41:41 EST 2010

User development,

A new message was posted in the thread "How to set a request attribute in processEvent":


Author  : antoine seilles
Profile : http://community.jboss.org/people/natoine

My problem :
I got an event, i process it with processEvent and i would like to set an attribute to the end of this process.
How can i do it?
public void processEvent(EventRequest request, EventResponse response)
          Event event = request.getEvent();
               Selection _selection = (Selection) event.getValue();
                        //doesn't work
                        request.getPortletSession().setAttribute("new_selection", _selection);
                        //doesn't work
                        this.getPortletContext().setAttribute("new_selection", _selection);
                        //doesn't work
                        request.setAttribute("new_selection", _selection);


To reply to this message visit the message page: http://community.jboss.org/message/530616#530616

More information about the jboss-user mailing list