Tapestry
  1. Tapestry
  2. TAPESTRY-1991

It should be easier to access an Application State Object without forcing its creation

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.8
    • Component/s: Framework
    • Labels:
      None

      Description

      By default an ASO is never null. It's automatically created using the ASO class default constructor.
      It's many times needed to have the null value in an ASO, for example if i want to keep the logged in user in an ASO.

      Right now we can do this by contributing a new ApplicationStateCreator to the ApplicationStateManager but it seems to me that should be as easy as providing a parameter to the @ApplicationState indicating that you don't want it to be automatically initialized.

        Activity

        Hugo Palma created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Summary It should be easy to initialize an ASO to null It should be easier to access an Application State Object without forcing its creation
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0.8 [ 12312898 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12419679 ] Default workflow, editable Closed status [ 12568444 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568444 ] jira [ 12591497 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Hugo Palma
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development