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/23 22:36:12 UTC
[shale] radio in datatable using clay
Hi folks,
I try to build a datatable in clay like:
<component jsfid="zeitraumTable" extends="dataTable"
allowBody="false">
<attributes>
<set name="value"
value="#{@managed-bean-name.zeitraumList}" />
<set name="var" value="e" />
</attributes>
<element renderId="0" jsfid="radioColumn" />
<element renderId="1" jsfid="typbezeichnungColumn" />
</component>
In order to realise a "choose one row" my customer likes to use a radio
input type.
<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="t:selectOneRadio" id="radio">
<attributes>
<set name="value"
value="#{@managed-bean-name.ident}" />
<set name="for" value="radioColumn" />
</attributes>
<element renderId="1" jsfid="selectItem">
<attributes>
<set name="itemValue"
value="#{e.PK}" />
</attributes>
</element>
</element>
</component>
Not using the "for" attribute i get the error to use it. After that the
error that index has to be postiv.
Looking into the src shows the following lines:
java.lang.IllegalStateException: positive index must be given
at
org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(HtmlRadi
oRenderer.java:90)
at
org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.encodeEnd(HtmlRadioR
enderer.java:56)
88 if (index < 0)
89 {
90 throw new IllegalStateException("positive index must be
given");
91 }
How do i have to configure this ????
Thx
Timo
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org