On Mon, 25 Nov 2002, Matt Raible wrote:
> Date: Mon, 25 Nov 2002 12:40:27 -0700 > From: Matt Raible <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: 'Struts Developers List' <[EMAIL PROTECTED]> > Subject: RE: Enhancement Request - add label and labelKey to form elements > > I agree, and does require more work, considering: > > <html:label for="name"> > <bean:message key="prompt.username"/> > </html:label> > > Is more typing than: > > <label for="name"> > ... > </label> > > Maybe something like this would make it more useful: > > <html:label key="prompt.username" /> > > I was thinking of reducing the prefixes in my struts-xdoclet app from: > > html -> h > logic -> l > bean -> b > tiles -> t > nested -> n > > Would this create too much confusion (even though it would require less > typing?)? > > It much rather type <h:label key="prompt.username" /> > Officially, the prefix used on an XML namespace (and custom tag syntax is just a user of this) is *always* up to author of the instance document (a JSP page, in our case). Any documentation that uses a particular prefix, such as our user guides, is just a suggestion. That being said, the JSTL libraries went pretty much towards this approach (single-character prefixes where feasible), and I'm currently leaning that way on JavaServer Faces as well. IT makes sense to consider this. > Matt Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
