1 Reply Latest reply on Jan 21, 2011 5:28 AM by Ilya Sorokoumov

    cookie in ajax requests

    Andrea Gazzarini Newbie

      Hi all,

      I need to set a simple cookie after an ajax request like this has been processed:

       

      <h:inputText value="...">

      <a4j:support event="onblur" actionListener="#{mybean.myActionListener}"/>

      </h:inputText>

       

      Do you know if is that possible? Because in my listener method I'm create the cookie using normal procedures (Cookie cookie...; reponse.addCookie(cookie))

      but this is lost (i.e. I don't have that cookie on the client)

       

      I saw similar posts talking about this thing but all of them are referring to actions, not actionlistener.

       

      Any help would be very appreciated

       

      Regards,

      Andrea