Hmmm. I checked the 4.08 code the Persist annotation explicitly checks for the InitialValue annot. and seems to apply it.
Writing the session persistence by hand turned out to be easy. Then I remembered: in Portlet world the default session scope is the portlet instance, so the ASO won't be shared across "pages" anyway. :-) Thanks, Ezra Epstein -----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 6:12 PM To: Tapestry users Subject: Re: Portlet Tapestry: using @Persist with a ValidationDelegate vs. using an ApplicationStateObject I don't think @Persist and @InitialValue can currently be used together. It's on my "list" of things to look at but I haven't found time to dig deeper into it yet. If you aren't against "alpha" software I can probably get a fix out soon-ish, if there is a fix to be had. (maybe tomorrow I'll take a look) You'd have to move to tapestry 4.1 though. On 7/25/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > Doing some validation on a portlet. Got it working using the > recommended approach described on > > > http://tapestry.apache.org/tapestry4/tapestry-portlet/coding-issues.ht > ml#Loss+of+Transient+State > > I'd like to try doing it where the ValidationDelegate is stored in the > session for a specific page (portlet). I.e., not shared with other > pages in the app. So I tried: > > <java-snippet> > public IValidationDelegate getInitialValidationDelegate() { > return new PortletValidationDelegate(); > } > > @Persist > @InitialValue("initialValidationDelegate") > public abstract IValidationDelegate getValidationDelegate(); > </java-snippet> > > But it doesn't seem to work. > > Thanks, > > Ezra Epstein > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]