You could run a javascript code when the page is rendered and use jQuery to get the <input type="checkbox" checked="checked"> and put the correct class to the parent tr.

To find the check box selected look at [http://api.jquery.com/checkbox-selector/]. Then you could put your code in your javascript block of your page, this code will be executed when the page is rendered (via ajax because you are using @form in your f:ajax tags or a full page render)