struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18015] - [taglib] New <html:label> custom tag to write forms' properties
Date Tue, 18 Oct 2005 19:39:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18015>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18015





------- Additional Comments From stewart.cambridge@gmail.com  2005-10-18 21:39 -------
(In reply to comment #0)
I came to this page by googling for <html:label because I wanted (and thought it
might be implemented) a taglib tag for rendering the normal HTML tag <label
for="control's id">Some text</label> but where I could set for="" using EL.
IE, HTML has this ability:
<label for="checkbox1">Check Me!</label>
<input type="checkbox" value="yes" id="checkbox1"/>

And I wanted to do:
<label for="${dynamic_id}">Check Me!</label>
<input type="checkbox" value="yes" id="${dynamic_id}"/>

However, the functionality you are discussing has nothing to do with the HTML
<label> tag.
I can see this discussion is old, and I'm not on Strust 1.2.7 where
errorStyle="" is now implemented, so maybe my point is pointless, but:
Don't use <html:label> for anything other than rendering the normal <label> !!

Is it obvious why?

Stewart Cambridge
stewart.cambridge@gmail.com



> It would be useful to have a tag that just writes a form's value.
> We already have one:
> 
> <html:hidden property="foo" write="true" />
...
> Maybe the tag could be something like:
> 
> <html:label property="foo" />
... 
> Leonardo

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message