Tapestry
  1. Tapestry
  2. TAPESTRY-2235

Annotation for managing a property as the page activation context

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.14
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      A very common idiom is to have a page that exists to view/edit/create an entity, and to store the entity as the page activation context (relying on a ValueEncoder to extract the primary key as the value in the URL). Example code:

      public class ShowAccount
      {
      @GenerateAccessors
      private Account _account;

      void onActivate(Account account)

      { _account = account; }

      Object onPassivate()

      { return _account; }

      }

      It seems that these two methods could be generated automatically in some way, i.e.

      public class ShowAccount
      {
      @GenerateAccessors
      @PageActivationContext
      private Account _account;
      }

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Igor Drobiazko made changes -
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Igor Drobiazko made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.14 [ 12313214 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Howard M. Lewis Ship made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12425120 ] Default workflow, editable Closed status [ 12568621 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568621 ] jira [ 12590054 ]

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development