struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Belingueres" <belingue...@gmail.com>
Subject Re: S2 tags - dynamic attributes
Date Wed, 03 Sep 2008 15:49:12 GMT
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 <jonny.cavell@gmail.com>:
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message