This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Help -two submit button-how to handle.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Help -two submit button-how to handle.." Watch "Help -two submit button-how to handle.." New topic

Help -two submit button-how to handle..

Rajeswari Gopal

Joined: Apr 14, 2005
Posts: 26
Hi all,

In my form i am having two submit buttons("Add","Delete").. each one has a listener. if i click add it want to execute add listener.. but an stale link error is coming
Following is the code..

<link rel="stylesheet" type="text/css" href="styles/styles.css">
<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Table"/>
<form jwcid="@Form" ><br/><br/>Search:
<input type="text" jwcid="@TextField" value="ognl:search"/><br/><br/>
<input type="submit" name="add" jwcid="@Submit" listener="ognl:listeners.add" value="ADD"/></td>
<input type="submit" jwcid="@Submit" listener="ognl:listeners.delete" value="DELETE"/>

Following stale link error
You have clicked on a stale link.

Rewind of form Table/$Form_0 expected 1 more form elements, starting with id 'Submit_0'.

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.

If anybody knows please help me..
Rajeswari Gopal

Joined: Apr 14, 2005
Posts: 26
Hi ,

Anybody please help me its very urgent.. give me any idea..
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980
Is it tapestry?
Rajeswari Gopal

Joined: Apr 14, 2005
Posts: 26
yes its tapestry..
I have solved the stale link error.. in the html page i have used @conditional component.. i replaced it with @FormConditional component its working now properly..
Thanks for your response
I agree. Here's the link:
subject: Help -two submit button-how to handle..
It's not a secret anymore!