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

Support multiple @PageActivationContext

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      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

            • Assignee:
              uklance Lance
              Reporter:
              uklance Lance
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: