You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "tm_jee (JIRA)" <ji...@apache.org> on 2006/05/07 15:47:52 UTC

[jira] Commented: (WW-769) UITags do not evaluate id attribute

    [ http://issues.apache.org/struts/browse/WW-769?page=comments#action_37306 ] 

tm_jee commented on WW-769:
---------------------------

Made changes such that id is now evaluated against the stack.

If id attribute is not being specifed, webwork / SAF will used the name attribute, which is mandatory in all ui tags. 

> UITags do not evaluate id attribute
> -----------------------------------
>
>          Key: WW-769
>          URL: http://issues.apache.org/struts/browse/WW-769
>      Project: Struts Action 2
>         Type: Bug

>   Components: Views
>     Versions: WW 2.1.7
>     Reporter: John Patterson
>     Assignee: tm_jee
>      Fix For: 2.0

>
> The UITags inherit the 'id' property from TagSupport which is not evaluated.  This means that it cannot be used  in a dynamically created form to match a lable to a control.  Currently, when I click on a lable they all highlight the same control!  
> I suggest that if no 'id' attribute is specified Webwork should generate a unique identifier from the control name appending a number when there is more than one control of the same name.
> For example:
> <label for="mycontrol">A control</label>  <input type="text" name="mycontrol" id="mycontrol"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira