<a4j:commandButton> action is invoked only on first click in JSF 1.1

180 views Asked by At

I have got the following issue. I'm using a4j:button but invokes action only when I click it for the first time. My jsp structure is like the following :

    <h:form id="form">
      ...
      <a4j:commandButton id="cmdButt"
            action="#{AdvertBean.clear}"
            reRender="form"
    </h:form>

And I'm invoking action from javascript through jquery click(). I know that there are also some similiar issues which was described here but all of them are applied to jsf 2 + version. Can anybody help me finding what is wrong ? The second time when i click the button javascript invoke click on cmdButt but it does not invoke action

EDITED:

I see where lays the problem but I still dont understand why. It is because snipper above is in jsp file which is included(imported) dynamically via c:import. If i try to include it via include then it works. Is it possibile to still include this page dynamically and make it work ?

0

There are 0 answers