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

@InjectPageLink and @InjectExternalLink annotations

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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);
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: