this is shit

jhomuth wrote:
Hello Jan,

i quess this might work. I will try. Thank you!!

Jan-Kees van Andel wrote:
With raw JavaScript it's very easy (if you know JavaScript). Something like
this:

var table = document.getElementById("theId");
var rows = table.tBodies[0].getElementsByTagName("tr");
for(var i = 0; i < rows.length; i++) {
    var row = rows[i];
    row.onClick = onRowClick;
}

function onRowClick(event) {
    // Do something
}

If you go this route, I suggest using a JS toolkit like prototype of jquery,
to handle cross browser differences for you.

Good luck,
Jan-Kees


jhomuth wrote:
Hi again,

at first thanks for your answers, but this is not the solution we supposed. We wanna render a table rather than a list. Furthermore we are pretty lucky with the functions of this datatable and it's look pretty good already, and that's why we want to use the dataTable. Is there no other way to make a whole row clickable? For now we found the solution to insert the table data for each cell with inputfields which fully fill out the tablecell and such a css style that you don't see that this are inputfields but we think that's dirty and heavy-handed.

Any other suggestions??

Mike Kienenberger wrote:
Yes, t:dataList is the equivalent to ui:repeat, except that it fixes
issues that ui:repeat has, and also has many of the features that
t:dataTable supports.


On 10/9/08, Jan-Kees van Andel <[EMAIL PROTECTED]> wrote:
Or you can use Facelets <ui:repeat /> and write the markup yourself.
This
way you have full control over the rendered HTML.

Regards,

Jan-Kees


2008/10/8 Leonardo Uribe <[EMAIL PROTECTED]>





On Wed, Oct 8, 2008 at 8:50 AM, jhomuth
<[EMAIL PROTECTED]> wrote:
Hello List,

i've another question. Is it possible to make a whole row in a
datatable
clickable? I've tried with a commandLink like this.
<tom:dataTable ....>
<tom:commandLink ......>
Row Content goes here
</tom:commandLink>
</tom:dataTable>

But this don't work. Is there any solution,example for this.

Maybe use t:dataList.

Thx for suggestions






Reply via email to