Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1278

wrong clientId with multiple forms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.2
    • 4.1.5
    • Framework
    • None
    • Java6, NetBeans, Linux, Glassfish V1, V2

    Description

      getClientId() returns only a part of the generated id with multiple forms (using org.apache.tapestry.form.MultipleFormSupportFactory, see https://issues.apache.org/jira/browse/TAPESTRY-1274) in render phase if no submit was before.

      I have 2 forms on a page and I'd like to generate the client ids into the HTML output. With org.apache.tapestry.form.MultipleFormSupportFactory the component ids are generated fine (with the form prefix) but getClientId skips that prefix, so it returns only "text" instead of "Form_0:text" or "Form_1:text". After submit one of the forms the getClientId returns correct values (in listener and render) in the submitted form, but the other one is still wrong.

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            joeb József Börcsök
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: