Hi Folks.
I'm Lift newbe so please be patient :)
I've tried to implement table in master-detail fashion. In template I
have something like:
<table cellpadding="7px" title="User summary">
<th>First Name</th>
<th>Last Name</th>
<th>Hours Summary</th>
<th>Wage</th>
<lift:Users.list>
<tr onmouseover="this.bgColor='#eeffff';"
onmouseout="this.bgColor='#FFFFFF';"
onclick="window.location
='URL_TO_USER_DETAILS';">
<td><u:fname /></td>
<td><u:lname /></td>
<td><u:hours /></td>
<td><u:money /></td>
</tr>
</lift:Users.list>
</table>
What I want to achieve is that users clicks on table row and gets
redirected to details about selected row (user in this case). I would
like to implement this in View First pattern so i thought about
replacing 'onclick' attribute inside Users.list method but I don't
know the easy way to do this. The naive way would be using regular
expressions, but i've got feeling that i'm reinventing wheel here.
Please help.
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.