You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Josh Canfield <jo...@thedailytube.com> on 2007/10/19 19:32:14 UTC

T5: A Form without a Session

I'd like to add a form component to my page, I haven't found a way to do it
without causing a session to be created when the page is first accessed. I'm
fine if a session is created when the user actually submits the form, to
handle validation etc. but some forms are rarely used and session overhead
is just unwelcome.

It looks like in the form component the default validator is @Persist'd
which is causing the session to be created. I don't want to use client
persistence if it's going to stuff the ugly base 64 encoded object in the
url, although I haven't seen a way to change the persistence without
changing the default persistence for everything...

So, I've gone with a standard html form for the simple search box for now
which is fine, but I'd like to use the <t:form> on other pages without
forcing a session to be created when the form may not be submitted.

Any thoughts?

Thanks,
Josh

-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.