« Return to Thread: access component variable

Re: access component variable

by Captain Cid :: Rate this Message:

Reply to Author | View in Thread

i have one component..which tries to get a ID (primary key) and some other info from database and renders it...
another component needs this ID to query DB and render some other information...other way is that it has to make unnecessary same query to first get ID and then use it ! So what do you suggest ?



nille hammer wrote:
Hi Cid,

You could use Tapestry's Envronment feature. Look here for documentation: http://tapestry.apache.org/tapestry5.1/guide/env.html

Although I think you should design your components a bit differently, so that you don't need to do this. Maybe you could give us some more details on your special use case and we can find another solution.

Regards, nillehammer

==
http://www.winfonet.eu 

-----------------------------------------------
Betreff: access component variable
Gesendet: So, 28. Jun 2009
Von: Captain Cid<captain_cid@indiatimes.com>

>
> hi,
>
> i have page with 2 components A and B...i want to access 1st components
> variable say "foo" (A.foo) after it is invoked in component B..how can i do
> so ?
> --
> View this message in context:
> http://www.nabble.com/access-component-variable-tp24240467p24240467.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

--- original Nachricht Ende ----


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

 « Return to Thread: access component variable