This page (revision-5) was last changed on 23-May-2013 16:16 by Dieter Käppel

This page was created on 01-Aug-2012 08:36 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
5 23-May-2013 16:16 2 KB Dieter Käppel to previous
4 23-May-2013 16:16 1 KB Dieter Käppel to previous | to last
3 05-Dec-2012 12:57 1 KB Dieter Käppel to previous | to last
2 05-Dec-2012 11:21 1 KB Dieter Käppel to previous | to last
1 01-Aug-2012 08:36 422 bytes Dieter Käppel to last

Page References

Incoming links Outgoing links
Richfaces 4 ...nobody

Version management

Difference between version and

At line 16 added 24 lines
!Tree
Um die Selection-Events zu bekommen, sind einige Dinge zu beachten:
* Der Tree muss sich in einem Form-Tag befinden
* Das selectionChangeListener-Attribut funktioniert nicht, es muss ein zusätzlicher Tag rich:treeSelectionChangeListener verwendet werden
* Die Keys der TreeNodes können Probleme bereiten, wenn es Integers sind oder Sonderzeichen enthalten
{{{
<h:form id="tree-form">
<rich:tree id="tree" value="#{bean.tree}" selectionType="ajax">
<rich:treeSelectionChangeListener listener="#{bean.changeSelection}"/>
<rich:treeNode>
<h:outputText value="#{node.name}"/>
</rich:treeNode>
</rich:tree>
</h:form>
}}}
{{{
public void changeSelection(TreeSelectionChangeEvent event) {
System.out.println("Selection changed: " + event.getNewSelection());
}
}}}