Hi,
I have a page which generate a link to an action in the same page, the link
was embedded in a Streamresponse, when I click the link in the browser, it
does not activate the action link created, why?
Here is the code:
public class TestPage2 {
@Inject
private ComponentResources resources;
public StreamResponse onActionFromDelete(Long id) {
String link1 =
resources.createActionLink("onActionFromDeleteConfirm", false, id).toURI();
return new TextStreamResponse("text/html", String.format("< a
href='%s'>Confirm ", link1));
}
public String onActionFromDeleteConfirm(Long id) {
System.out.println("delete confirm");
return null;
}
}
html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>Start Page</title>
</head>
<body>
<h1>Test Page</h1>
<t:actionLink t:id="Delete" context="1">Delete</t:actionLink><br/>
</body>
</html>
--
View this message in context:
http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13526220
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]