You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Adams <da...@ifactory.com> on 2005/10/28 15:57:12 UTC
@Persist and custom code
Okay I have a property that I want as @Persist but I also want to run
some code when that method is called. Any way of doing this?
--
Dan Adams
Software Engineer
Interactive Factory
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: @Persist and custom code
Posted by Dan Adams <da...@ifactory.com>.
yeah, this is what i've been doing but it's not very good design. in
this case the right thing is not the easiest thing. :/
On Fri, 2005-10-28 at 13:42 -0400, Howard Lewis Ship wrote:
> What kind of code do you want to run?
>
> You could create a synthetic property that delegates to the
> Tapestry-generated property.
>
> Be aware that Tapestry will invoke the setter method when restoring
> page state (when a page is first loaded during a request).
>
> On 10/28/05, Dan Adams <da...@ifactory.com> wrote:
> > Okay I have a property that I want as @Persist but I also want to run
> > some code when that method is called. Any way of doing this?
> >
> > --
> > Dan Adams
> > Software Engineer
> > Interactive Factory
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
--
Dan Adams
Software Engineer
Interactive Factory
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: @Persist and custom code
Posted by Howard Lewis Ship <hl...@gmail.com>.
What kind of code do you want to run?
You could create a synthetic property that delegates to the
Tapestry-generated property.
Be aware that Tapestry will invoke the setter method when restoring
page state (when a page is first loaded during a request).
On 10/28/05, Dan Adams <da...@ifactory.com> wrote:
> Okay I have a property that I want as @Persist but I also want to run
> some code when that method is called. Any way of doing this?
>
> --
> Dan Adams
> Software Engineer
> Interactive Factory
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org