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

        József Börcsök created issue -
        Andreas Andreou made changes -
        Field Original Value New Value
        Assignee Andreas Andreou [ andyhot ]
        Priority Major [ 3 ] Minor [ 4 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1.2 [ 12312202 ]
        Andreas Andreou made changes -
        Component/s Documentation [ 11283 ]
        Summary id generation problem on pages with multiple forms Document alternative form support implementation
        Priority Minor [ 4 ] Major [ 3 ]
        Component/s Framework [ 11280 ]
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1.2 [ 12312202 ]
        Fix Version/s 4.1.3 [ 12312516 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1.4 [ 12312763 ]
        Fix Version/s 4.1.3 [ 12312516 ]
        Andreas Andreou made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Workflow jira [ 12397649 ] Default workflow, editable Closed status [ 12568035 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568035 ] jira [ 12591141 ]

          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