Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-497

Java script rendering inside f:subview and s:subForm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.4-SNAPSHOT
    • 1.1.4-SNAPSHOT
    • SubForm
    • None
    • Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA

    Description

      When i use subform i get a command link like next.

      <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
      document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
      document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
      if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
      if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
      else

      {document.forms['formPagina:header:headerSubform'].submit();}

      return false;"
      id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>

      Because of java script error the link is not submited.

      Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
      Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
      Line: 1

      I have tried today with the last sources from subversion and i get the same error.
      The clear method is not rendered anymore.
      I have attached a small example.

      Cristi.

      Attachments

        1. indexdebug2.jsp
          1 kB
          Grigoras Cristinel

        Activity

          People

            catalean Catalin Kormos
            grigoras_cristinel Grigoras Cristinel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: