You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lance V <la...@yahoo.com> on 2004/03/28 17:33:36 UTC
Global property not found error
Hello,
I'm trying to use tapestry with spring, when I try to
use a bean in a .jwc:
<property-specification name="userService"
type="services.ManagerUserImpl">
global.appContext.getBean("userService")
</property-specification>
I get the error:
ognl.NoSuchPropertyException
global
I have added appContext to the engine and specified it
in my .application file. Am I doing anything wrong?
Thanks,
Lance
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Global property not found error
Posted by "Dmitry I. Zubarovsky" <au...@rambler.ru>.
Hello Lance!
you should use that in your component spec:
page.global.appContext.getBean("userService")
instead of
global.appContext.getBean("userService")
Dima
Sunday, March 28, 2004, 6:33:36 PM, you wrote:
LV> Hello,
LV> I'm trying to use tapestry with spring, when I try to
LV> use a bean in a .jwc:
LV> <property-specification name="userService"
LV> type="services.ManagerUserImpl">
LV> global.appContext.getBean("userService")
LV> </property-specification>
LV> I get the error:
LV> ognl.NoSuchPropertyException
LV> global
LV> I have added appContext to the engine and specified it
LV> in my .application file. Am I doing anything wrong?
LV> Thanks,
LV> Lance
LV> __________________________________
LV> Do you Yahoo!?
LV> Yahoo! Finance Tax Center - File online. File on time.
LV> http://taxes.yahoo.com/filing.html
LV> ---------------------------------------------------------------------
LV> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
LV> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
Best regards,
Dmitry mailto:aurox@rambler.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Global property not found error
Posted by "Julio C. Rivera" <ju...@ya.com>.
IComponent doesn't have getGlobal() method.
Try this:
page.global.appContext.getBean("userService")
Regards.
Julio
At 07:33 28/03/2004 -0800, you wrote:
>Hello,
>
>I'm trying to use tapestry with spring, when I try to
>use a bean in a .jwc:
>
><property-specification name="userService"
>type="services.ManagerUserImpl">
>global.appContext.getBean("userService")
></property-specification>
>
>I get the error:
>
>ognl.NoSuchPropertyException
>global
>
>I have added appContext to the engine and specified it
>in my .application file. Am I doing anything wrong?
>
>Thanks,
>Lance
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>http://taxes.yahoo.com/filing.html
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org