struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form
Date Thu, 10 May 2012 19:28:52 GMT

     [ https://issues.apache.org/jira/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-3231:
------------------------------

    Fix Version/s:     (was: 2.3.4)
                   2.3.5
    
> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/jira/browse/WW-3231
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.6
>         Environment: Struts-2.1.6
> FF 3.0.11
>            Reporter: Martin Gainty
>            Priority: Minor
>             Fix For: 2.3.5
>
>
> ///styles/main.css contents:
> radio.CustomClass {
>      border: 1px solid black;
>      background-color: InfoBackground;
>      align:left;
>      valign:middle
> }
> //test_for_lee.jsp contents
> <%@ taglib prefix="s" uri="/struts-tags" %>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> <title>test for lee</title>
> <link href="<s:url value='/styles/main.css' encode='false' includeParams='none'/>"
rel="stylesheet" type="text/css" media="all"/>
> </head>
> <body>
> <s:form action="shippingCostsAjax" method="post" id="shipzipform" name="shipzipform">
> <s:textfield name="shipzip" id="shipzip" size="8" label="Enter your ship-to zipcode
to view shipping costs" labelposition="left" />
> <s:radio list="{'0','1','2'}" name="currentEmployee.level" cssClass="radio.CustomClass"
cssStyle="{ align:left;border-style:none; }"/>
> <sx:submit name="ajaxShippingSubmit" id="ajaxShippingSubmit" targets="shippingDiv"
value="Get Shipping Costs" formId="shipzipform"
>  align="left" ajaxAfterValidation="true" executeScripts="true"
>  separateScripts="true" />
> </s:form>
> <s:radio list="{'0'}" name="lookup_id3" cssStyle="{ align:left; }" value="0"/>
> <br>
> <s:radio list="{'1'}" name="lookup_id3" cssClass="radio.CustomClass" value="1" />
> </body>
> </html>
> when placed inside s:form s:radio cssClass and cssStyle attributes of s:radio within
s:form are not respected and tag code is not rendered according to specified cssStyle or cssClass
attributes of the s:radio tag
> when placed outside s:form s:radio cssClass and cssStyle attributes of s:radio ARE respected
and DO render according to the supplied cssStyle or cssClass attributes of the s:radio tag

--
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

        

Mime
View raw message