Tapestry
  1. Tapestry
  2. TAPESTRY-1274

Document alternative form support implementation

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.5
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      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); }

      }

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            József Börcsök
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development