You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2003/09/29 21:17:20 UTC
DO NOT REPLY [Bug 23500] New: -
Name attribute gets duplicated in TextField
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23500>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23500
Name attribute gets duplicated in TextField
Summary: Name attribute gets duplicated in TextField
Product: Tapestry
Version: 3.0
Platform: PC
OS/Version: Windows 9x
Status: NEW
Severity: Normal
Priority: Other
Component: Framework
AssignedTo: tapestry-dev@jakarta.apache.org
ReportedBy: lfl@soeiro.com.br
When use define a texField in the template including an informal NAME atribute,
Tapestry includes the name tag twice in the generated code. This makes parsing
the generated html confusing (specially when using tools like HtmlUnit ou
httpUnit).
---------------
Example:
html file:
...
<input name="UserName" jwcid="tfUserName" type="text" value="Fill in..." />
...
Page file:
<component id="tfUserName" type="TextField">
<binding name="value" expression="username"/>
</component>
Htlm dynamically generated by Tapestry:
<input type="text" name="UserName" value="Fill in..." name="tfUserName">
Even if one uses the same values for name and jwcid, when the TextField is
inside a foreach, it gets worse:
<input type="text" name="UserName" value="Fill in..." name="UserName$0">
<input type="text" name="UserName" value="Fill in..." name="UserName$1">
<input type="text" name="UserName" value="Fill in..." name="UserName$2">
...
---------
Maybe Tapestry should discard the informal name tag and use only its generated
one.
Thanks,
Luis
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org