[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-dev
Subject:    DO NOT REPLY [Bug 23500] New:  -
From:       bugzilla () apache ! org
Date:       2003-09-29 19:17:20
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic