Thanks Andy.

The docs recomend not doing that, but it seems to work fine. 

I ended up just copying radiomap.ftl to /templates/simple since there aren't 
any radio buttons I want to be listed outside of the tr and td tags I added to 
the template.

-----Original Message-----

From:  Andy Law <andy....@roslin.ed.ac.uk>
Subj:  RE: Radio options left aligned
Date:  Mon Aug 31, 2009 4:31
Size:  1K
To:  user@struts.apache.org




Lee Clemens-4 wrote:
> 
> Doesn't seem to work, but maybe my description was unclear.
> 
> I'm trying to get this:
> () OptA () OptB () OptC
> 
> to look like this:
> () OptA
> () OptB
> () OptC
> 
> theme="simple" prints them all in order
> theme="xhtml" prints them inside the same td tag (same row, not each as a
> new row).
> 
> 


I don't have my docs immediately to hand at the moment, but I think that the
most important thing that you need to know is that each element in your page
can have the theme applied to it directly. Thus you can use "simple" by
default for the majority of the form and then specify your own theme for the
radiolist (using <s:tagname theme="mytheme"...>). That way you can write
your own ftl file for just the elements that you need and not affect other
instances of the tag type that don't need the specific styling.

FWIW (and IIRC from code I wrote a while ago), coding the radiolist as a
list (ul) with each radio-option as a list element within that combined with
a div/span/specific css-style was the easiest option for getting the format
you want.

Hope that helps.

Later,

Andy

-- 
View this message in context: 
http://www.nabble.com/Radio-options-left-aligned-tp25205809p25219977.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




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

Reply via email to