http://ofbiz.116.s1.nabble.com/Users-bsh-List-Interface-from-Arralist-tp137676p137694.html
error though.
You weren't using 'prodL' but rather 'result.get("productIds")'.
> Well
> It's ArrayList so I do this as it is often done in Java
>
> List prodL = new ArrayList(result.get("productIds"));
> nList = CategoryWorker.filterProductsInCategory(delegator,prodL ,
> "COMBI");
>
> But bsh obviously doesn't really like this or maybe I need another
> glasses.cleaning("indepth")
> ;-)
>
> Tibor
>
> On 3/1/06, Andrew Sykes <
[hidden email]> wrote:
> Tibor,
>
> Good to know I'm not the only one who does things like
> that ;-)
>
> I'm not sure what result.get("productIds") is doing, but I'd
> guess it
> isn't returning the 'java.util.List' object that you think it
> is.
>
> On Wed, 2006-03-01 at 17:05 +0100, tibor katelbach wrote:
> > Hahahaha that's awfull
> > I was sure I'd see such an embarasing answer
> > Thanks Andrew
> >
> > but unfortunetly I still get this
> > Error: The application script threw an exception: Sourced
> file: C:
> > \X_Dev\prodemo\components\ecommerce\webapp\ecommerce\WEB-INF
> \actions
> > \catalog\keywordsearch.bsh : Method Invocation
> > CategoryWorker.filterProductsInCategory : at Line: 46 : in
> file: C:
> > \X_Dev\prodemo\components\ecommerce\webapp\ecommerce\WEB-INF
> \actions
> > \catalog\keywordsearch.bsh :
> CategoryWorker .filterProductsInCategory
> > ( delegator , result .get ( "productIds" ) , "COMBI" )
> Target
> > exception: java.lang.ClassCastException BSF info:
> >
> > any ideas ?
> >
> > Tibor
> >
> >
> > On 3/1/06, Andrew Sykes <
[hidden email]> wrote:
> > Tibor,
> >
> > You're using "CatalogWorker.filterProductsInCategory
> " it
> > should be...
> >
> > CategoryWorker.filterProductsInCategory
> > --
> > Kind Regards
> > Andrew Sykes <
[hidden email]>
> > Sykes Development Ltd
> >
http://www.sykesdevelopment.com> >
> >
> > _______________________________________________
> > Users mailing list
> >
[hidden email]
> >
http://lists.ofbiz.org/mailman/listinfo/users> >
> > _______________________________________________
> > Users mailing list
> >
[hidden email]
> >
http://lists.ofbiz.org/mailman/listinfo/users> --
> Kind Regards
> Andrew Sykes <
[hidden email]>
> Sykes Development Ltd
>
http://www.sykesdevelopment.com>
>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users