You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Shing Hing Man (JIRA)" <ta...@jakarta.apache.org> on 2006/12/21 21:34:20 UTC
[jira] Created: (TAPESTRY-1210) Problem with InlineEditBox on
persisted page property
Problem with InlineEditBox on persisted page property
-----------------------------------------------------
Key: TAPESTRY-1210
URL: http://issues.apache.org/jira/browse/TAPESTRY-1210
Project: Tapestry
Issue Type: Bug
Components: XHR/dhtml/Ajax
Affects Versions: 4.1.1
Reporter: Shing Hing Man
I am using the component InlineEditBox, in Tapestry
4.1.2 snapshot (dated 20 Dec 06),
to edit a persisted (with session scope) property
called description on page TestInlineEditBox.
I have noticed the changes done to the property
description is
lost if I leave the page TestInlineEditBox and come
back to it later.
As the property description is persisted with scope
session,
In debug mode, I discovered that component.destroy (in InlineEditBox.script) is false.
Consequently,
dojo.event.connectOnce(${box}, "onSave",
function(newValue, oldValue){
tapestry.bind("${component.updateUrl}",
{"${component.clientId}":newValue}, true);
is not rendered.
--
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-1210) Problem with InlineEditBox on
persisted page property
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert updated TAPESTRY-1210:
------------------------------------
Fix Version/s: 4.1.2
> Problem with InlineEditBox on persisted page property
> -----------------------------------------------------
>
> Key: TAPESTRY-1210
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1210
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Reporter: Shing Hing Man
> Fix For: 4.1.2
>
> Attachments: TestInlineEditBox.html, TestInlineEditBox.java, TestInlineEditBox.page
>
>
> I am using the component InlineEditBox, in Tapestry
> 4.1.2 snapshot (dated 20 Dec 06),
> to edit a persisted (with session scope) property
> called description on page TestInlineEditBox.
> I have noticed the changes done to the property
> description is
> lost if I leave the page TestInlineEditBox and come
> back to it later.
> As the property description is persisted with scope
> session,
> In debug mode, I discovered that component.destroy (in InlineEditBox.script) is false.
> Consequently,
> dojo.event.connectOnce(${box}, "onSave",
> function(newValue, oldValue){
> tapestry.bind("${component.updateUrl}",
> {"${component.clientId}":newValue}, true);
> is not rendered.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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-1210) Problem with InlineEditBox on
persisted page property
Posted by "Shing Hing Man (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1210?page=all ]
Shing Hing Man updated TAPESTRY-1210:
-------------------------------------
Attachment: TestInlineEditBox.html
TestInlineEditBox.page
TestInlineEditBox.java
Source files of the example used.
> Problem with InlineEditBox on persisted page property
> -----------------------------------------------------
>
> Key: TAPESTRY-1210
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1210
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Reporter: Shing Hing Man
> Attachments: TestInlineEditBox.html, TestInlineEditBox.java, TestInlineEditBox.page
>
>
> I am using the component InlineEditBox, in Tapestry
> 4.1.2 snapshot (dated 20 Dec 06),
> to edit a persisted (with session scope) property
> called description on page TestInlineEditBox.
> I have noticed the changes done to the property
> description is
> lost if I leave the page TestInlineEditBox and come
> back to it later.
> As the property description is persisted with scope
> session,
> In debug mode, I discovered that component.destroy (in InlineEditBox.script) is false.
> Consequently,
> dojo.event.connectOnce(${box}, "onSave",
> function(newValue, oldValue){
> tapestry.bind("${component.updateUrl}",
> {"${component.clientId}":newValue}, true);
> is not rendered.
--
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-1210) Problem with InlineEditBox on
persisted page property
Posted by "Shing Hing Man (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462814 ]
Shing Hing Man commented on TAPESTRY-1210:
------------------------------------------
After further debugging, it is found the ResponseBulider that renders
the InlineEditBox in the above example is of type DefaultResponseBuilder.
Consequently, the property component.destroy (set in method AbstractWidget.renderComponent())
is false. In InlineEditbox.script, why do we need the 'if' statement in the following ?
<if expression="component.destroy">
dojo.event.connectOnce(${box}, "onSave", function(newValue, oldValue){
tapestry.bind("${component.updateUrl}", {"${component.clientId}":newValue}, true);
});
</if>
As it is, the InlineEditBox will not save the new value if it is rendered by a DefaultResponseBuilder.
There is no such problem with the InlineEditBox in the Time Tracking example, because
the InlineEditBox there is rendered by a DojoAjaxRepsonseBuilder (which sets component.destroy to true).
> Problem with InlineEditBox on persisted page property
> -----------------------------------------------------
>
> Key: TAPESTRY-1210
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1210
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Reporter: Shing Hing Man
> Attachments: TestInlineEditBox.html, TestInlineEditBox.java, TestInlineEditBox.page
>
>
> I am using the component InlineEditBox, in Tapestry
> 4.1.2 snapshot (dated 20 Dec 06),
> to edit a persisted (with session scope) property
> called description on page TestInlineEditBox.
> I have noticed the changes done to the property
> description is
> lost if I leave the page TestInlineEditBox and come
> back to it later.
> As the property description is persisted with scope
> session,
> In debug mode, I discovered that component.destroy (in InlineEditBox.script) is false.
> Consequently,
> dojo.event.connectOnce(${box}, "onSave",
> function(newValue, oldValue){
> tapestry.bind("${component.updateUrl}",
> {"${component.clientId}":newValue}, true);
> is not rendered.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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] Resolved: (TAPESTRY-1210) Problem with InlineEditBox on
persisted page property
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert resolved TAPESTRY-1210.
-------------------------------------
Resolution: Fixed
Assignee: Jesse Kuhnert
Should render correctly in all situations now.
> Problem with InlineEditBox on persisted page property
> -----------------------------------------------------
>
> Key: TAPESTRY-1210
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1210
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Reporter: Shing Hing Man
> Assigned To: Jesse Kuhnert
> Fix For: 4.1.2
>
> Attachments: TestInlineEditBox.html, TestInlineEditBox.java, TestInlineEditBox.page
>
>
> I am using the component InlineEditBox, in Tapestry
> 4.1.2 snapshot (dated 20 Dec 06),
> to edit a persisted (with session scope) property
> called description on page TestInlineEditBox.
> I have noticed the changes done to the property
> description is
> lost if I leave the page TestInlineEditBox and come
> back to it later.
> As the property description is persisted with scope
> session,
> In debug mode, I discovered that component.destroy (in InlineEditBox.script) is false.
> Consequently,
> dojo.event.connectOnce(${box}, "onSave",
> function(newValue, oldValue){
> tapestry.bind("${component.updateUrl}",
> {"${component.clientId}":newValue}, true);
> is not rendered.
--
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