Thanks Robert!!
I tried 2) before, but I left the interface in the same package
([...].pages) now I move it to another package like you said and it
works perfectly :)
And thanks for the explanation of the classloaders, it is all clear now.
Regards.
Robert Zeigler wrote:
>
> This is by-pr
Raulmt,
I'm using exactly the same code as you with the solution #2 from
Robert and it's working very well for me. Maybe you should try it
first.
2008/6/3 Robert Zeigler <[EMAIL PROTECTED]>:
> This is by-product of the live class reloading, and not related to the
> instrumentation, per se.
> Two c
This is by-product of the live class reloading, and not related to the
instrumentation, per se.
Two classes in different classloaders are not equal. In this case,
you're casting the component object, whose class is in the
"discardable" classloader (which handles page and component classes)
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
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
Regards.
Robert Zeigler wrote:
>
> Is this in a component or page class? If so, the answer is:
>
> @InjectPage
> private M
Is this in a component or page class? If so, the answer is:
@InjectPage
private MyPage page;
...
page.setSomething("");
Robert
On Jun 2, 2008, at 6/25:04 PM , raulmt wrote:
Hi,
I'm trying to obtain a page from it's name to set a property on it.
I'm
trying something like this:
Component
Hi,
I'm trying to obtain a page from it's name to set a property on it. I'm
trying something like this:
Component page = componentSource.getPage("MyPage");
MyPage myPage = (MyPage)page;
myPage.setSomething("");
This code fails in the cast, despite a
System.out.println(page.getClass().getName(
Thanks for all the replies!
I have tried it and it works.
Shing
--- "Filip S. Adamsen" <[EMAIL PROTECTED]> wrote:
> 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://tap
try users
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/ta
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/tapestry/services/ComponentSource.html
-Filip
On 2008-05-05 16:01, Kristian Marinkovic
@Inject
private RequestPageCache pageCache;
pageCache.get(logicalName)
g,
kris
Shing Hing Man <[EMAIL PROTECTED]>
05.05.2008 15:53
Bitte antworten an
"Tapestry users"
An
tapestry Tapestry <[EMAIL PROTECTED]>
Kopie
Thema
Tap 5.0.11 : How to get page instance from page
Usually,
11 matches
Mail list logo