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.html#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.

Reply via email to