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

Reply via email to