Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
4.1.2
-
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()
}