On Tue, Jul 7, 2009 at 11:03 AM, Stephan
Windmüller<stephan.windmuel...@cs.tu-dortmund.de> wrote:
> What happens when a user disabled cookies?

Good point. :)

> ValueEncoder does not need streamed data if it can obtain the object
> from an identifier. But the data I am using is not stored anywhere so
> the only way I see is streaming the data and reconstructing the objects.
> Currently I am using Xstream for this.

In your case, isn't serializing and deserializing objects all the time
worse than keeping them in the session?
And don't forget that most browsers don't accept very long URLs. I
don't know their URL limit, though.

> Form submission is the way I want it to do. The passed values should be
> stored in a Hidden-component so that they are submitted with the form.

I've just tested and read the sources of the client persistence,
something I've never used before. :)
@Persist works in a single page. Thus, as long as you stay in the same
page, @Persist("client") works when you submit a form (Tapestry
automatically adds the hidden field) and even in links that point to
the same page (including event URLs). Summary: all you need is to do
is to add @Persist("client") to your field, but it doesn't work across
pages. As far as I can see, Tapestry doesn't support what you want of
of the box.

You can code your own solution. Tapestry has a hook that allows you to
change links generated by it, so you can add any information you want
to the URLs.
Implement the LinkCreationListener interface (say,
MyLinkCreationListener) then add this to your AppModule:

    public MyLinkCreationListener
buildMyLinkCreationListener(LinkCreationHub linkCreationHub,

@Autobuild MyLinkCreationListener listener)
    {
        linkCreationHub.addListener(listener);

        return service;
    }

This code was adapted from Tapestry sources and was not tested, but I
guess it should give you a hint on how to implement what you want. ;)

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to