You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org> on 2012/04/10 20:13:13 UTC
[jira] [Updated] (WW-3792) s:checkbox
(org.apache.struts2.components.Checkbox) generates span instead of div when
using labelposition="left"
[ https://issues.apache.org/jira/browse/WW-3792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3792:
------------------------------
Fix Version/s: 2.5
The possible change can break backward compatibility, postponing till 2.5
> s:checkbox (org.apache.struts2.components.Checkbox) generates span instead of div when using labelposition="left"
> -----------------------------------------------------------------------------------------------------------------
>
> Key: WW-3792
> URL: https://issues.apache.org/jira/browse/WW-3792
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1.2
> Environment: Tomcat 6 / JDK 1.5
> Reporter: emmanuelg
> Fix For: 2.5
>
>
> When using theme="css_xhtml", most of components (s:textfield,s:textarea,s:radio,s:select) generate code like that :
> <div class="wwgrp">
> <div class="wwlbl">
> <LABEL>
> </div>
> <div class="wwctrl" >
> <Component = input or select or textarea>
> </div>
> </div>
> Wheras if you use s:checkbox with labelposition="left" it generates something like that (span instead of div) :
> <s:checkbox key="myKeyValue" labelposition="left" />
> generates :
> <div class="wwgrp">
> <span class="wwlbl">
> <LABEL>
> </span>
> <span class="wwctrl" >
> <Component = input or select or textarea>
> </span>
> </div>
> When you use css_xhtml and a css to display a form, this is a real problem.
> As a workaround, you have to display checkbox using parentThem=simple, and generate div by yourself.
> Maybe this problem is due to the fact that by default, all component have :
> - label at left
> - value at right
> Expect for checkbox that has :
> - label at right
> - value at left
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira