Hm try this ..
<stripes:radio name="isDefault" id="isDefault${stat.index}" value="${dashboard.defaultDashboard}" /> or this <stripes:radio name="isDefault" id="isDefault${stat.index}" value="${dashboard.defaultDashboard}" checked="${dashboard.defaultDashboard}" /> I will agree the checked/value attributes with radios can be tricky. I have freemarker code to generate a list of radio buttons for a collection of objects, so it can be done just fine, but we don't use the checked attribute since it is auto checked from the bean first population strategy and an @Before method to load the objects up for the page. =) If the 2nd one works but the 1st one doesn't, take a look at switching your population strategy - some agree that the default is not as smooth as bean first. If neither work, well, have a good weekend. :P -----Original Message----- From: jborys [mailto:john_bo...@comcast.net] Sent: Friday, April 17, 2009 4:14 PM To: stripes-users@lists.sourceforge.net Subject: Re: [Stripes-users] Dynamic Radio Button List Nope. Gives the same error as my code. Mike McNally-3 wrote: > > The error probably came from trying to get the "checked" attribute in > there conditionally. What should work instead is > > <s:radio ... checked='${predicate ? "true" : "false"}' ... /> > > > On Fri, Apr 17, 2009 at 11:40 AM, jborys <john_bo...@comcast.net> wrote: >> >> " <s:checkbox id="isDefault${stat.index}" name="isDefault" >> checked="${dashboard.defaultDashboard}" />" >> >> I changed this code to this: >> >> <input type="radio" id="isDefault${stat.index}" name="isDefault" >> value="${dashboard.defaultDashboard}" ${(dashboard.defaultDashboard) ? ' >> checked="checked"' : ''} /> >> >> And it does the job. But for some reason I can not use the the stripes >> radio tag. It can't seem to translate it. Instead I get this error: >> >> org.apache.jasper.JasperException: >> /dashboard/manage_dashboards.jsp(132,78) >> Unterminated <s:radio tag >> >> Oh well. I guess I don't have to use the Stripes tag. >> >> Do you ever feel like your have a conversation all by yourself? >> >> Me neither. >> >> >> >> ------------------------------------------------------------------------------ >> Stay on top of everything new and different, both inside and >> around Java (TM) technology - register by April 22, and save >> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >> 300 plus technical and hands-on sessions. Register today. >> Use priority code J9JMT32. http://p.sf.net/sfu/p >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Dynamic-Radio-Button-List-tp23097529p23101308.html >> Sent from the stripes-users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Stay on top of everything new and different, both inside and >> around Java (TM) technology - register by April 22, and save >> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >> 300 plus technical and hands-on sessions. Register today. >> Use priority code J9JMT32. http://p.sf.net/sfu/p >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > > > > -- > Turtle, turtle, on the ground, > Pink and shiny, turn around. > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- View this message in context: http://www.nabble.com/Dynamic-Radio-Button-List-tp23097529p23105188.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users