You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/01 20:30:21 UTC
[jira] [Commented] (TAP5-2269) Client persistence strategy does not
detect changes to internal state of mutable objects
[ https://issues.apache.org/jira/browse/TAP5-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117625#comment-14117625 ]
ASF subversion and git services commented on TAP5-2269:
-------------------------------------------------------
Commit 021b23e18c1b67b0a932d19dc0080b82a82e4902 in tapestry-5's branch refs/heads/master from [~hlship]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=021b23e ]
TAP5-2269: Client persistence strategy does not detect changes to internal state of mutable objects
> Client persistence strategy does not detect changes to internal state of mutable objects
> ----------------------------------------------------------------------------------------
>
> Key: TAP5-2269
> URL: https://issues.apache.org/jira/browse/TAP5-2269
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3.7
> Reporter: Rural Hunter
> Assignee: Howard M. Lewis Ship
> Attachments: tptest.zip
>
>
> Page:
> public class test {
> @Property
> @Persist(PersistenceConstants.CLIENT)
> Box u ; //any object here
>
> @Property
> @Persist(PersistenceConstants.CLIENT)
> private String title;
>
> public void setUpRender(){
> if(u==null)
> u = new Box();
> }
>
> public void onSubmitFromTeast(){
> System.out.println("Submitted value="+u.getType());
> }
> }
> tml:
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns="http://www.w3.org/1999/xhtml" xmlns:p="tapestry:parameter">
> <body>
> <t:form t:id="teast" id="teast" >
> <span>test</span>
> <p>
> <input t:type="textfield" t:value="u.type" t:clientId="utype"/>
> <!--<input t:type="textfield" t:value="title" />-->
> </p>
> <input type="submit" />
> </t:form>
> </body>
> </html>
> Entity(The problem is not related to any particular entity. this can be any entity here):
> public class Box implements Serializable
> {
> public Long id;
> public String type;
> }
> In the test above, the persist doesn't work on Box object. If I just uncomment the 'title' textfield in tml, the persist on Box will be successful.
> I had a rough investigation and found ClientPersistentFieldStorageImpl.postChange was not triggered without the 'title' field.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)