Either:
- create your own theme for the radio button. Use simple/radiomap.ftl
tyo create <mytheme>/radiomap.ftl to exclude the label that's always
included (recommended); or
- do a hack: you can use html inputs in your form directly in your
JSP. These are also included as parameters for your post. Struts2
doesn't know the difference provided the name equals what struts2 expects.
ie. put this in your JSP contained in your <s:iterator>:
<input type="radio" name="car" id="reservation_carBMW M5" value="<s:property value =
"my.property"/>"/>
Torsten Römer wrote:
Thanks, Musachy, for the quick answer.
I should have mentioned, that I already set theme="simple" but <s:radio>
would still create a label:
<s:radio theme="simple" name="car" list="{'BMW M5'}"/>
yields:
<input type="radio" name="car" id="reservation_carBMW M5" value="BMW
M5"/><label for="reservation_carBMW M5">BMW M5</label>
What I am actually trying to do is to create single radiobuttons in a
<s:iterator> loop. Sounds crazy I know, but I need to place the
radiobuttons in a specific layout so I can't use standard markup.
All works fine, I just can't get rid of the labels :-(
Torsten
Musachy Barroso schrieb:
To select the tab, use the "selectedTab" attribute on tabbedPannel. For
your
label question check this FAQ:
http://cwiki.apache.org/WW/why-do-the-form-tags-put-table-tags-around-controls.html
musachy
On 5/22/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
I have 2 beginners questions that I can't seem to figure out:
- How can I make tags like <s:radio> not to create any label and create
my own label (using for example the <s:label> tag)?
- What is the easiest way to re-select the selected tab of a
<s:tabbedPanel> when redisplaying the form? I have a String type
property for the current tab in my backing bean but I am unsure how to
use it.
Torsten
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]