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:[EMAIL PROTECTED]
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]