Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1991

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: