>From what I read in the s:label tag doc 
>(http://stripes.sourceforge.net/docs/current/taglib/),
I doubt you want to put s:text in s:label since s:text could be skipped by the 
content of the for attribute.


The value of the label is set by searching for a non-null value in the 
following order:

    * {formAction}.{name} in the form field localization bundle
    * {name} in the form field localization bundle
    * The body of the label tag
    * A warning message telling you to supply a label value somewhere!


Seems risky to me...
Christian


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Brock
Sent: Monday, June 30, 2008 2:30 PM
To: [email protected]
Subject: Re: [Stripes-users] Spoke too soon...



Mitch Statz wrote:
> Why are you nesting the input tag within the label tag?

1. Because this allows me to establish a styling container (label) for the form 
field.

1a. ...which then allows me to create horizontal form layouts without having to 
resort to non-semantic HTML (div/span) or tables. ( 
http://www.themaninblue.com/writing/perspective/2004/03/24/ For example. )

2. Because the HTML 4.01 specification makes an 
http://www.w3.org/TR/html4/interact/forms.html#edef-LABEL explicit point  of 
saying it's valid:

"To associate a label with another control implicitly, the control element must 
be within the contents of the LABEL element. In this case, the LABEL may only 
contain one control element. The label itself may be positioned before or after 
the associated control."
--
View this message in context: 
http://www.nabble.com/Validation-problems-with-Internet-Explorer-and-LABEL-tp18198549p18201514.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to