You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yan Farmawan <ya...@nurulfikri.co.id> on 2004/11/30 05:22:01 UTC

Optimizing Form Rewinding

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 ...

Thank you

Yan Farmawan

PT Nurulfikri Cipta Solusi


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


Re: Optimizing Form Rewinding

Posted by Yan Farmawan <ya...@nurulfikri.co.id>.
yes, I have. The problem fixed by implementing it.

Thanks

Jamie Orchard-Hays wrote:
> Yan, have you gotten familiar with PageRenderListener interface and its 
> method, pageBeginRender()?
> 
> Jamie


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


Re: Optimizing Form Rewinding

Posted by Jamie Orchard-Hays <ja...@dang.com>.
Yan, have you gotten familiar with PageRenderListener interface and its 
method, pageBeginRender()?

Jamie
----- Original Message ----- 
From: "Yan Farmawan" <ya...@nurulfikri.co.id>
To: "Tapestry users" <ta...@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


Re: Optimizing Form Rewinding

Posted by Yan Farmawan <ya...@nurulfikri.co.id>.
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