Hi Alan,

sorry, should have said i that  im on 1.5.

I appear to have resolved it now - in ie7 anyway (my ie6 tester has gone to lunch).
I added the annotation to all the methods that were returning the view method, as opposed to just annotating on the view method.

I assumed that having the annotation on that one  method  would work for all those returning it but obviously not.


thanks all the same.


  @HttpCache(allow = false)
    public Resolution findItem() {
        searchResult = ItemFinder.search(item.getTextSearch(), searchResult.getStart());
        return new ForwardResolution("/WEB-INF/jsp/_findItem.jsp");
    }

    @HttpCache(allow = false)
    public Resolution search() {
        if (logger.isDebugEnabled()) {
            logger.debug("search text: " + searchText);
        }
        item.setTextSearch(searchText, false);
        return findItem();
    }

    @HttpCache(allow = false)
    public Resolution next() {
        searchResult.setStart(searchResult.getStart() + Settings.SEARCH_RESULTS_LENGTH);
        return findItem();
    }

    @HttpCache(allow = false)
    public Resolution previous() {
        searchResult.setStart(searchResult.getStart() - Settings.SEARCH_RESULTS_LENGTH);
        return findItem();
    }

--- On Wed, 14/5/08, Alan Burlison <[EMAIL PROTECTED]> wrote:
From: Alan Burlison <[EMAIL PROTECTED]>
Subject: Re: [Stripes-users] stripes and ajax (jQuery), IE and HttpCache
To: [EMAIL PROTECTED], "Stripes Users List" <[email protected]>
Date: Wednesday, 14 May, 2008, 1:08 PM

lizzard wrote:

> The functionality of the page is a mini search results with next/previous,
and a
> search box. Doing next/previous works fine until you change the search
term and
> then do previous, you get the old (i.e. cached) page.
>
> The server side state is correct, and it works fine in the other browsers
so it
> has to be the IE cache right?.
>
> Anyone experienced this before, any ideas?

Yes. There was a thread about it a while ago. If my memory is correct,
stripes 5 will have code to disable the IE cache.

In the meantime, I subclassed JavScriptResolution to add the appropriate
header to the HTTP response, see
http://auth.opensolaris.org/svn/showfile.svn?path=%2ftrunk%2fAuthWebapp%2fsrc%2fjava%2forg%2fopensolaris%2fauth%2fwebapp%2fstripes%2fAuthJavaScriptResolution.java&revision=HEAD&name=auth

--
Alan Burlison
--




      
Sent from Yahoo! Mail.
A Smarter Email.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to