[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: Optimizing Form Rewinding
From:       "Jamie Orchard-Hays" <jamie () dang ! com>
Date:       2004-11-30 15:19:33
Message-ID: 005901c4d6ef$ff5bca70$1a878f80 () darden ! virginia ! edu
[Download RAW message or body]

Yan, have you gotten familiar with PageRenderListener interface and its 
method, pageBeginRender()?

Jamie
----- Original Message ----- 
From: "Yan Farmawan" <yan@nurulfikri.co.id>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Tuesday, November 30, 2004 5:38 AM
Subject: Re: Optimizing Form Rewinding


> Oops, the problem is solved, it's not the form rewinds which caused the 
> problem , but the page rendering .. because after handle form, the 
> response is back to the page itself.
>
> stacktrace:
> ...
> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:159)
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java(Compiled 
> Code))
> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:159)
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java(Compiled 
> Code))
> org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:341)
> org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:411)
> org.apache.tapestry.engine.AbstractEngine.renderResponse(AbstractEngine.java:774)
> ...
>
> Yan Farmawan wrote:
>> Hi,
>> It happen that my html page is divided in these section :
>>
>>
>> <body>
>>
>> obj1 rendered ...
>>
>> obj2 rendered ...
>>
>> <form>
>> obj3 rendered ...
>>
>> <jwcid="@Submit" value="Commit!">
>>
>> </form>
>>
>> </body>
>>
>>
>> When I submit commit button, I got exception involving
>> ognl can't get some property from null object.
>>
>> It seems like Tapestry rewinding _the_whole_page_ when its actually only 
>> need only to rewind obj3, which is the only object _inside_ <form>.
>>
>> Off course I could put some code to rewind obj1 and obj2 to fix the 
>> problem ... but the point is:
>> I _dont_need_ obj1 and obj2 on my form handler code (action listener),
>> so the the _whole_page_ rewinding is a waste of cpu cycle.
>>
>> am I missed something ? Please tell me how to optimize this form 
>> rewinding ...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic