Richard,
please use
public void pageBeginRender(PageEvent event) {
if (getMyValue() == null)
setMyValue(new VString("new VString"));
}
this will persist your property correctly. I never use initial-value
unless I'm initializing a String...
On 7/22/05, Nick Westgate <[EMAIL PROTECTED]> wrote:
> Richard V. <xgcom <at> hotmail.com> writes:
>
> >
> > Robert is correct for what I am trying to do and here is a simple example
> > that you can try and see if you get the same problem (my custom class
> > objects not being persistent) that I have. You can just copy and paste into
> > the respective files.
>
> I've never really investigated initial-value because it's not "the way" to
> initialise your persistent properties. From the wiki:
>
> http://wiki.apache.org/jakarta-tapestry/Gotchas
> see "initial-value attribute of property-specification"
>
> Common practice is to set up properties in pageBeginRender by implementing
> PageRenderListener on your java page class. Here's the wiki again:
> http://wiki.apache.org/jakarta-tapestry/MoreFrequentlyAskedQuestions
>
> The difference in behaviour of initial-value is interesting though.
> Perhaps someone with time on their hands can shed some light on it ...
>
> Cheers,
> Nick.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Communism is man's exploitation of man. Capitalism is just the opposite.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]