0 Replies Latest reply on Mar 8, 2010 1:41 PM by antoine seilles

    How to set a request attribute in processEvent

    antoine seilles Newbie

      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();
                if(event.getName().equals("selection"))
                {
                     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);
                }
           }