-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I ve a page where user drags and drops images and save them. It is saved in java objects. When the next button is hit the user is navigated to next page and form submission happens. My doubt here is when we hit back button can we maintain the form details that were submitted previously.
Can anyone help me out!
Thanks.
Hi,
Do you mean keep the saved status after hit back button?
And is the back button is 'browsers' back button here?
Regards,
Ben
You can do that by saving your bean in session and look it up every time you come to this page, but this might cause several issues:
1. you'll need to find a way to clean it up from session and limit it's size. otherwise if the image is huge, say 4MB per session, your server side memory consumption will terribly high.
2. if there's any opportunity that user may want to open two browsers for this page, how to separate them? this also happened in page based web development, you'll need to introduce conversation scope into ZK through constant request parameter or hidden form strategy.
Asked: 2012-05-30 06:23:34 +0800
Seen: 153 times
Last updated: Jun 04 '12