1 2 Previous Next 18 Replies Latest reply on Dec 12, 2007 5:13 AM by jim20100 Go to original post
      • 15. Re: Problem with RichFaces and Internet Explorer 6 - Stuck '
        thedrake

        I'm asking myself if it has a link with this :

        a4j:form functionality is similar to the standard h:form component except two additional features:

        Along with a4j:htmlCommandLink, it fixes the problem of h:commandLink component that cannot be re-rendered without re-rendering the whole form it belongs to.

        It might convert all non-ajax action components (including the third party components) to the ajaxian ones if ajaxSubmit attribute is set to true

        h:commandLink renderer generates the javascript code that is used to submit the form when the link is clicked. However, if the h:commandLink is rendered outside of the form, for example, when you point to it with reRender, the wrong code is generated that causes the broken functionality
        when user clicks this link later. The example of problematic code is below. To fix the code, you need to replace h:form with a4j:form and h:commandLink with a4j:htmlCommandLink.

        • 16. Re: Problem with RichFaces and Internet Explorer 6 - Stuck '
          jim20100

          Hello,

          Here is my code
          1) main file cart.jsp

          ... <a4j:form id="MyCart">
           <t:panelGrid columnClasses="columnMenu"
           style="height:100%; width:100%;" columns="3">
          
           <t:column width="18%">
           <%@include file="/menu/menu.jsp"%>
          
           <f:verbatim>
           <br />
           <br />
           </f:verbatim>
          
           <%@include file="cartAction.jsp"%>
           <br />
           <br />
          ...
          



          2) The included file cartAction.jsp


          ...
          
          <rich:panel>
          
           <t:panelGrid columns="1" style="margin-top:0" columnClasses="standardTable_ColumnCentered" cellpadding="0" cellspacing="2">
          
           <t:panelGrid columns="2" style="margin-top:0" cellpadding="0" cellspacing="5">
          
           <h:column>
          
          
          
           <a4j:commandButton style="width:180px" onmouseover="this.className='mybutton_on'" onmouseout="this.className='mybutton_off'" styleClass="mybutton_off"
          
           onclick="displayProgressBar('save')"
           oncomplete="hideProgressBar()"
          
           action="#{myCart.doSave}"
          
           value="#{rs_messages['cart.save']}" />
          
           </h:column>
          
          
          ...
          




          FOR EXAMPLE, THE SAVE BUTTON DOES NOT WORK when the ajax libraries are loading on the browser.
          So the proposed solution will not solve my problem.


          • 17. Re: Problem with RichFaces and Internet Explorer 6 - Stuck '
            abelevich
            • 18. Re: Problem with RichFaces and Internet Explorer 6 - Stuck '
              jim20100

              Finally I think I found the reason and solution.

              I think I used a4j:form and a4j:commandButton in the previous page.

              So my JavaBean method returns a String containing the address of a completely new JSP page.

              In my case, ajax should not be used when switching to a different page.

              Bye

              jim

              1 2 Previous Next