Shing Hing Man [EMAIL PROTECTED]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually, I could use the following to inject a page
into another page
users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually, I could use the following to inject a page
into another page
@InjectPage
private DetailsPage details;
How to retrieve an instance of a page
;
pageCache.get(logicalName)
g,
kris
Shing Hing Man [EMAIL PROTECTED]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually, I could use
]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually, I could use the following to inject a page
into another page
@InjectPage
-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Tap-5.0.11-%3A-How-to-get-page-instance--from-page-tp17062196p17611843.html
Sent from the Tapestry - User mailing list archive at Nabble.com
private RequestPageCache pageCache;
pageCache.get(logicalName)
g,
kris
Shing Hing Man [EMAIL PROTECTED]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
On 6/2/08, raulmt [EMAIL PROTECTED] wrote:
No, I need to do this in a service... but even in a page, i have the page
class in a String at runtime, so I can't declare a property and use the
InjectPage like that
Why don't you try to pass a page instance as a parameter to your
method
Usually, I could use the following to inject a page
into another page
@InjectPage
private DetailsPage details;
How to retrieve an instance of a page if I am given
the logical name of a page as a String variable ?
In Tap 4, I would use RequestCycle.getPage(pageName).
Thanks in advance
@Inject
private RequestPageCache pageCache;
pageCache.get(logicalName)
g,
kris
Shing Hing Man [EMAIL PROTECTED]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from
@tapestry.apache.org
Kopie
Thema
Re: Tap 5.0.11 : How to get page instance from page
Hi,
RequestPageCache is an internal service, it's better to use
ComponentSource instead. It has methods to get a component or page by
logical name.
http://tapestry.apache.org/tapestry5/apidocs/org/apache
]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry
[EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually, I could use the following to inject a
page
into another page
wrote:
@Inject
private RequestPageCache pageCache;
pageCache.get(logicalName)
g,
kris
Shing Hing Man [EMAIL PROTECTED]
05.05.2008 15:53
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
tapestry Tapestry [EMAIL PROTECTED]
Kopie
Thema
Tap 5.0.11 : How to get page
12 matches
Mail list logo