Re: [Stripes-users] 1.5.4 upgrade and layout-component problem

2010-11-16 Thread Ben Gunter
I'm pretty sure this is happening because in previous releases when you
evaluate ${someLayoutComponent} you get a real String object, while in the
current release you get a LayoutComponentRenderer. EL knows how to coerce a
String to a Long, but it does not know how to do that with a
LayoutComponentRenderer. I did not anticipate people using layout components
in the way you seem to be using this one. If you don't mind, I'd like to see
a few JSP snippets to give me a better idea of exactly what you're doing. It
will help me figure out how to approach a solution, if a solution is
possible.

-Ben

On Sun, Nov 14, 2010 at 3:59 AM, Andrew Court andy.co...@gmail.com wrote:


 Hi all,

 I just upgraded to 1.5.4 and am getting the following error:

 javax.el.ELException: Cannot convert 1 of type class
 net.sourceforge.stripes.tag.layout.LayoutComponentRenderer to class
 java.lang.Long

 I am setting an integer named menuIndex in a layout-component tag in each
 jsp page (as below) to set a corresponding menu index property in the
 shared
 layout template

 stripes:layout-component name=menuIndex1/stripes:layout-component

 This worked fine in 1.5.3. It seems like I can set menuIndex as an
 attribute
 of the containing layout-render tag to make it work in 1.5.4, but would
 rather not change my existing jsps if need be. Can anyone shed any light on
 this please?

 Thanks,
 Andrew
 --
 View this message in context:
 http://old.nabble.com/1.5.4-upgrade-and-layout-component-problem-tp30211356p30211356.html
 Sent from the stripes-users mailing list archive at Nabble.com.



 --
 Centralized Desktop Delivery: Dell and VMware Reference Architecture
 Simplifying enterprise desktop deployment and management using
 Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
 client virtualization framework. Read more!
 http://p.sf.net/sfu/dell-eql-dev2dev
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] 1.5.4 upgrade and layout-component problem

2010-11-14 Thread Andrew Court

Hi all, 

I just upgraded to 1.5.4 and am getting the following error: 

javax.el.ELException: Cannot convert 1 of type class
net.sourceforge.stripes.tag.layout.LayoutComponentRenderer to class
java.lang.Long 

I am setting an integer named menuIndex in a layout-component tag in each
jsp page (as below) to set a corresponding menu index property in the shared
layout template 

stripes:layout-component name=menuIndex1/stripes:layout-component 

This worked fine in 1.5.3. It seems like I can set menuIndex as an attribute
of the containing layout-render tag to make it work in 1.5.4, but would
rather not change my existing jsps if need be. Can anyone shed any light on
this please? 

Thanks, 
Andrew
-- 
View this message in context: 
http://old.nabble.com/1.5.4-upgrade-and-layout-component-problem-tp30211356p30211356.html
Sent from the stripes-users mailing list archive at Nabble.com.


--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users