You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2009/08/31 13:31:24 UTC

[jira] Created: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

s:radio cssStyle,cssClass attributes not respected when placed within s:form
----------------------------------------------------------------------------

                 Key: WW-3231
                 URL: https://issues.apache.org/struts/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


///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Arthur Nogueira Neves (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46702#action_46702 ] 

Arthur Nogueira Neves commented on WW-3231:
-------------------------------------------

Hi,

I can't simulate the problem, bellow follow the HTML result of your JSP:
What's wrong it's happening?

<input type="radio" name="currentEmployee.level" id="shipzipform_currentEmployee_level0" value="0" class="radio.CustomClass" style="{ align:left;border-style:none; }"/><label for="shipzipform_currentEmployee_level0">0</label>
<input type="radio" name="currentEmployee.level" id="shipzipform_currentEmployee_level1" value="1" class="radio.CustomClass" style="{ align:left;border-style:none; }"/><label for="shipzipform_currentEmployee_level1">1</label>
<input type="radio" name="currentEmployee.level" id="shipzipform_currentEmployee_level2" value="2" class="radio.CustomClass" style="{ align:left;border-style:none; }"/><label for="shipzipform_currentEmployee_level2">2</label>



> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Martin Gainty (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46703#action_46703 ] 

Martin Gainty commented on WW-3231:
-----------------------------------

straight html such as 
<input type="radio" name="currentEmployee.level" id="shipzipform_currentEmployee_level0" value="0" class="radio.CustomClass" style="{ align:left;border-style:none; }"/><label for="shipzipform_currentEmployee_level0">0</label> 

Struts tag s:radio when placed inside s:form does NOT render

<%@ 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>
<div id="shippingDiv" style="display: none;"></div>
<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>

</body>
</html>

the requested cssStyle of align:left is not respected by s:form

> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Lee Clemens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46707#action_46707 ] 

Lee Clemens commented on WW-3231:
---------------------------------

This started with an attempt to have the radio options aligned to the left (as in each one in their own row), rather than being displayed in a single row.

While I did notice the class="radio.customClass" being put into the <input> tags when using <s:radio cssClass="radio.customClass">, it was not rendering the radio options in red font (as I had created that css class).

After I wrapped the <s:radio> tag with <div class='radio.customClass'>, the CSS style was rendered as expected (red font).

The only way I found to get each radio option to appear on its own line was to modify radiomap.ftl to add <table> and <tr> tags, and then <td> tags inside the iterator. 

This solved the initial issue - during the troubleshooting of which this rendering 'issue' was discovered.

> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso closed WW-3231.
-------------------------------

    Resolution: Not A Problem

closing...

> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46704#action_46704 ] 

Dave Newton commented on WW-3231:
---------------------------------

Include the rendered HTML for the form and radio. If it's rendering with the "style" attribute as reported in the previous comment then this isn't an issue with Struts but rather an issue with people's understanding of CSS.


> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reopened WW-3231:
---------------------------------


reopening for closer examination, I think I missed something. Wes can you take a look?

> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WW-3231) s:radio cssStyle,cssClass attributes not respected when placed within s:form

Posted by "Lee Clemens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46707#action_46707 ] 

Lee Clemens edited comment on WW-3231 at 8/31/09 12:20 PM:
-----------------------------------------------------------

This started with an attempt to have the radio options aligned to the left (as in each one in their own row), rather than being displayed in a single row.

While I did notice the class="radio.customClass" being put into the <input> tags when using <s:radio cssClass="radio.customClass">, it was not rendering the radio options in red font (as I had created that css class).

After I wrapped the <s:radio> tag with <div class='radio.customClass'>, the CSS style was rendered as expected (red font).

The only way I found to get each radio option to appear on its own line was to modify radiomap.ftl to add <table> and <tr> tags, and then <td> tags inside the iterator. 

This solved the initial issue - but this potential rendering issue was discovered during its troubleshooting.

      was (Author: java@leeclemens.net):
    This started with an attempt to have the radio options aligned to the left (as in each one in their own row), rather than being displayed in a single row.

While I did notice the class="radio.customClass" being put into the <input> tags when using <s:radio cssClass="radio.customClass">, it was not rendering the radio options in red font (as I had created that css class).

After I wrapped the <s:radio> tag with <div class='radio.customClass'>, the CSS style was rendered as expected (red font).

The only way I found to get each radio option to appear on its own line was to modify radiomap.ftl to add <table> and <tr> tags, and then <td> tags inside the iterator. 

This solved the initial issue - during the troubleshooting of which this rendering 'issue' was discovered.
  
> s:radio cssStyle,cssClass attributes not respected when placed within s:form
> ----------------------------------------------------------------------------
>
>                 Key: WW-3231
>                 URL: https://issues.apache.org/struts/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
>
> ///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.
-
You can reply to this email to add a comment to the issue online.