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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.6
    • 5.0.8
    • Framework
    • 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

            hlship Howard Lewis Ship
            hpalma Hugo Palma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: