Support alternate label separator in xhtml form tags
----------------------------------------------------

                 Key: WW-1852
                 URL: https://issues.apache.org/struts/browse/WW-1852
             Project: Struts 2
          Issue Type: Improvement
          Components: Views
    Affects Versions: 2.0.7, 2.0.6
         Environment: Freemarker
            Reporter: Jasper Rosenberg
            Priority: Minor


In file template/xhtml/controlheader-core.ftl:

Replace the single occurence of : with ${parameters.labelSeparator!":"}

This will allow a user that doesn't want to use the colon as their label 
separator to specify an alternative, or even none at all.  I ran into a couple 
cases where this was needed including:
1. A label that was an equation: "4 + 15 ="
2. A label that was a question: "Required?"

For example:
<@s.textfield label="7 + 23 ="  name="answer" labelSeparator=""/>
<@s.checkbox name="isRequired" label="Required?"  labelSeparator=""/>

Or perhaps a user might even prefer to have their label separators be hyphens 
rather than colons.

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

Reply via email to