-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all, I've had a look around the forums but couldn't find an answer. This is a simple question, so hopefully there's a simple fix.
In my webapp I have zul files included in jsp files,like this:
<jsp:include page="/include/zul/top-win.zul" />
The problem is if I click the "Back" browser button and then click on any ZK component (including native ones) the browser page refreshes. I assumed this is a browser cache issue, so I put this in the head of my jsp:
<meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate" />
<meta http-equiv="Expires" content="Fri, 01 Jan 2010 00:00:00 GMT" />
But it had no effect - the page still refreshes when a component is clicked. This doesn't happen if I click anything else in the jsp - only the ZK components.
What can I do about this?
Thanks!
I found the issue. I had this in my servlet:
// tell ZK to drop desktops once the user navigates to other URL
request.setAttribute(org.zkoss.zk.ui.sys.Attributes.NO_CACHE,
Boolean.TRUE);
After taking this out, it works as expected. I think I got this line of code from the performance tips.
Asked: 2013-05-30 02:28:09 +0800
Seen: 47 times
Last updated: Jun 03 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status