When Tapestry creates a concrete implementation of an abstract setter
method it looks soemthing like this:

<property name="foo"/>

public abstact void setFoo(MyFooClass newFoo);

concrete:

public void setFoo(MyFooClass newFoo) {
  $_foo = newFoo;
  fireObservedChange("foo", newFoo);
}

so, every call to setFoo() fires a change event.

Geoff



On 3/6/06, Daniel M Garland <[EMAIL PROTECTED]> wrote:
> Hi
>
> If I have a property x, that is populated by my controller class by a
> database operation that builds some object, how does Tapestry observe
> changes to that property? e.g. If I delegate property creation to
> Tapestry by using a <property> in the template, and an abstract method
> signature, how does Tapestry know when the property changes?
>
> 1) Does it actually check, or does a call to getX() actually invoke the
> controller each time, goto the database each time, build the object each
> time?
> 2) Or does it figure out that it hasn't changed?
> 3) If not, do I have to write my own properties in Tapestry (and avoid
> the automatic generation), if so, how do I inform the observer that the
> property has changed?
>
> Thanks in advance
> --
> Dan Garland
> ------------------------
> [EMAIL PROTECTED]
> icq: 120963437
> aim: dmgarland1767
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
The Spindle guy.          http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Blog:                     http://jroller.com/page/glongman
Feature Updates:          http://spindle.sf.net/updates

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

Reply via email to