You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Renzo Tomaselli <re...@tecnotp.it> on 2006/12/22 19:06:26 UTC

[Trinidad] javascript on tr:table rows

Hi, I'm in the process of converting existing Tomahawk tables to Trinidad
tr:table. Those tables had dynamic columns as well as some javascript special
effect, such changing class (color) because of mouse over, selecting by click
on any row point, etc.  
I tried to get the same by tr:table, e.i:  
  
<tr:column  
                     onmouseover="Result.rowOnMouseOver(this)"  
                     onclick="Result.rowOnClick(this, 'result', #{resultBean.checkedSelector}, #{resultBean.multipleSelector})"  
                     ondblclick="Result.rowOnDblClick(this, 'result', #{resultBean.checkedSelector}, #{resultBean.multipleSelector})"  
                     onmouseout="Result.rowOnMouseOut(this)">  
        <t:graphicImage url="#{sessionBean.map['document']}" rendered="#{!row.folder}"/>  
</tr:column>  
  
but rendering is something like:  
  
<tr>  
<th scope="col" class="af_column_header-text" onclick="Result.rowOnClick(this,
'result', false, true)"></th>  
<th scope="col" class="af_column_header-text OraTableBorder0001">name</th>  
...  
namely, onclick is placed on an unreacheable point on column header only,
while other events are lost.  
Is there any way to associate event scripts to table rows ?  
Thanks -- Renzo