Tag's "class" attribute conflicts with java.lang.Object.getClass(),
therefore it was renamed to styleClass along with styleID. These names
are aligned with HTML "style" attribute.

ID is a CSS selector, its other use like in the DOM tree is entirely
up to a developer.

There were opinions that java.lang.Object.getClass() is just a getter
while a tag needs a setter, so these methods do not conflict. On the
other hand, they do conflict if considered accessors of the same
property.

Anyway, I guess it is too late to change these names :)

On 7/24/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
Thanks everyone. That's what I was looking for. It's named badly, imo, because 
styling may use an id, but its main purpose is for the DOM tree.

vijay venkataraman <[EMAIL PROTECTED]> wrote: Hi,
As Thomas Joseph mentioned, styleId is a the way to get 'id' in your
html document when you are using struts html tags. The value you set in
styleId will be set as id of the html element. All input elements that
can be represented by struts html tags has a attribute styleId and you
can use it to set the 'id' on the html element. I have used this
extensively for label id mapping. A single tag, which takes care of this
association, and generation of label would have been great.

Thanks,
Vijay Venkataraman

Thomas Joseph wrote:

>Hi Paul, but I guess, what you want is styleId itself. This will be rendered 
as an HTML id attruibute.
>
>http://struts.apache.org/1.2.9/userGuide/struts-html.html#checkbox
>
>Although named style Id, this is the id what we use in DOM.
>
>Thanks and Regards,
>Thomas Joseph
>  ----- Original Message -----
>  From: Paul Benedict
>  To: Struts Users Mailing List
>  Sent: Monday, July 24, 2006 10:21 AM
>  Subject: Re: HTML Tags and ID
>
>
>  Wendy, unfortunately no. This is not a style, but a DOM element ID. That's 
what the  connects to. It's a really cool thing: if you connect a label to a 
checkbox, you can actually check and uncheck the box by clicking on the label -- 
just like good old thick-client programs :)
>
>  Wendy Smoak  wrote: On 7/23/06, Paul Benedict
>   wrote:
>
>  > Do the Struts tags allow the HTML id attribute to be set in its form 
taglibs? I was hoping to find an htmlId or id attribute but did not see one. Am I 
correct?
>  >
>  > My goal was to accomplish this:
>  >
>  >
>  > The  connects to an HTML ID, not a name.
>
>  Does the 'styleId' attribute do what you want?
>
>  http://struts.apache.org/1.x/struts-taglib/tlddoc/html/checkbox.html
>
>  --
>  Wendy
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>  ---------------------------------
>  Groups are talking. We´re listening. Check out the handy changes to Yahoo! 
Groups.
>
>


------------------------------DISCLAIMER------------------------------
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.

If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient.

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each
reserve the right to monitor all e-mail communications through its
networks.

Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the
sender is authorized to state them to be the views of any such entity.

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




---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.


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

Reply via email to