Hello,
I have two questions, regarding two different rich components:
1. I wanted to define my own style for the rich datatable, and I was successful, except, the table header, which has the right color, but on mouse over the background disappears, which is very undesired.
2. The rich:tree... I want to make only the leaf nodes selectable, plus I would like to make the tree expand not only by clicking the icon, but also the description of the node. Anyway.. I tried using a nodeselectionlistener:
public void processTreeNodeImplSelection(final NodeSelectedEvent event) { HtmlTree tree = (HtmlTree) event.getComponent(); String nodeTitle = (String) tree.getRowData(); TreeNode<String> currentNode = tree.getModelTreeNode(tree.getRowKey()); if (currentNode.isLeaf()){ System.out.println("Node selected : " +(String)currentNode.getData()); } }
Hi Ioana,
1. I'd suggest that you use Firebug for Firefox tool to check styling.
2. There is a special toggleOnClick attribute for this; use
onselected="return false"to prevent nodes selection on the client.