Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1184

@InjectPageLink and @InjectExternalLink annotations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 4.0
    • 4.1.2
    • Annotations
    • 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);
      }

      Attachments

        1. InjectLink.zip
          33 kB
          Ming Jiang

        Activity

          People

            andyhot Andreas Andreou
            jimlaren Ming Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: