>From: Timo Schnölzer <[EMAIL PROTECTED]> > > Hi Gary, > > It is strange: > > 1. using common jsf component: > java.lang.IllegalArgumentException: Value is no String and component > clayView:base:_id0:_id31:_id49:SUCHEN:_id91_0:radio does not have a > Converter > at > org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererU > tils.java:544) > > But this property is String and returing default value, i debugged the > getIdent() ... >
This one sounds like the result of getIdent() is not a String type. If it's an Integer, try adding a converter. <element renderId="2" jsfid="t:selectOneRadio" id="radio"> <attributes> <set name="value" value="[EMAIL PROTECTED]" /> <set name="for" value="radioColumn" /> </attributes> <element renderId="1" jsfid="selectItem"> <attributes> <set name="itemValue" value="#{e.PK}" /> </attributes> </element> <converter jsfid="integerConverter"/> </element> > 2. Using t:radio and setting the index to 1: > java.lang.IllegalStateException: UISelectOne expected > Try adding a label to the selectItem <attributes> <set name="itemValue" value="#{e.PK}" /> <set name="itemLabel" value="#{e.PK}" /> </attributes> > org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(HtmlRadi > oRenderer.java:100) > > org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.encodeEnd(HtmlRadioR > enderer.java:56) > > > > I am really getting mad! > :-) Just make lemonade. > timo > Gary > > -----Original Message----- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 23, 2006 11:25 PM > To: Struts Users Mailing List > Subject: Re: [shale] radio in datatable using clay > > From: Timo Schnölzer > > > Hi folks, > > > > I try to build a datatable in clay like: > > > >I try to build a datatable in clay like: > > > >> >allowBody="false"> > > > >> >value="[EMAIL PROTECTED]" /> > > > > > > > > > > > > > > > > > >In order to realise a "choose one row" my customer likes to use a radio > >input type. > > > > > > > > > > > > > > > > > > > >> >value="[EMAIL PROTECTED]" /> > > > > > > > > > >> >value="#{e.PK}" /> > > > > > > > > > > > >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: > > > > This is a custom myfaces component that requires and "index" component > property. > I looked at the source code for the component and the tag but here is not > any java doc on what the "index" property is used for. I didn't see it > listed as a component under myfaces tomahawk but it's in the source. > > > I would first try setting the "index" property value. > > > > > > > > > You could also try using the standard JSF runtime "selectOneRadio" component > instead of the tomahawk "t:selectOneRadio". > > Gary > > > > java.lang.IllegalStateException: positive index must be given at > > org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(Ht > > mlRadi > > oRenderer.java:90) > > at > > org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.encodeEnd(Html > > RadioR > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >