Re: s:radio on multiple lines
2009/1/25 Daniel Ruan : > > > Maybe simpler will be to modify original template files? Or use CSS to arrange tags in column? Regards -- Lukasz http://www.lenart.org.pl/ PS. I wasn't aware that radio tag is using list to render it self ;-( - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:radio on multiple lines
What I meant before is that something like this: puts everything on the same line. And there is no place there to add a tag. I found a solution in the end, after googling a bit more and with more relevant keywords: Assuming the action exposes a map of id and some object with the [id, name] properties. The map key "id" is the object id field and selectedId receives the id of the selected object. http://www.daniweb.com/forums/thread159633.html http://struts.apache.org/2.x/docs/how-do-i-render-a-single-radio-button.html I also came across a discussion in the XWork world about adding a "vertical" parameter to the radio tag. That'd be a great idea. Hope we will have that in next version of Struts2 too. On Sat, Jan 24, 2009 at 3:30 PM, Lukasz Lenart wrote: > 2009/1/24 Daniel Ruan : > > The simple theme does not work for me... My entire app uses the simple > theme > > (). I also tried > > theme="simple" at the s:radio level but to no avail. > > So then, put tag after each. > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: s:radio on multiple lines
2009/1/24 Daniel Ruan : > The simple theme does not work for me... My entire app uses the simple theme > (). I also tried > theme="simple" at the s:radio level but to no avail. So then, put tag after each. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:radio on multiple lines
The simple theme does not work for me... My entire app uses the simple theme (). I also tried theme="simple" at the s:radio level but to no avail. Thanks, Daniel On Sat, Jan 24, 2009 at 3:00 PM, Lukasz Lenart wrote: > 2009/1/24 Daniel Ruan : > > I'd like to create a group of radio buttons, one on each line, because > the > > label is lengthy. By default, s:radio puts all radios on one single > line. > > How do I change that? > > Use them=simple instead of xhtml > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: s:radio on multiple lines
2009/1/24 Daniel Ruan : > I'd like to create a group of radio buttons, one on each line, because the > label is lengthy. By default, s:radio puts all radios on one single line. > How do I change that? Use them=simple instead of xhtml Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:radio on multiple lines
Hi There, I'd like to create a group of radio buttons, one on each line, because the label is lengthy. By default, s:radio puts all radios on one single line. How do I change that? Thanks, Daniel