Menu

Dialog not hiding after editing

2014-06-23
2014-08-05
  • Marcel Vieira

    Marcel Vieira - 2014-06-23

    Hi Kay!

    I've noted that, after clicking on Save-Yes button, when editing (Edit.xhtml) a register, the Dialog doesn't hide, as it did before in the other versions.
    What I've done was to put a onsuccess="PF('OrcamentoEditDialog').hide()" as above:

    <p:commandbutton actionlistener="#{orcamentoController.save}" value="#{orcBundle.Save}" update="display,:OrcamentoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,OrcamentoEditDialog);" onsuccess="PF('OrcamentoEditDialog').hide()">
    <p:confirm header="#{orcBundle.ConfirmationHeader}" message="#{orcBundle.ConfirmEditMessage}" icon="ui-icon-alert">
    </p:confirm></p:commandbutton>

    Hope it helps.

     
  • Anonymous

    Anonymous - 2014-06-23

    Did it not have the PF() prefix? Maybe I forgot one line in the template. Is this the Edit.xhtml template we're talking about?

    EDIT: This is me, but forgot to log in ;-)

     

    Last edit: Kay Wrobel 2014-06-23
  • Anonymous

    Anonymous - 2014-07-06

    I have the same problem with dialog for creating and editing. Another issue is the growl does not appear

     
  • Kay Wrobel

    Kay Wrobel - 2014-07-07

    Hi. I think the growl not appearing might be related to Edit and Create not closing the dialog. I will investigate this.

     
  • Kay Wrobel

    Kay Wrobel - 2014-07-07

    Hi Marcel. Please check out ticket [#18] for the issue and a temporary workaround while I'm working on a bug fix.

     

    Related

    Tickets: #18

  • Kay Wrobel

    Kay Wrobel - 2014-07-07

    Hi Marcel: [40037adf]
    Please download 0.27.2.

     

    Related

    Discussion: 40037adf

  • Anonymous

    Anonymous - 2014-07-18

    Kay, I run CRUD app on jdk 8, I have problem with dialog for creating and editing.
    Please see the attachment image.

    nbpfcrudgen-0.27.2-8.0_patch2-impl
    JDK 8, PrimeFaces 5, TomEE1.6

     
  • Anonymous

    Anonymous - 2014-07-19

    I tried both jdk 7 and jdk 8 and have the same dialog problem.

    Followed video tutorial: http://www.youtube.com/watch?v=89s6zhI6sK0&feature=youtu.be
    Netbeans 8, TomEE1.6, PrimeFaces 5, Java EE 6, JSF 2.1, jkd 7/8.

     
    • Kay Wrobel

      Kay Wrobel - 2014-08-05

      There was an issue in one of my previous versions of the generator. Are you using the latest version of the generator?

       

Anonymous
Anonymous

Add attachments
Cancel