[ 
https://issues.apache.org/jira/browse/WW-3792?focusedWorklogId=1048037&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1048037
 ]

ASF GitHub Bot logged work on WW-3792:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Oct/26 14:08
            Start Date: 17/Oct/26 14:08
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #2041:
URL: https://github.com/apache/struts/pull/2041#issuecomment-6234880460

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=2041) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2041&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2041&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=2041&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2041&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2041&metric=new_duplicated_lines_density&view=list)
  
     
   <!

Issue Time Tracking
-------------------

    Worklog Id:     (was: 1048037)
    Time Spent: 20m  (was: 10m)

> 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
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.5.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to