Shouldn't this be enough to redirect my staleLinks back to my apps homepage.
<application name="MyApp">   
  <library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
  <page name="Exception" specification-path="MainPage.page"/>   
</application>

Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Java Components, QuickPay, Wedat
Sun Certified Java Developer
Sun Certified Java Programmer
12555 Cingular Way
Alpharetta, GA 30004
Office (678)893-2232
así es la vida.


-----Original Message-----
From: Dimm, Jason 
Sent: Thursday, February 23, 2006 1:33 PM
To: 'Tapestry users'
Subject: RE: StaleLink Exceptions

What's really going on is my HTML template has logic like this:

<span jwcid="@contrib:FormConditional" condition="ognl:reverseFlag">
 ... 
        <span jwcid="@Conditional" condition='ognl:1==qcTran.Status'>
        <P align="center">
                <input type="submit" jwcid="[EMAIL PROTECTED]"
disabled="ognl:reverseDisabledFlag"
               value="Reverse Credit/Check Card Payment"
               onclick="return window.confirm('Are you sure you want to
reverse?')"
               listener="ognl:listeners.reverseCC"/>
        </P>
        </span>
</span>


The entire idea is if "reverseFlag" and "1==qcTran.Status"
Display the button to reverse the CC Payment.
User clicks it, works fine, then decided to click back button which has
other buttons such as "go to main menu" which generates stalelink b/c of
difference in hidden fields:
FirstTime
<input type="hidden" name="Form0"
value="$FormConditional,reverse1,add,main,receipt,logout"/>

SecondTime
<input type="hidden" name="Form0"
value="$FormConditional,add,main,receipt,logout"/>


Two questions:
1) If I want to get rid of Stale Link, what should I do?
2) Since StaleLink is also kind of a blessing(keeps user from trying
something silly) is their a way I can set a default page to display instead
of the tapestry page?

thanks


Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Java Components, QuickPay, Wedat
Sun Certified Java Developer
Sun Certified Java Programmer
12555 Cingular Way
Alpharetta, GA 30004
Office (678)893-2232
así es la vida.


-----Original Message-----
From: Dimm, Jason 
Sent: Thursday, February 23, 2006 1:12 PM
To: 'Tapestry users'
Subject: RE: StaleLink Exceptions

Hello everyone,

With my application the "Stale Link" exception pages are a mixed curse b/c
they actually are keeping our users from doing things such as refunding a
trans and then clicking the back button to try to "reverse" again.

Is their a way to specify a default page with something like "Click here to
return to the Home page" instead of the Stale Link page?

thanks

Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Java Components, QuickPay, Wedat
Sun Certified Java Developer
Sun Certified Java Programmer
12555 Cingular Way
Alpharetta, GA 30004
Office (678)893-2232
así es la vida.


-----Original Message-----
From: Mind Bridge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 22, 2006 5:05 PM
To: Tapestry users
Subject: Re: StaleLink Exceptions

Hi,

Based on your previous message, I suspect that your project uses Tapestry 3.

You have two options:

Option 1: Within all Forms, replace Conditional with 
contrib:FormConditional, and Foreach with ListEdit. Those components are 
a part of standard distribution.

Option 2: Download the 'base' library from www.t-deli.com. Replace all 
Conditionals with base:If and all Foreach with base:For. The components 
automatically determine whether they are in a Form and create additional 
hidden fields to avoid StaleLinkExceptions. Similar components are now a 
part of Tapestry 4.

Dimm, Jason wrote:
> Anyone have advice on how to eliminate StaleLink Exceptions ?
>
>
> Jason E. Dimm, Senior Analyst, Cingular Wireless
> IT eCommerce/Payments (Payment Processing)
> Cingular Java Components, QuickPay, Wedat
> Sun Certified Java Developer
> Sun Certified Java Programmer
> 12555 Cingular Way
> Alpharetta, GA 30004
> Office (678)893-2232
> así es la vida.
>
>
> -----Original Message-----
> From: Dimm, Jason 
> Sent: Wednesday, February 22, 2006 9:27 AM
> To: 'Tapestry users'
> Subject: StaleLink Exceptions
>
> Buenos dias amigos,
>
> I've inherited a Tapestry application covered with StaleLInk Exceptions.
>
> What's the fastest and most practical way to eliminate these?
>
> Thanks
>
>
>
> Jason E. Dimm, Senior Analyst, Cingular Wireless
> IT eCommerce/Payments (Payment Processing)
> Cingular Java Components, QuickPay, Wedat
> Sun Certified Java Developer
> Sun Certified Java Programmer
> 12555 Cingular Way
> Alpharetta, GA 30004
> Office (678)893-2232
> así es la vida.
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to