You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "rusu stefan (JIRA)" <ji...@apache.org> on 2008/07/29 15:11:06 UTC
[jira] Created: (WW-2739) CLONE -radiomap.ftl does not reconize
OGNL value returned from a object.
CLONE -radiomap.ftl does not reconize OGNL value returned from a object.
------------------------------------------------------------------------
Key: WW-2739
URL: https://issues.apache.org/struts/browse/WW-2739
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tags
Affects Versions: 2.0.6
Environment: Windows XP, Jdeveloper 10g, OC4j
Reporter: rusu stefan
Assignee: Don Brown
Fix For: 2.0.8
When I populate the value field in a <s:radio /> with a ognl value from the stack it is not recognized and the default value is not selected. The only way that I can make it work with the current template is to use a ognl value of %{'M'} to default the value I want to match to a string.
To fix this I modified the radiomap.ftl code and changed the following check from:
<#if tag.contains(parameters.nameValue, itemKey)>
checked="checked"<#rt/>
</#if>
To:
<#if tag.contains(parameters.nameValue, itemKeyStr)>
checked="checked"<#rt/>
</#if>
and now the value field is recognized properly. The comparison that I changed it to was from the webwork2.4 radiomap.ftl
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-2739) CLONE -radiomap.ftl does not reconize
OGNL value returned from a object.
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2739.
---------------------------------
Resolution: Not A Problem
The value is an expression, so it can evaluate to an object. That's why if the key is an string you need to use the %{'mystr'} notation.
> CLONE -radiomap.ftl does not reconize OGNL value returned from a object.
> ------------------------------------------------------------------------
>
> Key: WW-2739
> URL: https://issues.apache.org/struts/browse/WW-2739
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.0.6
> Environment: Windows XP, Jdeveloper 10g, OC4j
> Reporter: rusu stefan
> Assignee: Don Brown
> Fix For: 2.0.8
>
>
> When I populate the value field in a <s:radio /> with a ognl value from the stack it is not recognized and the default value is not selected. The only way that I can make it work with the current template is to use a ognl value of %{'M'} to default the value I want to match to a string.
> To fix this I modified the radiomap.ftl code and changed the following check from:
> <#if tag.contains(parameters.nameValue, itemKey)>
> checked="checked"<#rt/>
> </#if>
> To:
> <#if tag.contains(parameters.nameValue, itemKeyStr)>
> checked="checked"<#rt/>
> </#if>
> and now the value field is recognized properly. The comparison that I changed it to was from the webwork2.4 radiomap.ftl
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2739) CLONE -radiomap.ftl does not reconize
OGNL value returned from a object.
Posted by "rusu stefan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44493#action_44493 ]
rusu stefan commented on WW-2739:
---------------------------------
The issue is reproducing in version 2.0.11.2, although it was reported as fixed in version 2.0.8.
Please see issue: WW-1907
> CLONE -radiomap.ftl does not reconize OGNL value returned from a object.
> ------------------------------------------------------------------------
>
> Key: WW-2739
> URL: https://issues.apache.org/struts/browse/WW-2739
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.0.6
> Environment: Windows XP, Jdeveloper 10g, OC4j
> Reporter: rusu stefan
> Assignee: Don Brown
> Fix For: 2.0.8
>
>
> When I populate the value field in a <s:radio /> with a ognl value from the stack it is not recognized and the default value is not selected. The only way that I can make it work with the current template is to use a ognl value of %{'M'} to default the value I want to match to a string.
> To fix this I modified the radiomap.ftl code and changed the following check from:
> <#if tag.contains(parameters.nameValue, itemKey)>
> checked="checked"<#rt/>
> </#if>
> To:
> <#if tag.contains(parameters.nameValue, itemKeyStr)>
> checked="checked"<#rt/>
> </#if>
> and now the value field is recognized properly. The comparison that I changed it to was from the webwork2.4 radiomap.ftl
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.