Mr Arvind Pandey wrote:
Hi all,

   Using tomahawk tiles with JSF application, always
shows the previous URL in the browser. As per the
requirement of my application, I need to refresh the
current page after a time-interval. But the browaser always shows the previous URL,
hence once the time-interval is hit, it refreshes the
previous page because URL in the browser is previous
one.
  To refresh the current page I m using :
    <meta http-equiv="refresh" content="60">. It means
the current page will be refreshed after 60 seconds.

The general solution for the problem "url points to previous page" is to use the "redirect" attribute in the navigation rule. When this is used, rather than page A simply doing an internal forward to page B, an HTTP redirect header is sent back to the browser by page A, causing the browser to fetch page B directly. The result is that the browser then (correctly) has page B as its current url. There are disadvantages to using the redirect attribute, though: you can't pass data from A's backing bean to B's backing bean via request-scope properties for example, and performance takes a hit due to the round-trip.

Hope this helps.

Regards,

Simon


Reply via email to