Wizard question

UI Components for JSF
Post Reply
paulkeogh
Posts: 45
Joined: 04 Apr 2013, 23:00
Location: Dublin, Ireland
Contact:

11 Apr 2013, 11:57

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,
Primefaces 6.2 Atmosphere 2.5
Red Hat Developer Studio 12.9 GA
Wildfly 14
Linux RHEL 7/CentOS 7

uzunkonak
Posts: 1
Joined: 29 Mar 2013, 16:26

11 Apr 2013, 12:36

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




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,

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Apr 2013, 12:49

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.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 79 guests