You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Timo Schnölzer <ti...@schnoelzer.de> on 2006/02/24 09:32:02 UTC

[shale] still radio group in datatable

Hi folks, hi Gary,

Now with this clay.xml my datatable is having a radio column. Wow, took so
long ...

	<component jsfid="radioColumn" extends="column" id="radioColumn">
		<element renderId="1" jsfid="outputText" facetName="header">
			<attributes>
				<set name="value" value="" />
			</attributes>
		</element>
		<element renderId="2" jsfid="selectOneRadio" id="radio">
			<attributes>
				<set name="value"
value="#{@managed-bean-name.ident}" />
				<set name="for" value="radioColumn" />
				<set name="index" value="1" />
			</attributes>
			<element renderId="1" jsfid="selectItem">
					<attributes>
						<set name="itemValue"
value="#{e.PK.schwackeCode}-#{e.PK.zeitId}" />
						<set name="itemLabel"
value="#{e.PK.schwackeCode}-#{e.PK.zeitId}" />
					</attributes>
			</element>
		</element>
	</component>

The Problem was the value of the radio having a complex type with a toString
method not resolved ...

Now my html result has entries like:

<input name="clayView:base:_id0:_id31:_id49:SUCHEN:_id91_0:radio"
value="10810120-191946">
<input name="clayView:base:_id0:_id31:_id49:SUCHEN:_id91_1:radio"
value="10810130-191947">

with the problem of "different" names, so i can check each radio type. But i
want them to act in one group. What do i miss here???

Thx for any help

Timo


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