You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Filip Balas <fb...@IMVProjects.com> on 2004/12/23 01:14:17 UTC
Programmatic Persistent Properties?
I am trying to figure out how to create
persitent properties programatically.
Has anyone tried this already?
I want to use java code to do the equivalent of:
<property-specification name="foo" type="java.util.List" persistent="yes" />
What do I have to do to indicate persistence in
the java code?
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Programmatic Persistent Properties?
Posted by Nugroho DS <nd...@nwa.iao.co.id>.
You can call fireObservedChange() on your property setter
public void setFoo(List list){
this.foo=list;
Tapestry.fireObservedChange(this, "foo", list);
}
Nugroho
Filip Balas wrote:
>I am trying to figure out how to create
>persitent properties programatically.
>Has anyone tried this already?
>
>I want to use java code to do the equivalent of:
><property-specification name="foo" type="java.util.List" persistent="yes" />
>
>What do I have to do to indicate persistence in
>the java code?
>
>Filip
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org