You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2011/05/11 22:39:19 UTC
is there a beforeRender for partial renders?
Hi all,
I have an ajax event handler which performs some db updates and then
commits via tapestry-hibernate:
@CommitAfter
private MultiZoneUpdate onSomeEvent()
{
...
return mzu;
}
After the commit, I need to refresh my persistent object prior to the
partial render or the MZU.
Is there a beforeRender type handler I can implement which would be
called after this event handler and before the partial render?
I am aware that I can not use the @CommitAfter annotation, and commit
within my code but would prefer not to..
thanks, p.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: is there a beforeRender for partial renders?
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, 11 May 2011 17:39:19 -0300, Paul Stanton <pa...@mapshed.com.au>
wrote:
> Hi all,
Hi!
> Is there a beforeRender type handler I can implement which would be
> called after this event handler and before the partial render?
> I am aware that I can not use the @CommitAfter annotation, and commit
> within my code but would prefer not to..
I guess this is the ideal solution (just an @Inject and a single method
call). Another one is to use the Trigger component.
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/Trigger.html
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org