I thought I'd run this idea by the development team before entering it
into Bugzilla.

One of the items that is required with 508 compliance is a <label> value
for each form element:

For example:

<label for="name">Name:</label> 
<input type="text" id="name" size="50" name="name" />

More information at: http://www.csuohio.edu/uctl/508/forms.html

This would typically be rendered with Struts tags using:

<label for="name">Name:</label> 
<html:text name="name" styleId="name" size="50"/>

To make it easier, we could do:

<html:text name="name" styleId="name" size="50" label="Name:"/> OR
<html:text name="name" styleId="name" size="50" labelKey="prompt.name"/>

The problems I see with this are that you lose some control over the
presentation (i.e. a <br /> after the label or labels in a separate
<td>).  However, it might be useful for rapid prototyping and
code-generating tools.  My hope someday is that the JSP simply renders
XML, and then an XSL stylesheet is applied, and in this case, the
presentation issues would disappear?

What does everyone think?  Would anyone use it?

Thanks,

Matt



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to