I need to update a UI component when the Next button is clicked on my wizard.
Currently I am calling
RequestContext.getCurrentInstance().update("x:y");
in the OnFlowProcess() of the backing bean.
I was wondering is there is an Ajax equivalent for this ? I tried using f:ajax with the change event and rerender but it did not work.
Thanks,
Wizard question
Primefaces 6.2 Atmosphere 2.5
Red Hat Developer Studio 12.9 GA
Wildfly 14
Linux RHEL 7/CentOS 7
Red Hat Developer Studio 12.9 GA
Wildfly 14
Linux RHEL 7/CentOS 7
You can use <p:commandButton> with 'update' feature:
<p:commandButton id="filteraddButton" icon="ui-icon-plus" rendered = "#{filterMB.selectedAttr eq 'multiple' or filterMB.selectedAttr eq 'contains' ? true : false}"
update=":messageGrowl filterPanel" action="#{filterMB.addToValues}"/>
or You can use p:ajax
<p:commandButton id="filteraddButton" icon="ui-icon-plus" rendered = "#{filterMB.selectedAttr eq 'multiple' or filterMB.selectedAttr eq 'contains' ? true : false}"
update=":messageGrowl filterPanel" action="#{filterMB.addToValues}"/>
or You can use p:ajax
paulkeogh wrote:I need to update a UI component when the Next button is clicked on my wizard.
Currently I am calling
RequestContext.getCurrentInstance().update("x:y");
in the OnFlowProcess() of the backing bean.
I was wondering is there is an Ajax equivalent for this ? I tried using f:ajax with the change event and rerender but it did not work.
Thanks,
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
There is no p:ajax event="next|prev" but we could do it if there is high volume of interest from community or a PRO user needs it.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 79 guests