struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Error with chekboxlist
Date Sat, 17 Oct 2015 14:23:15 GMT
Do you use that JSP outside of an action? Struts version? I've been
testing with the latest SNAPSHOT and no such problem


2015-10-16 11:28 GMT+02:00 Yaragalla Muralidhar <yaragallamurali@gmail.com>:
> Hi ,
> the following is the code in jsp.
>
> <div><s:checkboxlist name="asd" list="samples" cssStyle="line-height:
> 35px;" /></div>
>
> samples is an arraylist of strings.
>
> when i put the above tag i am getting the following error. Please help me
> to rectify this.
>
>
> Error on line 30, column 13 in template/simple/checkboxlist.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> The problematic instruction:
> ----------
> ==> assignment: itemKey=stack.findValue('top') [on line 30, column 13 in
> template/simple/checkboxlist.ftl]
>  in user-directive s.iterator [on line 25, column 1 in
> template/simple/checkboxlist.ftl]
>  in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line
> 24, column 1 in template/xhtml/checkboxlist.ftl]
> ----------
>
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 30, column 13 in
> template/simple/checkboxlist.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:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
>
>
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

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


Mime
View raw message