You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jay (JIRA)" <ji...@apache.org> on 2007/09/12 22:42:35 UTC

[jira] Created: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

<s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
-----------------------------------------------------------------------------------------------

                 Key: WW-2173
                 URL: https://issues.apache.org/struts/browse/WW-2173
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.9
         Environment: JDK 1.5
            Reporter: Jay
            Assignee: Don Brown


I am using JDK 1.5 and in my JSP I have :

<s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>

The HTML generated is:

<input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
<input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />

I was expecting something that adheres more to what the documentation says:

<input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>

That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.


This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.


Thank you


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


Re: [jira] Created: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

Posted by jandilson <ja...@gmail.com>.
Veja se no mapeamento de seu interceptor existem ref para "checkbox" e
"exception" ? Provavelmente isso resolverá o problema!

<interceptor-stack name="yourStack">
                <interceptor-ref name="exception"/>
                 ...
                <interceptor-ref name="checkbox"/>
                <interceptor-ref name="staticParams"/>
                ...

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28WW-2173%29-%3Cs%3Acheckbox%3E-with-wrong-value-in-%27value%27-attribute.-Tag-also-generates-an-extra-line-HTML-line.-tf4431923.html#a12865097
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [jira] Created: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

Posted by jandilson <ja...@gmail.com>.
see: 

<interceptor-stack name="defaultStack">
                <interceptor-ref name="exception"/>
                 ...

                <interceptor-ref name="checkbox"/>
                <interceptor-ref name="staticParams"/>
...









JIRA jira@apache.org wrote:
> 
> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an
> extra line HTML line.
> -----------------------------------------------------------------------------------------------
> 
>                  Key: WW-2173
>                  URL: https://issues.apache.org/struts/browse/WW-2173
>              Project: Struts 2
>           Issue Type: Bug
>     Affects Versions: 2.0.9
>          Environment: JDK 1.5
>             Reporter: Jay
>             Assignee: Don Brown
> 
> 
> I am using JDK 1.5 and in my JSP I have :
> 
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey"
> theme="simple"/>
> 
> The HTML generated is:
> 
> <input type="checkbox" name="flightSegmentSelected" value="true"
> id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true"
> />
> 
> I was expecting something that adheres more to what the documentation
> says:
> 
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF
> FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> 
> That is, the second line is not there and the value attribute actually
> contains the value of the object in the value stack.
> 
> 
> This issue is rather a follow-up to WW-2137. That issue was closed, but I
> still having the same problems reported.
> 
> 
> Thank you
> 
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28WW-2173%29-%3Cs%3Acheckbox%3E-with-wrong-value-in-%27value%27-attribute.-Tag-also-generates-an-extra-line-HTML-line.-tf4431923.html#a12865097
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


[jira] Resolved: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

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

Don Brown resolved WW-2173.
---------------------------

    Resolution: Not A Problem

If you want to have the the checkbox HTML rendered as described in the documentation, use the simple theme, not the xhtml theme.  The xhtml theme, among other things, makes some assumptions to simplify coding.  In this case, it assumes a checkbox will be true or false, and uses a hidden field to ensure the value is set to something on submit.

> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-2173
>                 URL: https://issues.apache.org/struts/browse/WW-2173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: JDK 1.5
>            Reporter: Jay
>            Assignee: Don Brown
>             Fix For: 2.0.12
>
>
> I am using JDK 1.5 and in my JSP I have :
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>
> The HTML generated is:
> <input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />
> I was expecting something that adheres more to what the documentation says:
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.
> Thank you

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


[jira] Updated: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

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

James Holmes updated WW-2173:
-----------------------------

    Fix Version/s: 2.0.11

> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-2173
>                 URL: https://issues.apache.org/struts/browse/WW-2173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: JDK 1.5
>            Reporter: Jay
>            Assignee: Don Brown
>             Fix For: 2.0.11
>
>
> I am using JDK 1.5 and in my JSP I have :
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>
> The HTML generated is:
> <input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />
> I was expecting something that adheres more to what the documentation says:
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.
> Thank you

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


[jira] Updated: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

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

Don Brown updated WW-2173:
--------------------------

    Fix Version/s:     (was: 2.0.12)

> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-2173
>                 URL: https://issues.apache.org/struts/browse/WW-2173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: JDK 1.5
>            Reporter: Jay
>            Assignee: Don Brown
>
> I am using JDK 1.5 and in my JSP I have :
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>
> The HTML generated is:
> <input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />
> I was expecting something that adheres more to what the documentation says:
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.
> Thank you

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


[jira] Updated: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

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

James Holmes updated WW-2173:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-2173
>                 URL: https://issues.apache.org/struts/browse/WW-2173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: JDK 1.5
>            Reporter: Jay
>            Assignee: Don Brown
>             Fix For: 2.0.12
>
>
> I am using JDK 1.5 and in my JSP I have :
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>
> The HTML generated is:
> <input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />
> I was expecting something that adheres more to what the documentation says:
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.
> Thank you

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


[jira] Commented: (WW-2173) with wrong value in 'value' attribute. Tag also generates an extra line HTML line.

Posted by "Bela Vizy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42309 ] 

Bela Vizy commented on WW-2173:
-------------------------------

The attribute is 'fieldValue' not 'value.

> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-2173
>                 URL: https://issues.apache.org/struts/browse/WW-2173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: JDK 1.5
>            Reporter: Jay
>            Assignee: Don Brown
>
> I am using JDK 1.5 and in my JSP I have :
> <s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>
> The HTML generated is:
> <input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
> <input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />
> I was expecting something that adheres more to what the documentation says:
> <input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
> That is, the second line is not there and the value attribute actually contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I still having the same problems reported.
> Thank you

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