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

Document alternative form support implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 4.1.2
    • 4.1.5
    • Documentation
    • None
    • JDK6, Ubuntu, Glassfish V1, tapestry 4.1.2 from SVN

    Description

      I have two forms on my page and both have a subcomponent. The subcomponent has a text input with specified tapestry ID.
      The output input HTML elements have the same id.

      Ids generated fine inside a form but it fails across them.

      A minimal source to demonstrate the problem (in the output there are 2 input tags with "text" id):

      My "container" template:
      <form jwcid="@Form"><div jwcid="@SubComponent"/></form>
      <form jwcid="@Form"><div jwcid="@SubComponent"/></form>

      The subcomponent template:
      <div>
      <input jwcid="text@TextField" value="ognl:text"/>
      <input jwcid="@Submit" value="Enter" action="listener:doSubmit"/>
      </div>

      The subcomponent source:
      @ComponentClass()
      public abstract class SubComponent extends BaseComponent {
      public String text;
      public void doSubmit()

      {System.out.println("text = " + text); }

      }

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            joeb József Börcsök
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: