I have no experience with Portlets (or Tapestry 4, really ;-)
but PageRenderListener methods being called twice is normal
operation for form submits.

- first for the form "rewind"
- again for the actual rendering of the page

The usual boilerplate code is something like:

    public void pageBeginRender(PageEvent event)
    {
        if (!event.getRequestCycle().isRewinding())
        {
            // initialize properties etc
        }
    }

Cheers,
Nick.   


Yavorskiy Dmitriy wrote:
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.


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

Reply via email to