Marco Aurélio Silva wrote:
Is there a way to do it without javascript?

Well, obviously if you want to handle clicking on things without Javascript then whatever it is needs to be a standard Link.

You can abandon tables and do something like this:

<div wicket:id="listView">
    <a wicket:id="link" class="rowLink">
        <span wicket:id="name"></span>
        <span wicket:id="summary"></span>
    </a>
</div>

.rowLink {
    display: block;
}

.rowLink span {
    width: 50%;
    display: block;
    float: left;
}

======

Or maybe you could do this with CSS, but it'd break the accessibility totally:

<table class="clickableRows">
    <tr>
        <td><a class="rowLink" wicket:id="link"></a></td>
        <td>Name</td>
        <td>Summary</td>
    </tr>
</table>

.clickableRows tr {
    position: relative;
}

.clickableRows a.rowLink {
    display: block;
    position: absolute;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}


Although the browsers may well not know what to make of that, IE in particular. No idea if it will even vaguely work, but it might give you ideas. ;-)

Regards,

Al

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to