You could use CSS. Set the class for the table row to be highlighted (eg ..tr
class="trcolor"), add a style to the page to set the color of the table row
class (eg .trcolor {color: red} ). Then get wicket to change the style color
through CSS when the checkbox is selected.



Cristi Manole wrote:
> 
> Hello,
> 
> I have a checkbox in an Ajax table (wrote by Igor).
> 
> On one column i add a panel which contains a checkbox and a link.
> 
> When the user selects the checkbox I would like that specific table row to
> be displayed with a different background color.
> 
> How am I to do that? I didn't manage to understand how to get the row id
> (although that is probably trivial) and how to change the css (I'm
> thinking
> of doing that through javascript, with  appendJavascript method, but on
> which element to call it?)
> 
> Thanks in advance.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-changing-CSS-tf4721192.html#a13498438
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to