Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2138

Support multiple @PageActivationContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.4
    • None
    • None

    Description

      The @PageActivationContext annotation (and PageActivationContextWorker) could be improved to accept an "index" parameter. This way, I could have multiple @PageActivationContext properties.

      eg

      public class MyPage {
         @PageActivationContext(index=0)
         private Category category;
      
         @PageActivationContext(index=1)
         private Item item;
      
         ...
      }
      

      I'd expect tapestry to generate the following URL's:

      • /mypage (category and item is null)
      • /mypage/category1 (item is null)
      • /mypage/$N/item1 (category is null)
      • /mypage/category1/item1

      Attachments

        Activity

          People

            uklance Lance S
            uklance Lance S
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: