dev@woodstock.java.net

Re: how to get styleClass of a textfield

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Wed, 26 Mar 2008 15:28:49 -0500

Jason Suplizio wrote:
> Here's a gues...
> document.getElementById('Connections').getProps().className

Yes. This is the public API described in the TLD docs below.

    http://webdev2.sun.com/woodstock-tlddocs

>
> If you have dojo to work with....
>
> dojo.byId('Connections').getProps().className

FYI, dojo is no longer available in 4.2, so this will not work. This was
never supported, anyway.

Dan

>
> On Wed, Mar 26, 2008 at 10:57 AM, Anissa Lam <Anissa.Lam_at_sun.com
> <mailto:Anissa.Lam_at_sun.com>> wrote:
>
>
> Hi,
> We moved to woodstock 4.2 recently from 4.0.2, and I cannot
> retrieve the
> styleClass the same way as in 4.0.2.
> In 4.0.2, i can do
> styleClass = component.className;
>
> Can someone tell me how i can retrieve the styleClass in JS after
> i get
> hold of this component ?
>
> <webuijsf:textField id="Connections" styleClass="integer"
> text="#{connections}" />
>
> thanks
> Anissa.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> <mailto:dev-unsubscribe_at_woodstock.dev.java.net>
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
> <mailto:dev-help_at_woodstock.dev.java.net>
>
>