You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Lance (JIRA)" <ji...@apache.org> on 2013/07/01 14:00:28 UTC

[jira] [Created] (TAP5-2138) Support multiple @PageActivationContext

Lance created TAP5-2138:
---------------------------

             Summary: Support multiple @PageActivationContext
                 Key: TAP5-2138
                 URL: https://issues.apache.org/jira/browse/TAP5-2138
             Project: Tapestry 5
          Issue Type: Improvement
            Reporter: Lance
            Priority: Minor


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

eg
{code}
public class MyPage {
   @PageActivationContext(index=0)
   private Category category;

   @PageActivationContext(index=1)
   private Item item;

   ...
}
{code}

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 


   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira