Hello, I'm using a form zone to handle saves to the user session, "SSO". I
have a Create and Update page that both share a single component containing
the form data. Prior to converting my form to use a zone update, I use to
save the form to the session then reload the update page with previous
session data, however when using the zone update, it no longer redirects to
the update page. 

Issues, when saving form with zone update 

First I found it reruns all methods and creates a new object which causes a
loss of all previous SSO data. 

I then surrounded create new object line with a boolean that was set to
false from onSuccess which resolved issue with save, however if you
accidentally refreshed browser, all data was lost. 

Lastly I attempted to persist the boolean and the result of that was the
loss ability to actually generate a new object when coming to the create
page from existing list page. 

Any body have any Ideas?

sample code

        if(newObject && newObjectUpdate) {
            objectState.setObject(new Object());
        }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Saving-using-form-zone-tp4639355p4639355.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to