You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by wjones14 <bi...@snet.net> on 2007/07/24 21:51:03 UTC

Sandbox Tracker Redirect usage

I'm trying to use Tracker Redirect from the sandbox in our application to
stop a double posting situation caused by users pressing the browser Refresh
button - what happens is we have a button to create a new component.  When
the user presses this button they are directed to the Create page.  When
they save, we send them back to the original page, where they see the new
item they created.  However, once they are back on the original page, if
they press the browser Refresh button, another new item gets created.  So,
it seems that Tracker Redirect can fix this problem.

But I can't get it to work.  I have downloaded
tomahawk-sandbox-1.1.6-SNAPSHOT.jar, and add it in the build.xml for our
application so it gets copied to the webapp along with tomahawk-1.1.5.jar
(and the myfaces jars).  Then, in web.xml, I added this stanza:

    <context-param>
        <param-name>org.apache.myfaces.redirectTracker.POLICY</param-name>
        <param-value>
           
org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy
        </param-value>
    </context-param>

On clean and rebuild, it seems to have no effect.  Am I missing something
else in the configuration?


Thanks.
-- 
View this message in context: http://www.nabble.com/Sandbox-Tracker-Redirect-usage-tf4138255.html#a11770576
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Sandbox Tracker Redirect usage

Posted by Stan Carney <st...@moohoffa.com>.
Make sure the navigation rule that is returned from your 'create' page 
is marked as <redirect />. If it isn't as easy as that I would get the 
source and make sure the RedirectTrackerPhaseListener is being called.

Stan

wjones14 wrote:
> I'm trying to use Tracker Redirect from the sandbox in our application to
> stop a double posting situation caused by users pressing the browser Refresh
> button - what happens is we have a button to create a new component.  When
> the user presses this button they are directed to the Create page.  When
> they save, we send them back to the original page, where they see the new
> item they created.  However, once they are back on the original page, if
> they press the browser Refresh button, another new item gets created.  So,
> it seems that Tracker Redirect can fix this problem.
>
> But I can't get it to work.  I have downloaded
> tomahawk-sandbox-1.1.6-SNAPSHOT.jar, and add it in the build.xml for our
> application so it gets copied to the webapp along with tomahawk-1.1.5.jar
> (and the myfaces jars).  Then, in web.xml, I added this stanza:
>
>     <	context-param>
>         <param-name>org.apache.myfaces.redirectTracker.POLICY</param-name>
>         <param-value>
>            
> org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy
>         </param-value>
>     </context-param>
>
> On clean and rebuild, it seems to have no effect.  Am I missing something
> else in the configuration?
>
>
> Thanks.
>