You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/07/20 15:15:17 UTC

[T4] sharing date between @Border and pages

Hello,

My Pages extends MyBasePage which has the method getUser() which return 
an User object which has a login property.

What the best way (design/efficiency) to display in the @Border the 
property user.login ?
Should Pages set a @Border's property or @Border should ask to Pages for 
the user ?

Have you got some best practice about @Border ?

Thanks a lot
Cyrille.


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


Re: [T4] sharing date between @Border and pages

Posted by Jesse Kuhnert <jk...@gmail.com>.
Wouldn't it be easier to make that property available to anything in the
system with some kind of IoC injection of state? ie:

http://tapestry.apache.org/tapestry4.1/usersguide/state.html

On 7/20/07, #Cyrille37# <cy...@gmail.com> wrote:
>
> Hello,
>
> My Pages extends MyBasePage which has the method getUser() which return
> an User object which has a login property.
>
> What the best way (design/efficiency) to display in the @Border the
> property user.login ?
> Should Pages set a @Border's property or @Border should ask to Pages for
> the user ?
>
> Have you got some best practice about @Border ?
>
> Thanks a lot
> Cyrille.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com