Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-206

Document that you should not instantiate an @Persist field in its declaration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.0.16
    • None
    • None
    • N/A

    Description

      Because of Tapestry's page pooling, persistent objects can behave in strange ways if not handled properly. Issues can arise when setting a value on a persistent property at the same time as declaring it.

      I ran into this issue while doing something similar to this: http://www.nabble.com/Strange-behavior-when-instantiating-properties-directly-in-the-page-p17876779.html

      I propose that a note is added to the User's Guide -> Persistent Data page to warn users of this potential issue.

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              shentalus Dave Dombrosky
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: