Thank you for the response. That is exactly what I wanted.
But ... something is still odd. I get too and mixed up updates back to
in the ajax-response requests. Is this a bug or expected behaviour?
_Click on first row :_
Tapestry / DojoAjaxResponseBuilder sends
* <response id="therow" type="element"> (actually containing both first
and second row(!)
* <response id="initializationscript" type="script">
Works fine.
_Click on second row :_
* <response id="Insert" type="element">
* <response id="therow_0" type="element">
* <response id="DirectLink" type="element"> ie. of first row
* <response id="initializationscript" type="script">
DOJO warns: WARNING: 10:06:53 AM: No node could be found to update
content in with id Insert
_Click on third row :_
<response id="Insert_1" type="element">
* <response id="DirectLink_0" type="element">
* <response id="initializationscript" type="script">
DOJO warns: WARNING: 10:05:40 AM: No node could be found to update
content in with id Insert_1
/kim
andyhot wrote:
Sam Gendler wrote:
On 11/21/06, andyhot <[EMAIL PROTECTED]> wrote:
updateComponents="ognl:components.therow.clientId"
Can I suggest that we get this into the docs in some way. It stumps a
lot of people, including myself.
http://issues.apache.org/jira/browse/TAPESTRY-1137 proposes a binding
for that
exact use-case, i.e. updateComponents="clientId:therow"
Also, it seems like if I want to
update a component by calling ResponseBuilder.updateComponent() from
within a listener method, I have to give it the id of the component,
rather than the clientId. In that case, does it only update the
current instance of the component accessed by that id, or will it
update every component that uses that id as the code iterates over a
collection in some way? If it is the former, how would I update the
row that follows the current row? Is it even possible?
--sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Tlf. +45 7214 6793 · [EMAIL PROTECTED] · MSN: [EMAIL PROTECTED]
Atira A/S · Niels Jernes Vej 10 · 9220 Aalborg SØ · www.atira.dk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]