Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Target Click 0.21
Description
Add a PageLink control
---------------------------------------
From Stephens "click hacks" email:
6. Link control
I'm not a fan of the ActionLink idiom. I understand the whole listener thing
is type-safe and all that, and both Tapestry and Click make it "okay", but
having a user be on "Employees", and click "Employee Sue", the browser hits
"/employees.htm", but then behind the scenes, our listener forwards/serves
out "/employee.htm" while the user's browser says "/employees.htm", just
seems, well, odd. So, instead we've developed a fairly type-safe way of
doing links, but making the decision about where the user should go at
render time instead of next-click listener time.
The basic idiom is:
Link l = new Link("ClientLink", "name", ClientPage.class);
l.addParameter(this.client);
l.toString()
->
<a id="clientPage_client5" href="/client.htm?client=5">theClientsName</a>