[s2] fixed checkbox for css_xhtml  -
------------------------------------

                 Key: WW-1455
                 URL: http://issues.apache.org/struts/browse/WW-1455
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.0, 2.0.1
            Reporter: Mike McMahon


labelposition=left does not work (the label is always on the right).
Attached is a revision to template/css_xhtml/checkbox.ftl which fixes
this problem.checkbox.ftl

HTML BEFORE THE FIX:
<div id="wwgrp_item_form_item_enabled" class="wwgrp">
        <span id="wwctrl_item_form_item_enabled" class="wwctrl">
                <input type="checkbox" name="item.enabled" value="true" 
id="item_form_item_enabled"/>
                <input type="hidden" name="__checkbox_item.enabled" 
value="true"/>
        </span>  
        <span id="wwlbl_item_form_item_enabled" class="wwlbl">
                <label for="item_form_item_enabled" 
class="checkboxLabel">Enabled</label>
        </span>
</div>

HTML AFTER THE FIX:
<div id="wwgrp_item_form_item_enabled" class="wwgrp">
        <span id="wwlbl_item_form_item_enabled" class="wwlbl">
                <label for="item_form_item_enabled" 
class="checkboxLabel">Enabled</label>
        </span>
        <span id="wwctrl_item_form_item_enabled" class="wwctrl">
                <input type="checkbox" name="item.enabled" value="true" 
id="item_form_item_enabled"/>
                <input type="hidden" name="__checkbox_item.enabled" 
value="true"/>
        </span>
</div>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to