Tree selection Checkbox with Ajax select event

UI Components for JSF
Post Reply
santosguiii
Posts: 3
Joined: 10 Jul 2014, 20:35

15 Jul 2014, 17:23

I have a component of p: tree with checkbox selection on and I need a ajax event for selection, it is possible? For example in the showcase selection is only for the single mode.

Code: Select all

	<p:tree value="#{treePageBean.root}" var="node"
			selectionMode="checkbox" selection="#{treePageBean.selectedNodes}">

			<p:ajax event="select" listener="#{treePageBean.event()}"/>

			<p:treeNode icon="ui-icon-note">
				<h:outputText value="#{node}" />
			</p:treeNode>
		</p:tree>

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

16 Jul 2014, 09:01

Look at user guide 480 page

You can find select,multiple and checkbox events are available for Tree component selection.
Last edited by sudheer on 16 Jul 2014, 10:02, edited 1 time in total.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

16 Jul 2014, 09:46

Were available must become are available I think

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

16 Jul 2014, 10:02

kukeltje wrote:Were available must become are available I think
Yeah,Corrected.Thanks ;)
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

santosguiii
Posts: 3
Joined: 10 Jul 2014, 20:35

18 Jul 2014, 16:51

Thanks ;)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests