You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Nilsson (JIRA)" <ji...@apache.org> on 2009/03/26 11:01:03 UTC

[jira] Created: (WW-3061) labelSeperator attribute on radio tag appears to do nothing

labelSeperator attribute on radio tag appears to do nothing
-----------------------------------------------------------

                 Key: WW-3061
                 URL: https://issues.apache.org/struts/browse/WW-3061
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags
    Affects Versions: 2.1.6
            Reporter: Paul Nilsson
            Priority: Minor


Maybe related to https://issues.apache.org/struts/browse/WW-2343

It appears that nothing was printed out at all when using labelSeperator, also there seems to be no way to specify a cssClass for the labelSeperator. The radio tag takes a cssClass parameter but only sets that in the <input> element not the <label> one.

I'd expect people would often like to use this to throw in a <br> between entries. This doesn't seem to be easily possible due to labelSeperator escaping the input (if it works correctly), and not being able to specify a class for the label element. 

I'm using the workaround below which seems to work due to the way the tag formats the whitespace, but not something I'd like to rely on.

<div style="white-space:pre-wrap;"><s:radio list="theList" name="theName"/></div>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.