Not sure about the 2 newlines, but the 2nd assumption is true
The problem is that the initial document must already contain a dom node
having
the id that you want to update - even if that dom node is empty it's useful
cause otherwise
tacos wouldn't know where exactly to add the new content that it receives
from the server.
Doesn't this make sense?
On 5/15/07, Karthik N <[EMAIL PROTECTED]> wrote:
a snippet of my tacos template
<div jwcid="@If" condition="ognl:canCreateTemplate">
<div jwcid="[EMAIL PROTECTED]" id="createTemplate">
<input jwcid="[EMAIL PROTECTED]"
id="createTemplateButton" listener="listener:createTemplate"/>
</div>
</div>
<span jwcid="[EMAIL PROTECTED]:AjaxEventSubmit"
updateComponents="ognl:{'createTemplate'}"
clientSideValidationEnabled="false"
action="listener:addLineItem">
observe that:
1. createTemplate is in the updateComponents list of addLineItemEvent
2. createTemplate is inside an @If condition
what we find is whenever the @If evaluates to FALSE, we get a tacos
exception on the client
on further debugging and experimenting we found that:
a. we get two newlines '\n' in the responseElement of the createTemplate
b. just switching positions of the @If and createTemplate makes things
work for us
The questions:
1. why the two new lines that show up?
2. is this a recommended way of coding - i.e. if an updateComponent is
inside a condition, then we should actually get the updateComponent to
encompass the condition?
Any help would be much appreciated.
--
Thanks, Karthik
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel