struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Durham, Jr." <>
Subject Re: name inconsistency
Date Tue, 10 Jul 2007 15:33:38 GMT
On 7/7/07, Musachy Barroso <> wrote:
> * Move "id" attribute to UIBean so it is in all UI tags
> * Remove "id" from tags that are neither UIBean nor ContextBean (like
> Property for example)

I think this still leaves the issue with jspx.  Say that I have the
same html element within a jspx in 2 spots.  E.g.,

     <c:when ..>
         <s:textarea id="myId" style="..."/> <!-- for instance -->
         <s:textarea id="myId" />

It is clear that only one will be rendered to an html page, but it is
not valid jspx syntax.  Seems to me that struts1 dealt with this
use-case by having a styleId attribute that translated to an html id
attribute (or whatever, hence styleId not htmlId).

My example is kind of weak because the argument to the style attribute
could easily be conditionalized, thereby avoiding the id issue.
Nonetheless, I think struts 2 tags should use something besides "id"
across the board, except in cases where struts tags need to refer to
other struts tags. (does that happen?)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message