0 Replies Latest reply on Jun 16, 2011 9:17 AM by choesang tenzin

    Richfaces4 javascript gets converted into jibberish on browser

    choesang tenzin Newbie

      text.xhtml

      <h:form>

                     <a4j:commandLink action="#{workspaceCrudController.cleanUp}"

                              oncomplete="#{rich:component('crudWorkspacePanel')}.hide();">

                              <img id="closeFilterWorkspace"

                                  src="../resources/images/close.png"

                                  style="cursor:pointer"

                                  alt="#{i18n['closeDialogDesc']}"

                                  title="#{i18n['closeDialogDesc']}" />

                      </a4j:commandLink>

              </h:form>

       

      test.jsf

       

      <form id="j_idt505" name="j_idt505" method="post" action="/nymphaea/workspace/">

           <input type="hidden" name="j_idt505" value="j_idt505">

           <a href="#" id="j_idt505:j_idt506" name="j_idt505:j_idt506"

                onclick="RichFaces.ajax("j_idt505:j_idt506",event,{"incId":"1"} );return false;"    

                tabindex="-1" accesskey="">

            <img id="closeFilterWorkspace" src="../resources/images/close.png"

                style="cursor:pointer" alt="Klicken Sie hier um den Dialog zu schließen"          

                title="Klicken Sie hier um den Dialog zu schließen">

            </a>

      </form>

       

      I observed this change from richfaces4, that the javascript produced by richfaces is not understandable.

      What does "incId":"1" mean? The only thing i understand here is, the id of the compnent and something happens on its default event.

       

      Can somebody explain what is going on?