struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Domergue <sebastien.domer...@c-s.fr>
Subject Re: How do I generate an ID attribute with my text field
Date Tue, 18 Nov 2008 09:21:50 GMT
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
>   


Mime
View raw message