You could create an alternate template and specify it for the tags
where it is needed.

On 7/19/07, mraible <[EMAIL PROTECTED]> wrote:

Thanks James. On a related note, is there an <s:fielderror> tag that allows
writing out a field error w/o writing out <li> tags? It doesn't appear so.

<s:fielderror>
    <s:param>field1</s:param>
</s:fielderror>

This will give you a <li> wrapped around the error. I'd like to see
<s:fielderror name="field1"/> for a single field. Looking at the FreeMarker
template, an <li> will always be written. My workaround is to use the
following:

<s:property value="fieldErrors['field1'][0]" />

Matt


James Holmes-2 wrote:
>
> See:
>
> https://issues.apache.org/struts/browse/WW-772
> https://issues.apache.org/struts/browse/WW-1289
>
> James
>
>
> On Wed Jul 18 13:41 , mraible <[EMAIL PROTECTED]> sent:
>
>>
>>The  tag requires you specify a list. What if you want to render 4
>>radio buttons on a screen and put divs between them that expand when you
>>click on the radio button? Struts 2 doesn't seem to be able to handle
this.
>>Of course, you can use JSP EL and regular  tags, but that seems kinda
>>hokey.
>>
>>
>>'checked="checked"' : ''} />
>>
>>Is this an oversight? Should  be renamed to  and a
>>single  be created - like  has?
>>
>>Thanks,
>>
>>Matt
>>--
>>View this message in context:
> 
http://www.nabble.com/Is-there-a-reason-s%3Aradio-requires-a-list--tf4104739.html#a11673487
>>Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>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]
>
>
>

--
View this message in context: 
http://www.nabble.com/Is-there-a-reason-s%3Aradio-requires-a-list--tf4104739.html#a11693173
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]

Reply via email to