You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jason Thurston (JIRA)" <ji...@apache.org> on 2007/04/17 23:30:43 UTC
[jira] Created: (WW-1887) struts 2.0.7 template/simple/select.ftl
error/fix
struts 2.0.7 template/simple/select.ftl error/fix
-------------------------------------------------
Key: WW-1887
URL: https://issues.apache.org/struts/browse/WW-1887
Project: Struts 2
Issue Type: Bug
Reporter: Jason Thurston
To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
I then
changed line 60 from:
<option value="${itemKey?html}"<#rt/>
to:
<option value="${itemKeyStr?html}"<#rt/>
and I inserted the following line before line 60:
<#assign itemKeyStr=itemKey.toString() />
I got the idea from another .ftl file that does something similar.
The error message this fixed was:
Error on line 60, column 22 in template/simple/select.ftl
Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
The problematic instruction:
----------
==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-1887) struts template/simple/select.ftl
error/fix
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes resolved WW-1887.
------------------------------
Resolution: Fixed
This has been fixed in svn revisions: 557644, 557647.
Thanks for the heads up and patch!
> struts template/simple/select.ftl error/fix
> -------------------------------------------
>
> Key: WW-1887
> URL: https://issues.apache.org/struts/browse/WW-1887
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Reporter: Jason Thurston
> Assignee: James Holmes
> Fix For: 2.0.9, 2.1.0
>
>
> To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
> I then
> changed line 60 from:
> <option value="${itemKey?html}"<#rt/>
> to:
> <option value="${itemKeyStr?html}"<#rt/>
> and I inserted the following line before line 60:
> <#assign itemKeyStr=itemKey.toString() />
> I got the idea from another .ftl file that does something similar.
> The error message this fixed was:
> Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
> The problematic instruction:
> ----------
> ==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
> in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1887) struts template/simple/select.ftl
error/fix
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-1887:
-----------------------------
Affects Version/s: 2.0.7
Fix Version/s: 2.1.0
> struts template/simple/select.ftl error/fix
> -------------------------------------------
>
> Key: WW-1887
> URL: https://issues.apache.org/struts/browse/WW-1887
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Reporter: Jason Thurston
> Fix For: 2.0.9, 2.1.0
>
>
> To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
> I then
> changed line 60 from:
> <option value="${itemKey?html}"<#rt/>
> to:
> <option value="${itemKeyStr?html}"<#rt/>
> and I inserted the following line before line 60:
> <#assign itemKeyStr=itemKey.toString() />
> I got the idea from another .ftl file that does something similar.
> The error message this fixed was:
> Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
> The problematic instruction:
> ----------
> ==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
> in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1887) struts 2.0.7 template/simple/select.ftl
error/fix
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Brown updated WW-1887:
--------------------------
Fix Version/s: 2.0.9
> struts 2.0.7 template/simple/select.ftl error/fix
> -------------------------------------------------
>
> Key: WW-1887
> URL: https://issues.apache.org/struts/browse/WW-1887
> Project: Struts 2
> Issue Type: Bug
> Reporter: Jason Thurston
> Fix For: 2.0.9
>
>
> To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
> I then
> changed line 60 from:
> <option value="${itemKey?html}"<#rt/>
> to:
> <option value="${itemKeyStr?html}"<#rt/>
> and I inserted the following line before line 60:
> <#assign itemKeyStr=itemKey.toString() />
> I got the idea from another .ftl file that does something similar.
> The error message this fixed was:
> Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
> The problematic instruction:
> ----------
> ==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
> in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1887) struts template/simple/select.ftl
error/fix
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-1887:
-----------------------------
Summary: struts template/simple/select.ftl error/fix (was: struts 2.0.7 template/simple/select.ftl error/fix)
> struts template/simple/select.ftl error/fix
> -------------------------------------------
>
> Key: WW-1887
> URL: https://issues.apache.org/struts/browse/WW-1887
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Reporter: Jason Thurston
> Fix For: 2.0.9, 2.1.0
>
>
> To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
> I then
> changed line 60 from:
> <option value="${itemKey?html}"<#rt/>
> to:
> <option value="${itemKeyStr?html}"<#rt/>
> and I inserted the following line before line 60:
> <#assign itemKeyStr=itemKey.toString() />
> I got the idea from another .ftl file that does something similar.
> The error message this fixed was:
> Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
> The problematic instruction:
> ----------
> ==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
> in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WW-1887) struts template/simple/select.ftl
error/fix
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes reassigned WW-1887:
--------------------------------
Assignee: James Holmes
> struts template/simple/select.ftl error/fix
> -------------------------------------------
>
> Key: WW-1887
> URL: https://issues.apache.org/struts/browse/WW-1887
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Reporter: Jason Thurston
> Assignee: James Holmes
> Fix For: 2.0.9, 2.1.0
>
>
> To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
> I then
> changed line 60 from:
> <option value="${itemKey?html}"<#rt/>
> to:
> <option value="${itemKeyStr?html}"<#rt/>
> and I inserted the following line before line 60:
> <#assign itemKeyStr=itemKey.toString() />
> I got the idea from another .ftl file that does something similar.
> The error message this fixed was:
> Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
> The problematic instruction:
> ----------
> ==> ${itemKey?html} [on line 60, column 20 in template/simple/select.ftl]
> in user-directive s.iterator [on line 41, column 1 in template/simple/select.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.NonStringException: Error on line 60, column 22 in template/simple/select.ftl
> Expecting a string, date or number here, Expression itemKey is instead a freemarker.ext.beans.BooleanModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.