You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaragalla Muralidhar <ya...@gmail.com> on 2015/10/16 11:28:25 UTC

Error with chekboxlist

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/>*

Re: Error with chekboxlist

Posted by Lukasz Lenart <lu...@apache.org>.
2015-10-17 16:48 GMT+02:00 Yaragalla Muralidhar <ya...@gmail.com>:
> Hi Lukasz,
>        I am using struts 2.3.2.  I am not using outside action.

There is no such version. Maybe it's related to
https://issues.apache.org/jira/browse/WW-4168


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Error with chekboxlist

Posted by Yaragalla Muralidhar <ya...@gmail.com>.
Hi Lukasz,
       I am using struts 2.3.2.  I am not using outside action.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sat, Oct 17, 2015 at 8:12 PM, Lukasz Lenart <lu...@apache.org>
wrote:

> 2015-10-17 16:39 GMT+02:00 Jasper Rosenberg
> <ja...@yahoo.com.invalid>:
> > I’ve seen this behavior a couple of times over the years, and I’m sorry
> that I can’t recall the exact issue when I’ve tracked it down, but
> basically something is null, probably either the “samples” list, or an
> element in that list.
>
> Maybe it is related to that issue
> https://issues.apache.org/jira/browse/WW-3010
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Error with chekboxlist

Posted by Lukasz Lenart <lu...@apache.org>.
2015-10-17 16:39 GMT+02:00 Jasper Rosenberg
<ja...@yahoo.com.invalid>:
> I’ve seen this behavior a couple of times over the years, and I’m sorry that I can’t recall the exact issue when I’ve tracked it down, but basically something is null, probably either the “samples” list, or an element in that list.

Maybe it is related to that issue
https://issues.apache.org/jira/browse/WW-3010


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Error with chekboxlist

Posted by Jasper Rosenberg <ja...@yahoo.com.INVALID>.
I’ve seen this behavior a couple of times over the years, and I’m sorry that I can’t recall the exact issue when I’ve tracked it down, but basically something is null, probably either the “samples” list, or an element in that list.

-Jasper

> On Oct 17, 2015, at 10:23 AM, Lukasz Lenart <lu...@apache.org> wrote:
> 
> 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 <ya...@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
> 


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


Re: Error with chekboxlist

Posted by Lukasz Lenart <lu...@apache.org>.
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 <ya...@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


Re: Error with chekboxlist

Posted by Yaragalla Muralidhar <ya...@gmail.com>.
Hi,
  Any help on this will be appreciated. Thanks in advance.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Fri, Oct 16, 2015 at 2:58 PM, Yaragalla Muralidhar <
yaragallamurali@gmail.com> wrote:

> 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/>*
>