javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-66

<h:form> does not render 'name' attribute like other html components

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: Uncategorized
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      66

      Description

      The <h:form> component does not currently generate a "name"
      attribute when it is rendered. Other html components do.

      It therefore makes it impossible to refer to the form
      through its name in a javascript function.

      For example, with

      <h:form id="myform">
      ...
      </h:form>

      document.myform is 'undefined' in javascript.

      One has to use

      document.forms[0] instead.

      Any reason why the 'name' attribute is not generated for the
      <h:form> component?

      Thanks!

      – Pierre

        Activity

        Hide
        Ed Burns added a comment -

        Created an attachment (id=33)
        Fix for this bug.

        Show
        Ed Burns added a comment - Created an attachment (id=33) Fix for this bug.
        Hide
        Ed Burns added a comment -

        fix checked in

        Show
        Ed Burns added a comment - fix checked in
        Hide
        Ed Burns added a comment -

        fixed.

        Show
        Ed Burns added a comment - fixed.
        Hide
        Ed Burns added a comment -

        Forgot to change status to fixed

        Show
        Ed Burns added a comment - Forgot to change status to fixed
        Hide
        Ed Burns added a comment -

        Prepare to delete "spec" subcomponent.

        Show
        Ed Burns added a comment - Prepare to delete "spec" subcomponent.
        Hide
        Ed Burns added a comment -

        Move all to 1.2

        Show
        Ed Burns added a comment - Move all to 1.2
        Hide
        Manfred Riem added a comment -

        Closing resolved issue out

        Show
        Manfred Riem added a comment - Closing resolved issue out

          People

          • Assignee:
            Ed Burns
            Reporter:
            pierre
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: