Uploaded image for project: 'Click'
  1. Click
  2. CLK-106

Add PageLink control

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • 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>

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            click_stephen Stephen Haberman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: