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 6015205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:48:10+00:00 2026-05-23T02:48:10+00:00

I’m working with Primefaces.My functionality is to display the records in a datatable with

  • 0

I’m working with Primefaces.My functionality is to display the records in a datatable with primefaces inline editing .Here we have an “Add” button which displays a dialog to enter new record.After entering the values and click on “Save” button,the record is inserted and the datatable is updated with the record.
My problem is, when i click on “Add” button for the second time the dialog box is not opening.Here is my code.

        <h:form id="myForm" prependId="false">
    <p:dataTable  var="client" id="clientTable" value="#{clientView.clientModelList}" paginatorPosition="top"  paginator="true" rows="10"  
             paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
             rowsPerPageTemplate="10,20,25" rowEditListener="#{clientView.rowEditListener}" onRowEditUpdate="growl" >

            <p:column style="width:60px;">              
            <p:rowEditor/> 
            <h:commandButton  style="padding-left:5px;" image="/resources/images/delete.jpeg" styleClass="spa"  value="delete" immediate="true" actionListener="#{clientView.delete}" >
                <f:attribute name="username" value="#{client}" />
            </h:commandButton>

            </p:column>

            <p:column>

                    <f:facet name="header">
                        <h:outputText value="#{myLoginBean.multilangMap['everis.client.idCliente']}" />
                    </f:facet>
                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText value="#{client.codCliente}" />
                        </f:facet>
                        <f:facet name="input">
                            <h:inputText required="true" requiredMessage="#{msg.idClienteEmpty}" maxlength="80"  value="#{client.codCliente}" />
                        </f:facet>
                    </p:cellEditor>
            </p:column>

            <p:column>

                <f:facet name="header">
                    <h:outputText value="#{myLoginBean.multilangMap['everis.client.desCliente']}" />
                </f:facet>

                <p:cellEditor>

                    <f:facet name="output">
                        <h:outputText value="#{client.desCliente}" />
                    </f:facet>
                    <f:facet name="input">
                        <h:inputText required="true" requiredMessage="#{msg.desClienteEmpty}" maxlength="255"  value="#{client.desCliente}" />
                    </f:facet>

                </p:cellEditor>
            </p:column>


    </p:dataTable>
        </div>
        <div class="divButPosition">

        <h:panelGroup id="buttonPanel">

            <p:commandButton id="buttons" value="Add" actionListener="#{clientView.addEmptyClient}"
            async="true" update="buttonPanel,dlgForm:table"  rendered="#{!clientView.addNewRow}" oncomplete="alert('complete');clientDialog.show();" />

        </h:panelGroup>

    </div>
    </h:form>   
    <p:growl id="growl" showDetail="false" />  
<p:dialog id="clientDialog"  header="Client Detail"  widgetVar="clientDialog" resizable="false" width="500" showEffect="explode" hideEffect="explode" modal="false" closable="false">
    <h:form id="dlgForm" > 

<h:dataTable var="newclient" id="table" value="#{clientView.newClient}">
    <h:column>
        <f:facet name="header">
            <h:outputText value="#{myLoginBean.multilangMap['everis.client.idCliente']}" />
        </f:facet>
        <h:inputText value="#{newclient.codCliente}" required="true" requiredMessage="#{msg.idClienteEmpty}"  maxlength="80"/>
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText value="#{myLoginBean.multilangMap['everis.client.desCliente']}" />
        </f:facet>
        <h:inputText value="#{newclient.desCliente}" required="true" requiredMessage="#{msg.desClienteEmpty}"   maxlength="255"/>
    </h:column>
</h:dataTable> 
<p:commandButton value="everis.save"  actionListener="#{clientView.saveClient}" async="true" update="growl,buttonPanel,clientTable" oncomplete="handleRequest(args ,document.getElementById('clientDialog'))" />
<p:commandButton value="#{myLoginBean.multilangMap['everis.cancel']}" immediate="true" update="buttonPanel,table" async="true"  actionListener="#{clientView.cancelClient}" oncomplete="clientDialog.hide();" />
    </h:form>  
</p:dialog> 

Thanks alot for every one.

  • 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-05-23T02:48:11+00:00Added an answer on May 23, 2026 at 2:48 am

    Now correct me if i’m wrong, but if you click save on the dialog you never close it? I won’t know if it will help but you can try atleast

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.