Change listitem style through sclass

asked 2011-10-24 18:51:37 +0800

gyowanny gravatar image gyowanny
283 1 2 6

updated 2011-10-24 18:52:15 +0800


I wanna change the list item style through sclass.
My sample below doesn't work:

my custom css:

.list-video-seld tr.z-listitem-seld{background:#FFE58E;border:none;}
.list-video-over tr.z-listitem-over{background:#FAF5E3;}

and my java code. Notice I'm setting the sclass property in the ListItemRenderer:

private static class VideoListItemRenderer implements ListitemRenderer{

		public void render(Listitem item, Object data) throws Exception {
                         item.setSclass("list-video-seld list-video-over");

What is wrong with my code?



delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-10-24 19:35:32 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Too soon to ask for help. lol

Actually, I have to set the sclass of the Listbox component.

The java code is like the below:

Listbox videoList = new Listbox();
videoList.setSclass("list-video-over list-video-seld");

That's all. The code is working fine now.


link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2011-10-24 18:51:37 +0800

Seen: 255 times

Last updated: Oct 24 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More