struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <belingue...@gmail.com>
Subject Re: freemarker error in select tag
Date Thu, 07 Jan 2010 12:39:36 GMT
Please post the S2 version number, the <s:select> tag you are using
together with the action code to initialize the select list/map.

2010/1/7 Johannes Geppert <jogep@web.de>:
>
> Hello,
>
> today i got this error while rendering an simple select box.
>
> 2010-01-07 11:08:41,420 ERROR (freemarker.runtime:96) -
> Error on line 69, column 13 in template/simple/select.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> The problematic instruction:
> ----------
> ==> assignment: itemKey=stack.findValue('top') [on line 69, column 13 in
> template/simple/select.ftl]
>  in user-directive s.iterator [on line 59, column 1 in
> template/simple/select.ftl]
> ----------
>
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 69, column 13 in
> template/simple/select.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
>        at freemarker.core.Assignment.accept(Assignment.java:111)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.MixedContent.accept(MixedContent.java:92)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.IfBlock.accept(IfBlock.java:82)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.MixedContent.accept(MixedContent.java:92)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.Environment.visit(Environment.java:298)
>        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.MixedContent.accept(MixedContent.java:92)
>        at freemarker.core.Environment.visit(Environment.java:209)
>        at freemarker.core.Environment.process(Environment.java:189)
>        at freemarker.template.Template.process(Template.java:237)
>        at
> org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEn
> gine.java:182)
>        at
> org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559)
>        at org.apache.struts2.components.UIBean.end(UIBean.java:513)
>        at
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>        at
> org.apache.jsp.pages.sap_jsp._jspx_meth_s_select_2(sap_jsp.java:346)
>
> I don't know what freemarker wants to say.
> Does anyone have a suggestion?
>
> Best Regards
>
> Johannes Geppert
>
>
> -----
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
> --
> View this message in context: http://old.nabble.com/freemarker-error-in-select-tag-tp27057643p27057643.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message