hi josh,
 
you can pass your own ValidationTracker with a persistence strategy
of your choice to the form component using the tracker parameter. And
the default tracker with session persistence will not be created.
or you can create your own form component:
 
g,
kris
 
[EMAIL PROTECTED] schrieb: -----

An: "Tapestry users" <users@tapestry.apache.org>
Von: "Josh Canfield" <[EMAIL PROTECTED]>
Gesendet von: [EMAIL PROTECTED]
Datum: 19.10.2007 07:32PM
Thema: 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.

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to