Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Clear table cache in page navigation

2724905Mar 19 2015 — edited Mar 19 2015

Hello , I'm learning ADF , and I came across a doubt ...

I'm using jdev v12.3 , and I need to clear the cache of a < af : table> in the navigation between pages , I try to create an analytical listener, code execution in RENDER_RESPONSE stage, but do not clear the cache ,

someone had this problem ?

    @Override

    public void beforePhase(PhaseEvent event) {

        FacesContext facesContext = event.getFacesContext();

        HttpServletResponse response = (HttpServletResponse)facesContext.getExternalContext().getResponse();

        response.addHeader("Pragma", "no-cache");

        response.addHeader("Cache-Control", "no-cache");

        response.addHeader("Cache-Control", "no-store");

        response.addHeader("Cache-Control", "must-revalidate");

        response.addHeader("Expires", "Mon, 8 Aug 2006 10:00:00 GMT");

    }

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2015
Added on Mar 19 2015
7 comments
356 views