struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonny Cavell <jonny.cav...@gmail.com>
Subject S2 tags - dynamic attributes
Date Wed, 03 Sep 2008 15:25:15 GMT

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


Mime
View raw message