Can't see anything wrong here...
What happens if you replace @tacos:AjaxDirectLink with DirectLink ?
is the html produced valid in that case?



Peter Stavrinides wrote:

> Hi All,
>
> This is probably quite trivial, but I just can see whats wrong, when
> using the AjaxDirectLink, It seems to me that the HTML produced by the
> AJAX response is not consistent with the original HTML, What am I
> doing wrong ? why does the code break (it wont render </td> or
> </table> tags), and they clearly exist?
>
> *This is the original source...*
> <table class="FundSearchTable" border="1">
>                   <tr>
>                     <th><b>Name</b></th>
>                     <th><b>Start Date</b></th>
>                     <th><b>End Date</b></th>
>                      <th></th>
>                   </tr>
>                   <tr jwcid="@For" source="ognl:shareClassList"
> volatile="true" value="ognl:f" element="literal:tr">
>                         <td><span jwcid="@Insert"
> value="ognl:f.getFundName()"></span></td>
>                         <td><span jwcid="@Insert"
> value="ognl:getStartDate(f)"></span></td>
>                         <td><span jwcid="@Insert"
> value="ognl:getEndDate(f)"></span></td>
>                          <td>
>                              <div jwcid="@If"
> condition="ognl:!isFundInPortfolio(f)">
>                                 <span jwcid="@tacos:AjaxDirectLink"
> listener="listener:addFundToPortfolio" parameters="ognl:f"
> updateComponents="ognl:{'refreshTable'}">
>                                      Add
>                                  </span>
>                              </div>
>                         </td>
>                     </tr>
>                  </table>
>
> *This is the response:*
> <response type="element" id="refreshTable">
>       <div id="refreshTable">
>               <table class="FundSearchTable" border="1">
>                       <tr>
>                               <th><b>Name</b></th>
>                               <th><b>Start Date</b></th> 
>                               <th><b>End Date</b></th>
>                               <th></th>
>                       </tr>
>                       <tr>
>                               <td>SAB Capital Partners LP</td>
>                               <td>Oct 2004</td>
>                               <td>Jul 2006</td>
>                               <td><a></a></tr></div></response>
>   
> *Firefox Javascript console:
>
> *Error: mismatched tag. Expected: *</td>.*
> Source File:
> http://localhost:8081/PorfolioAnalysis/app?component=%24AjaxDirectLink&page=PortfolioFunds&rand=1359479431&service=ajaxdirect&session=T&sp=15833&updatedirect=false&updateid=newforRefresh&widgetids=&uuid=Thu%20Sep%2028%202006%2014%3A50%3A55%20GMT%2B0300%20(GTB%20Standard%20Time)&processScripts=true&dojoRequest=true
> Line: 697, Column: 18
> Source Code:
>                                
> <a></a></tr></div></response></ajax-response>
> ------------------------------^
> Thanks for your help!
> Peter
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to