Home p:ajax oncomplete method is called automatically
Reply: 0

p:ajax oncomplete method is called automatically

user1344 Published in April 22, 2018, 10:03 pm

I'm using p:ajax in a primefaces slider and treenode. whenever I expand the tree, the oncomplete method is always called automatically. Can anyone tell me how to stop this automatic call

<p:tree value="#{Bean.root}" var="node" dynamic="true">
	<p:ajax event="expand"  
		oncomplete="PF('primefacesPersoDialog').initPosition()" /> 
			<p:outputPanel rendered="#{something ..}">
				<div style="styling ..">
					<h:outputText style="styling .."
							value="#{node.name }" />
								<p:outputPanel style="styling ..">
									<h:inputHidden id="aaa"
										value="#{node.selection}" />
									<p:slider for="aaa" step="1" maxValue="2"  style="styling .." > 
										<p:ajax event="slideEnd"  
											update="@this" process="@this" />

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302372 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO