You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Weisfield, Russell (HAC)" <Ru...@va.gov> on 2007/01/25 23:25:28 UTC

Section 508 and html:text tag issue

Hello,

To abide by Section 508 compliance I need to associate my form inputs
with a <label> tag.  I therefore tried to add in an "id" attribute to my
html:text tag (which is using the TextTag object).  While the page
rendered successfully ( I did modify my .tld file to correct a rendering
error), the text inputs did not have the id attribute with them and
therefore, some of the assistive technology we have for testing
(particularly Narrator which we do have to accommodate) failed to
identify the name of the input box.  Is there a solution or work around
for this and if so where might I find it?  I have scoured multiple sites
to no avail.  Thanks.


Russell Weisfield
VA, HAC, OI&T Field Ops Support

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


Re: Section 508 and html:text tag issue

Posted by Christopher Goldman <cg...@dhapdigital.com>.
On Thu, 2007-01-25 at 15:25 -0700, Weisfield, Russell (HAC) wrote:
> Hello,
> 
> To abide by Section 508 compliance I need to associate my form inputs
> with a <label> tag.  I therefore tried to add in an "id" attribute to my
> html:text tag (which is using the TextTag object).  While the page
> rendered successfully ( I did modify my .tld file to correct a rendering
> error), the text inputs did not have the id attribute with them and
> therefore, some of the assistive technology we have for testing
> (particularly Narrator which we do have to accommodate) failed to
> identify the name of the input box.  Is there a solution or work around
> for this and if so where might I find it?  I have scoured multiple sites
> to no avail.  Thanks.

Russell,

Try using the "styleId" attribute of the <html:text> element.  It will
render an "id" attribute in the resulting <input> element.

http://struts.apache.org/1.x/struts-taglib/tlddoc/html/text.html

Chris

-- 
Christopher D. Goldman
cgoldman@dhapdigital.com



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


Re: Section 508 and html:text tag issue

Posted by Dave Newton <ne...@yahoo.com>.
--- "Weisfield, Russell (HAC)" wrote:
> [...] the text inputs did not have the id
> attribute with them and therefore [...]

http://struts.apache.org/1.2.9/userGuide/struts-html.html#text

styleId?

Dave



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

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