Theme
OrgChart
It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
Source
<h:form>
	<pe:orgchart id="orgChart"
				widgetVar="orgChartViewWidget"
				value="#{orgchartController.orgChartNode}"
				draggable="true"
				exportButton="true"
				pan="true"
				parentNodeSymbol="fa-folder-open"
				zoom="true"
				exportFileextension="pdf"
				direction="#{orgchartController.direction}"
				toggleSiblingsResp="true">
	</pe:orgchart>
</h:form>
            
Components and more
Use Cases
Documentation pe:orgchart
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a namingContainer.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An el expression referring to a server side UIComponent instance in a backing bean.
value Value of the component.
widgetVar Name of the client side widget.
nodeId It sets one property of datasource as unique identifier of every orgchart node. Default is "id"
nodeContent It sets one property of datasource as text content of content section of orgchart node. Default is title
direction The available values are t2b(implies "top to bottom", it's default value), b2t(implies "bottom to top"), l2r(implies "left to right"), r2l(implies "right to left").
pan Users could pan the orgchart by mouse drag&drop if they enable this option. Default is false
depth It indicates the level that at the very beginning orgchart is expanded to. Default is 999
exportButton It enable the export button for orgchart. Default is false
exportFilename It's filename when you export current orgchart as a picture. Default is "Orgchart"
exportFileextension Available values are png and pdf. Default is "png"
extender Name of javascript function to extend the options of the underlying OrgChart JS plugin.
parentNodeSymbol Using font awesome icon to imply that the node has child nodes. Default is "fa-users"
draggable Users can drag & drop the nodes of orgchart if they enable this option. **Note**: this feature doesn't work on IE due to its poor support for HTML5 drag & drop API. Default is false
chartClass when you wanna instantiate multiple orgcharts on one page, you should add diffent classname to them in order to distinguish them. Default is ""
zoom Users could zoomin/zoomout the orgchart by mouse wheel if they enable this option. Default is false
toggleSiblingsResp Once enable this option, users can show/hide left/right sibling nodes respectively by clicking left/right arrow. Default is false
zoominLimit Users are allowed to set a zoom-in limit. Default is 7
zoomoutLimit Users are allowed to set a zoom-out limit. Default is 0.5
verticalDepth Users can make use of this option to align the nodes vertically from the specified depth.
nodeTitle It sets one property of datasource as text content of title section of orgchart node. In fact, users can create a simple orghcart with only nodeTitle option. Default is "name"
PrimeFaces Extensions Showcase - © 2011-2019, PrimeFaces: 7.0, PrimeFaces Extensions: 7.0.1, JSF: mojarra 2.3.2, Server: jetty/9.4.2.v20170220, Build time: 2019-05-21 21:46
occured!
Message:
Timestamp:
StackTrace: