You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mohammad Shamsi <m....@gmail.com> on 2008/02/16 14:28:25 UTC

how to access components pages ???

Hi,

i wanna access to a components page, from component code.
i wanna to know the page name, access page class and its properties form a
component this used in class.



-- 
sincerely yours
M. H. Shamsi

Re: how to access components pages ???

Posted by Mohammad Shamsi <m....@gmail.com>.
Thanks Stephane,



On Feb 16, 2008 6:02 AM, Steph <sd...@cariboo-networks.com> wrote:

> You just have to inject :
>
>    @Inject
>    private ComponentResources componentResources;
>
> Then, you access page properties like this :
>
>    componentResources.getPage().get....
>
> Stephane
>
> Mohammad Shamsi a écrit :
> > Hi,
> >
> > i wanna access to a components page, from component code.
> > i wanna to know the page name, access page class and its properties form
> a
> > component this used in class.
> >
> >
> >
> >
>



-- 
sincerely yours
M. H. Shamsi

Re: how to access components pages ???

Posted by Steph <sd...@cariboo-networks.com>.
You just have to inject :

    @Inject
    private ComponentResources componentResources;

Then, you access page properties like this :

    componentResources.getPage().get....

Stephane

Mohammad Shamsi a écrit :
> Hi,
>
> i wanna access to a components page, from component code.
> i wanna to know the page name, access page class and its properties form a
> component this used in class.
>
>
>
>