Hi Ron,
Seems works, thanks, although still need more to test it.
Thank you for your help again.
Best regards,
Vincent
On 12/11/05, Ron Piterman <[EMAIL PROTECTED]> wrote:
> What actually happends is that the page renders again, and it *must*
> render all form components rendered in the original page request (before
> the submit) in the same order.
> A Stale link accures when this condition does not comply - usually
> because a list doesn't contain all members that were originally there.
> if you render a list to a form, you must make sure that the same list
> will be rendered when the form is *submitted*, which happends *before*
> the "response-page" is rendered.
> There are several approaches to that - one of them is the For component
> in T-Deli.
> Hope that helps,
> Ron
>
>
> Vincent wrote:
> > Hi all,
> >
> > I use foreach component in the table and IActionLink to submit the
> > click item in the table row(there is more than one submit method in
> > one form), but I found always got stale link exception.
> >
> > I tried use set stateful to false to avoid that exception in the form
> > component, also tried set stateful to false in ActionLink , but seems
> > neither works.
> >
> > Then I thought may be it is possible to catch that exception my submit
> > method? Here is the following code, but it seems never went into the
> > catch before got following exception.
> >
> > <pre>
> > You have clicked on a stale link.
> >
> > Rewind of form Home/$Form expected allocated id #2 to be '$Submit',
> > but was '$AnySubmit$0' (requested by component Home/$AnySubmit).
> >
> > This is most likely the result of using your browser's back button,
> > but can also be an application error.
> >
> > You may continue by returning to the application's home page.
> > </pre>
> >
> > <code>
> > try {
> > System.out.println("You have just clicked the row
> > submit button");
> > } catch (StaleLinkException e) {
> > System.out.println("catched stale link exception");
> > }
> > </code>
> >
> > So I want your opition how to avoid such annoying exception.
> >
> > best regards,
> > Vincent
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]