Re: t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread Nick Westgate

There are at least 2 ways to do this.

If you follow Serge's suggestion of a context, you need to use
the context to set "name" in page B using the onActivate event:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

The alternative is to use an ActionLink instead of PageLink in page A:

@Inject
B pageB;

Object onActionFromPageBActionLink()
{
pageB.name = "Fred";
return pageB; // forward to B
}

Cheers,
Nick.


Mohammad Shamsi wrote:

please look this code :

// first page.
class A {
}


// second page
class B {
 private String name;
}


in A page template i have this linke :

B

i want to set name parameters of page B in this link. is it possible ?


On 10/14/07, SergeEby <[EMAIL PROTECTED]> wrote:


Hi,

You can use the context parameter:


http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentspagelink

--
/Serge


dalahoo wrote:

dear friends,

i want to set some value for may page properties, with pagelink

compoent,

is
it posible ?

--
sincerely yours
M. H. Shamsi



--
View this message in context:
http://www.nabble.com/t5-%3A-how-to-set-page-paramaters-in-pagelink---tf4621503.html#a13198658
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread Mohammad Shamsi
please look this code :

// first page.
class A {
}


// second page
class B {
 private String name;
}


in A page template i have this linke :

B

i want to set name parameters of page B in this link. is it possible ?


On 10/14/07, SergeEby <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> You can use the context parameter:
>
>
> http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentspagelink
>
> --
> /Serge
>
>
> dalahoo wrote:
> >
> > dear friends,
> >
> > i want to set some value for may page properties, with pagelink
> compoent,
> > is
> > it posible ?
> >
> > --
> > sincerely yours
> > M. H. Shamsi
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/t5-%3A-how-to-set-page-paramaters-in-pagelink---tf4621503.html#a13198658
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
sincerely yours
M. H. Shamsi


Re: t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread SergeEby

Hi,

You can use the context parameter:

http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentspagelink

--
/Serge


dalahoo wrote:
> 
> dear friends,
> 
> i want to set some value for may page properties, with pagelink compoent,
> is
> it posible ?
> 
> -- 
> sincerely yours
> M. H. Shamsi
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-%3A-how-to-set-page-paramaters-in-pagelink---tf4621503.html#a13198658
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread Mohammad Shamsi
dear friends,

i want to set some value for may page properties, with pagelink compoent, is
it posible ?

-- 
sincerely yours
M. H. Shamsi