You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/12/16 23:09:23 UTC
[jira] Resolved: (TAPESTRY-1194) ResponseBuilder doesn't update
part unless you specify an id in the template
[ http://issues.apache.org/jira/browse/TAPESTRY-1194?page=all ]
Jesse Kuhnert resolved TAPESTRY-1194.
-------------------------------------
Resolution: Won't Fix
In this specific instance I think the proper thing for your component to do would be calling getClientId() - which would properly report the id stripped of "$" values.
> ResponseBuilder doesn't update part unless you specify an id in the template
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-1194
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1194
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1
> Environment: 4.1.1 - snapshot
> Reporter: alex d
>
> To begin with , i'm not sure whether is a bug or is just the way it should work.
> In the html template i declared a component
> <span kwcid="@MyComp" />
> which , upon a trigger , should update itself through JSON reponse.
> In the method getUpdateComponents() i wrote : comps.add(getId()); //the id would be $MyComp
> In render() (ReponseBuilder) this id is compared with the peekClientId() , which returns MyComp , as id.
> So because $MyComp != MyComp no respone is returned back to the client.
> On the other hand , if in my template i specify <span jwcid="anId@MyComp" /> , both , getId() and peekClientId() return the same thing (anId) an everything works as expected.
--
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