2 Replies Latest reply on Aug 16, 2006 3:03 PM by gus888

    Conversation on both action and actionListener

    gus888

      Hi everyone,

      I have a question on conversation. If an command invoke an action and actionListener at the same time, how to annotate @Begin on them, e.g.

      @Begin
       public void listen(ActionEvent e) {
       ...
       }
      
       @Begin(join=true)
       public String act() {
       return outcome;
       }
      
      I used the codes above, but it did not work. I don't know whether the anotation is correct or not. Thank you very much in advance.

        • 1. Re: Conversation on both action and actionListener
          bfo81

          Since JSF calls the two methods sequentially I think it should be sufficient to annotate one of them.

          • 2. Re: Conversation on both action and actionListener
            gus888

            Hi Bfo81,

            Thank you very much for your reply. I found my problem. After integrating facelets and ajax4jsf into my project, the tomahawk t:schedule did not work properly. The schedule listener was not called.

            I want to use a stateless session bean to collect value from listen(ActionEvent e) , then pass them to a conversation sfsb. Since my t:schedule does not work now, I cannot the @Begin annotation. Hope it works. Thank you.

            Best regards,

            Gus