aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help -two submit button-how to handle..