This discussion is archived
4 Replies Latest reply: Feb 1, 2013 3:03 PM by 988415 RSS

Updating The CSS ID Of A Node - Tab

988415 Newbie
Currently Being Moderated
I am assisting in the production of a client which involves a tabbed notification system. Basically, when a tab is first created it has a certain CSS style. I am wanting to change the ID to something different whenever the notification is read. I have attempted to use the #onSelectionChangedProperty and set the ID to the new ID and it does nothing after the first time.
I wish to be able to set the style between two different styles whenever.

I believe I need to re-validate or refresh the control to fix this, but there is no such methods currently in existence. What should I do?

Edit: A temporary solution is to use #setStyle and pass the string representation of the style I want, but I would rather just be able to use #setID and keep CSS out of my class files.

Edited by: 985412 on Jan 31, 2013 12:58 PM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points