• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help -two submit button-how to handle..

 
Rajeswari Gopal
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Anybody please help me its very urgent.. give me any idea..
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it tapestry?
 
Rajeswari Gopal
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic