This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
Author

Help -two submit button-how to handle..

Rajeswari Gopal
Greenhorn

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..
.html
=====
<html>

<link rel="stylesheet" type="text/css" href="styles/styles.css">
<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Table"/>
<body>
<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"/>
</form>
</body>
</html>

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..
Thanks
Raji.
Rajeswari Gopal
Greenhorn

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: 979
Is it tapestry?
Rajeswari Gopal
Greenhorn

Joined: Apr 14, 2005
Posts: 26
Hi,
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
Raji.
 
 
subject: Help -two submit button-how to handle..
 
Similar Threads
Building JSP pages and link to MySQL table
stale link error plz help
sending/retrieving data via SQL statements...
update query not executing stale link error plz help
update query not executing stale link error plz help