Martin Gainty
Wed, 03 Sep 2008 09:01:57 -0700
as dave mentioned status returns a IteratorStatus object<BR> http://struts.apache.org/2.x/docs/iteration-tags.html<BR> you would then need to determine which attribute of IteratorStatus to access<BR> <s:iterator status="status" value='%{0, 1}'><BR> Index: <s:property value="%{#status.index}" /> <br /><BR> Count: <s:property value="%{#status.count}" /> <br /> <BR> </s:iterator><BR> http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html <BR> Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Wed, 3 Sep 2008 12:49:12 -0300 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: S2 tags - dynamic attributes > > 1) It can't see why not. BTW, id="#{...}" doesn't work because the > expresions start with %, like in id='%{itStatus}' > > 2) Extrange enough, I tested this with S2.1.2: It works with > <s:select> but it doesn't work for <s:radio>. > > 2008/9/3, Jonny Cavell <[EMAIL PROTECTED]>: > > > > What I need to do is very simple, but I'm beginning to wonder whether > > Struts2 > > actually lets me do it. > > > > Firstly, I want the id attribute of any HTML tag to take a dynamic value, so > > that I can code it at runtime. > > Secondly I want the tag to take e.g. dojoType as an attribute: > > > > <s:iterator value="#xxx" status="itStatus" var = "yyy"> > > <s:radio dojoType = "zzz" id = "#{itStatus}" list="#{'0':'', '1':'', > > '2':'', '3':'', '4':'', '5':''}"> > > </s:radio> > > <s:iterator> > > > > Neither of these work. > > If I can't do this (or use a simple workaround), I cannot use Struts tags. > > Is it possible? > > > > Jonny > > -- > > View this message in context: > > http://www.nabble.com/S2-tags---dynamic-attributes-tp19291646p19291646.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008