Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8911387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:55:49+00:00 2026-06-15T03:55:49+00:00

I have PrimeFaces p:wizard inside p:dialog component. I’m using the custom buttoms for next/previous

  • 0

I have PrimeFaces p:wizard inside p:dialog component. I’m using the custom buttoms for next/previous step:

<p:commandButton value="Weiter" onclick="wiz.next()">

I want to change the element of the dialog, which contains the wizard, in my case it is the dialog header:

<p:dialog id="dialogRespWizard"
        header="#{wizardBean.header}"

I’ve changed my code to:

<p:commandButton value="Weiter" onclick="wiz.next()" update="dialogRespWizard">

But the whole dialog is dissapearing after choosing next step.

So, how can I refresh the wizard ‘surrounding’ on the step change?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:55:50+00:00Added an answer on June 15, 2026 at 3:55 am

    Regarding your question:

    The dialog disappears because you update your whole dialog (means that the whole dialog element will be dropped from the HTML page, and will get replaced by a new dialog HTML element received from the server), that is intentional. If you want to update something inside your dialog you need to make some kind of XXXpanel inside your dialog and update that XXXpanel (wrapping HTML dialog element will be the samel, just the content of the dialog gets replaced with a new content received from the server):

    <p:dialog id="dialogWizard" header="something">
      <p:outputPanel id="outputPanelWizard">
        // a lot of stuff which needs to get updated
      </p:outputPanel>
      <p:commandButton .... update="outputPanelWizard" />
    </p:dialog>
    

    … and your dialog won’t hide again. Therefore you need to put the header into a facet which you already have done, one step into the right direction.

    To your self-answered question:

    The “blinking” is present because you use onclick and update. Onclick gets executed as soon as the user clicks on the p:commandButton. But the update happens sometimes later in the cycle (when the browser received the response from the server). Therefore the wizard switches with wiz.next() and afterwards the update happens on the dialog header. You could just use oncomplete instead of onclick and the switch will happen after the browser receives the response from the server and after the dialog gets updated -> no more “blinking”.
    Some other solutions exist as well, e.g.

    Don’t use onclick/oncomplete/update on the p:commandButton, instead handle everything in the action/*actionListener* with the RequestContext as seen here RequestContext Showcase.

    this.header = "my new header";
    context.execute("wiz.next();"); 
    context.update("outputPanelWizard");  
    

    The advantage is IMHO, that you can evaluate the form (the user input) and switch to wiz.next() if it is applicable or not. When the user input is not satisfying you can stay on the same page, just don’t call wiz.next(). Same applies to the header, you can update is in the backing bean in respect to the user input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.
I'm trying to create a custom component to extend PrimeFaces. I have a simple
I am using Primefaces google map component. I have some markers and info windows
I have the following button and panel in primefaces: <p:commandButton value=Submit ajax=true actionListener=#{myBean.search} update=resultPanel
I am using primefaces 3.2. I have prepared wizard which insert user information on
I have a problem with using primeface's wizard component and the core selectOneRadio. My
I'm using primefaces layout component and have a dropdown List in north layout unit.
I have correctly set up a Push server using PrimeFaces p:push component (using a
I'm using Primefaces 3.3.1 and have a <p:selectOneMenu> where I'm selecting a new value.
I am using the Primefaces wizard component. On one tab I am dynamically creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.