The solution:
<label for="email" class="required <stripes:errors field="email"
/>">E-mail Address
<stripes:text name="email" id="email" />
</label>
In my Resources bundle:
stripes.fieldErrors.beforeError=error" title="
stripes.fieldErrors.afterError="
Output when an error occurs:
<label for="email" class="required error" title="E-mail is a required
field.">E-mail Address
<input id="email" name="email" class="error" type="text" />
</label>
Initially I thought I could just use the stripes:errors tag to render the
single word "error" when a specific field was in error--unfortunately
Stripes wants to output the entire error message as well, which results
in...
<label for="email" class="required errorE-mail is a required field">
...which obviously wasn't going to work. But now the error message is
rendered in the title tag, which actually improves accessibility and still
lets you nest stripes:[form] tags inside labels. Hack-a-riffic!
--
View this message in context:
http://www.nabble.com/Validation-problems-with-Internet-Explorer-and-LABEL-tp18198549p18204750.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