Tapestry
  1. Tapestry
  2. TAPESTRY-1184

@InjectPageLink and @InjectExternalLink annotations

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: Annotations
    • Labels:
      None

      Description

      As a return type of listener method,ILink can be used to perform a redirect-after-post.So it will be a great convenience to inject ILink using annotations.
      @InjectPageLink("Home")
      public abstract ILink getHomeLink();

      @InjectExternalLink("ShowCategory")
      public abstract ILink getCategoryLink(Long id);

      public ILink goHome(){
      return getHomeLink();
      }
      public ILink showCategory(Long id){
      return getCategoryLink(id);
      }

      1. InjectLink.zip
        33 kB
        Ming Jiang

        Activity

        Hide
        Andreas Andreou added a comment -

        Objections to moving this to tacos-annotations ?
        https://svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/tacos-annotations/

        We can always move it then back in tapestry if it turns out to be popular!

        Show
        Andreas Andreou added a comment - Objections to moving this to tacos-annotations ? https://svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/tacos-annotations/ We can always move it then back in tapestry if it turns out to be popular!
        Hide
        Andreas Andreou added a comment -

        move to tacos-annotations

        Show
        Andreas Andreou added a comment - move to tacos-annotations

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Ming Jiang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development