>>> when some operation was done in my page (actually ,updating data in
>>> database),data in page refreshed, but data in layout component don't
>>> refresh.

If you are getting old data in the layout but new data in the page
then there is something holding on to the data in the layout.

Are you updating the page using AJAX?
Are you @Persist'ing things in the Layout?

Josh

On Mon, Sep 20, 2010 at 8:18 PM, Fanzhen <fanzhen.m...@hotmail.com> wrote:
>
>  just as what you do in your page ,
>
> 1, inject tapestry or spring service which will be used pull data from your
> database or something else;
> 2, define @property or getXXX() method which will be displayed in your
> component tml .
> 3, and at last just use what you have defined in your component .
>
>
> On 2010-9-21 11:09, Josh Canfield wrote:
>>
>> How are you getting the data the data in your layout? Can you provide some
>> code as an example?
>>
>> -- Josh
>>
>> On Sep 20, 2010, at 7:23 PM, Fanzhen<fanzhen.m...@hotmail.com>  wrote:
>>
>>> Have a layout component which used by pages , and in layout component
>>> there are some data operation related to finding and showing some data from
>>> database.
>>> the problem is that ,
>>> when some operation was done in my page (actually ,updating data in
>>> database),data in page refreshed, but data in layout component don't
>>> refresh.
>>> I mean , is there some way to make layout component refresh  ?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to