You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jeremy F. Kassis (JIRA)" <ta...@jakarta.apache.org> on 2006/02/07 21:31:58 UTC

[jira] Created: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
----------------------------------------------------------------------------

         Key: TAPESTRY-860
         URL: http://issues.apache.org/jira/browse/TAPESTRY-860
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
    Reporter: Jeremy F. Kassis
    Priority: Minor


Create a page property as follows:

<property name="foo" persist="session">new java.util.HashSet()</property>

In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.

Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.

Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-860?page=all ]

Jesse Kuhnert updated TAPESTRY-860:
-----------------------------------

    Fix Version/s: 4.1.2

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>         Assigned To: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-860:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Assignee: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-860:
-----------------------------------

    Fix Version/s:     (was: 4.1.5)
                   4.1.6

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Assignee: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-860:
------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Assignee: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Andy Yeung (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-860?page=comments#action_12451878 ] 
            
Andy Yeung commented on TAPESTRY-860:
-------------------------------------

Currently, the only workaround is to void using @Persist but use @InjectState for all collection attributes.

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Priority: Minor
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Andy Yeung (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-860?page=comments#action_12451875 ] 
            
Andy Yeung commented on TAPESTRY-860:
-------------------------------------

I have try using a simple integer and a collection as persist property. the collection property even fail to clean up for the new value in new session. All users now share the same collections property in the page pool.

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Priority: Minor
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-860?page=all ]

Jesse Kuhnert reassigned TAPESTRY-860:
--------------------------------------

    Assignee: Jesse Kuhnert

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>         Assigned To: Jesse Kuhnert
>            Priority: Minor
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-860) SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-860:
-----------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

> SessionPropertyPersistenceStrategy Does Not Recognize Changes to Collections
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-860
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-860
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Jeremy F. Kassis
>            Assignee: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.4
>
>
> Create a page property as follows:
> <property name="foo" persist="session">new java.util.HashSet()</property>
> In a listener method, add an item to the collection. The SessionPropertyPersistenceStrategy does not record the change.
> Workaround: Resave the collection using the setter. However, when a page passes a persistent collection property to a subcomponent, the subcomponent must know to resave the collection using the setter to "hack" the Tapestry functionality. This breaks an abstraction barrier between page and component.
> Anyway, there you have it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org