You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alan Chandler <al...@chandlerfamily.org.uk> on 2005/08/05 10:20:49 UTC

IEngine getPropertySource is depreciated - what replaces it?

In my component I am try to get the property value "menu-items" from the 
application properties file.

My code has

getPage().getEngine().getPropertySource().getPropertyValue("menu-items");

but eclipse is telling me that getPropertySource() is depreciated

a) What should I do instead?
b) There is no indication in the documentation (UserGuide - Tapestry Object 
Properties) that this is the case.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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


Re: IEngine getPropertySource is depreciated - what replaces it?

Posted by Shing Hing Man <ma...@yahoo.com>.
According to the Tapestry 4 javadoc, the  method 
IEngine.getPropertySource()  has been deprecated.
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/IEngine.html

It is  now being injected. 
Please also see the following doc on how to inject
something into a page.
http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html

Note that I have not tried it myself.

Shing


--- Alan Chandler <al...@chandlerfamily.org.uk> wrote:

> In my component I am try to get the property value
> "menu-items" from the 
> application properties file.
> 
> My code has
> 
>
getPage().getEngine().getPropertySource().getPropertyValue("menu-items");
> 
> but eclipse is telling me that getPropertySource()
> is depreciated
> 
> a) What should I do instead?
> b) There is no indication in the documentation
> (UserGuide - Tapestry Object 
> Properties) that this is the case.
> 
> 
> -- 
> Alan Chandler
> http://www.chandlerfamily.org.uk
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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