1 Reply Latest reply on Mar 1, 2013 8:26 AM by pmensik

    Rendered link after ajax request does not work until page is refreshed!

    mbasovni

      Hello,

       

      I had a little-big :-) problem. When I generate link by ajax e.g.

       

      <h:form>
               ....
              <a4j:commandButton 
                     value="..."  execute="@form"  action="..."
                     render="generate" />
      </h:form>
      ...
      <rich:panel ...id="generate"> 
           <h:form ...>
           <!-- foreach item of a list ... -->       
                <a4j:commandButton value="xxx" action=" #{bean.action(item)} " ... />
           <!-- end of foreach  -->
           ....
      </rich:panel>  
      

       

      This link "xxx" does not work. It does nothing - no error, no exception...

       

      BUT !!!! It works after page is refreshed!

       

      This issue might be connected with Resource and Render Request isn't it?? But how?

       

      I want to create ajax portlet application and this is big problem!!! :-)

       

      Thank you for every answer!

       

      Martin