Problem: PageBeginRender running twice in portlet

2007-08-29 Thread Yavorskiy Dmitriy
Hi, i have one problem.

I use Tapestry 4.0.2 and have written a portlet with some heavy
operations(loading data from database and reading preferences from portal
server)

All this operations are working from this method

public void pageBeginRender(PageEvent event) {
 ...
 my own heavy operations
 ...
{

In servlet case this code running once, but in portlet case twice, so i have
almost double response time for portlet.

Maybe one is action phase,another is render phase...

Is there two request absolutely equal or i can indicate each one by Tapestry
standard way?

Thanks.


T4: Problem PageBeginRender running twice in portlet

2007-08-29 Thread Yavorskiy Dmitriy
Hi, i have one problem.

I use Tapestry 4.0.2 and have written a portlet with some heavy
operations(loading data from database and reading preferences from portal
server)

All this operations are working from this method

public void pageBeginRender(PageEvent event) {
 ...
 my own heavy operations
 ...
{

In servlet case this code running once, but in portlet case twice, so i have
almost double response time for portlet.

Maybe one is action phase,another is render phase...

Is there two request absolutely equal or i can indicate each one by Tapestry
standard way?

Thanks.