hello,
I am using p:commandButton inside p:wizard, but it is not working. The code as follows:
<p:wizard style="height: 30em; width: 70 em;" id="myWzrd" widgetVar="myWizard"
flowListener="#{myBean.onFlowProcess}" showNavBar="false" customUI="true">
<p:tab id="tab1" title="${msg.my_wizard_step_1_title}">
<p:panel style="height: 30em; width: 70 em;" header="${msg.new_statement_view_wizard_step_1_heading}">
<h:form prependId="false" id="myForm">
<div id="wizard-button" style="height: 31px;">
<p:commandButton value="+" id="expandTree" update="wizardContent" actionListener="#{myBean.expandTree}" styleClass="button" style="width: 2em;"/> <span class="button"></span><span style="width: 1em;"></span>
<p:commandButton value="-" id="collapseTree" update="wizardContent" actionListener="#{myBean.collapseTree}" styleClass="button" style="width: 2em;"/> <span class="button"></span>
</div>
<div id="wizarddecisiontree">
<p:tree id="wizardContent" dynamic="true" cache="false" value="#{myBean.currentTree}" var="node"
selection="#{myBean.selectedNodes}" selectionMode="checkbox" propagateSelectionUp="false" propagateSelectionDown="false">
<p:treeNode>
<p:treeNode>
<h:outputText value="#{node}" />
</p:treeNode>
</p:treeNode>
</p:tree>
</div>
</h:form>
</p:panel>
</p:tab>
</p:wizard>
but when I click the button, no action happens.
could you help me about that please.
p:commandButton is not working inside p:wizard
try adding process=@this
like
like
Code: Select all
<p:commandButton
value="Add Site 1"
update="editor"
title="Remover"
action="#{jobEngine2MB.addSiteType1}"
process="@this" />
-
- Information
-
Who is online
Users browsing this forum: No registered users and 45 guests