You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by laredotornado <la...@gmail.com> on 2008/11/17 19:58:38 UTC

How do I generate an ID attribute with my text field

Hi,

I have this hidden field

<html:hidden property="task" value="<%=requestTask%>" forceId="true" />

which is causing me compilation errors because "forceId" is not recognized
as an attribute.  How do I create a struts hidden field so that an ID is
generated in addition to the name attribute?

Thanks, - Dave
-- 
View this message in context: http://www.nabble.com/How-do-I-generate-an-ID-attribute-with-my-text-field-tp20545762p20545762.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How do I generate an ID attribute with my text field

Posted by Sébastien Domergue <se...@c-s.fr>.
Hi,

actually, the styleId allow you to define your own id but i think that 
struts generate an id if you don't force one. At least, it's the default 
behaviour for a field into a form in Struts 2 (but i'm not sure in 
struts 1).

Regards

Sébastien

Kawczynski, David a écrit :
> styleId="blah" 
> You have to provide the value; Struts won't generate one for you.  
> Not that I'm aware of, at least.
>
> HTH,
> -dave
>
>
>
> -----Original Message-----
> From: laredotornado [mailto:laredotornado@gmail.com] 
> Sent: Monday, November 17, 2008 1:59 PM
> To: user@struts.apache.org
> Subject: How do I generate an ID attribute with my text field
>
>
> Hi,
>
> I have this hidden field
>
> <html:hidden property="task" value="<%=requestTask%>" forceId="true" />
>
> which is causing me compilation errors because "forceId" is not
> recognized
> as an attribute.  How do I create a struts hidden field so that an ID is
> generated in addition to the name attribute?
>
> Thanks, - Dave
>   


RE: How do I generate an ID attribute with my text field

Posted by "Kawczynski, David" <da...@merck.com>.
styleId="blah" 
You have to provide the value; Struts won't generate one for you.  
Not that I'm aware of, at least.

HTH,
-dave



-----Original Message-----
From: laredotornado [mailto:laredotornado@gmail.com] 
Sent: Monday, November 17, 2008 1:59 PM
To: user@struts.apache.org
Subject: How do I generate an ID attribute with my text field


Hi,

I have this hidden field

<html:hidden property="task" value="<%=requestTask%>" forceId="true" />

which is causing me compilation errors because "forceId" is not
recognized
as an attribute.  How do I create a struts hidden field so that an ID is
generated in addition to the name attribute?

Thanks, - Dave
-- 
View this message in context:
http://www.nabble.com/How-do-I-generate-an-ID-attribute-with-my-text-fie
ld-tp20545762p20545762.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org