7 Replies Latest reply on Sep 4, 2007 10:56 AM by j-pro

    a4j:commandLink - works properly only from 2nd click - why?

    j-pro

      Good day dear ajax4jsf gurus!

      Have a question...

      I have such code on my JSP page: http://pastebin.com/m37ab07df

      It works well, except one thing. It works after one click after page loads. I mean works only 2nd, 3rd, 4rt, etc clicks. The first one doesn't work... but a4j:log writes that AJAX request was sent and the response was received. But my amBean.actDeleteEmployee wasn't invoked... I see that it wasn't invoked by server output console, there should be text output while processing amBean.actDeleteEmployee. And it appears on 2nd, 3rd, 4rt, etc clicks.

      Here is a4j log after the first click: http://pastebin.com/m7f459533
      Here is a4j log after the second one: http://pastebin.com/m23a91f3a


      Does anybody know the reason and how can I solve the problem?

      Thank you very much in advance.