You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sundar Sankarnarayanan (JIRA)" <ji...@apache.org> on 2008/04/16 00:41:05 UTC

[jira] Created: (WW-2593) generates extraLine of code

<s:checkbox theme=simple/> generates extraLine of code
------------------------------------------------------

                 Key: WW-2593
                 URL: https://issues.apache.org/struts/browse/WW-2593
             Project: Struts 2
          Issue Type: Bug
            Reporter: Sundar Sankarnarayanan


<s:checkbox name="coursesDeleted"
											fieldValue="%{something}_%{somethingElse}" theme="simple"/>

This was within an iterator tag and even after mentioning the theme="simple" there seems to be an extra line of html code.

<input name="coursesDeleted" value="XXXX" id="formName_coursesDeleted" type="checkbox">
<input name="__checkbox_coursesDeleted" value="XXXX" type="hidden">

Why is this happening even after mentioning theme="simple"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WW-2593) generates extraLine of code

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

Dave Newton closed WW-2593.
---------------------------

    Resolution: Not A Problem

Please ask questions on the struts-user mailing list.

----

The "extra" line of HTML is to satisfy the checkbox interceptor's functionality since checkboxes are not normally submitted when unchecked. The hidden field allows for an unchecked checkbox to still be submitted.

This is expected behavior.


> <s:checkbox theme=simple/> generates extraLine of code
> ------------------------------------------------------
>
>                 Key: WW-2593
>                 URL: https://issues.apache.org/struts/browse/WW-2593
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Sundar Sankarnarayanan
>
> <s:checkbox name="coursesDeleted"
> 											fieldValue="%{something}_%{somethingElse}" theme="simple"/>
> This was within an iterator tag and even after mentioning the theme="simple" there seems to be an extra line of html code.
> <input name="coursesDeleted" value="XXXX" id="formName_coursesDeleted" type="checkbox">
> <input name="__checkbox_coursesDeleted" value="XXXX" type="hidden">
> Why is this happening even after mentioning theme="simple"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.