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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:11:47+00:00 2026-05-31T14:11:47+00:00

After I save the components of a form I show it in a datatable.

  • 0

After I save the components of a form I show it in a datatable. Interestingly if I don’t refresh the page my datatable partially renders the values.

Here is the service class:

public EBSResponse uyeTeminatKaydet(UyeTeminat uyeTeminat, Kullanici sessionUser, String ipAdresi ){
        Session session = null;
        Transaction tx = null;              
        EBSException EE = new EBSException();
        EBSResponse ER = new EBSResponse();        
        RequestContext context = RequestContext.getCurrentInstance();
        context.addCallbackParam("saved", false);
        Date tarih = new Date();
        if (uyeTeminat.getTarih()!= null) 
            tarih = uyeTeminat.getTarih();
        else
            uyeTeminat.setTarih(tarih);

        uyeTeminat.setDurum(Boolean.TRUE);

        BigDecimal teminatDegeri=null;

        try {
            session = HibernateUtil.getSessionFactory().openSession();
            tx = session.beginTransaction();
            teminatDegeri=calculateTeminatDegeri(uyeTeminat,tarih, session);
            uyeTeminat.setTeminatDegeri(teminatDegeri);   
        session.save(uyeTeminat);
            session.flush();
        tx.commit();
            List<UyeTeminat> uyeTeminatList = getTumUyeTeminatlari(session);
            ER.setStringValue("teminatIslemleriBean.uyeTeminatKaydet.info1");
            ER.setObjectValue(uyeTeminatList);            
            context.addCallbackParam("saved", true);           
        } catch (Exception ex) {
            ex.printStackTrace();
            if (tx != null) {
                tx.rollback();
            }
            EE.setHataTipi(EBSConstants.HATA_TIPI_ERROR);
            EE.setHataMesaji("teminatIslemleriBean.uyeTeminatKaydet.err1");
            ER.setExceptionValue(EE);

        } finally {
            if (session != null && session.isOpen()) {
                session.close();
            }
        }
        return ER;
    }

Here is the backing bean:

public void uyeTeminatKaydet() {
        EBSResponse er = uyeServisi.uyeTeminatKaydet(uyeTeminat, sessionUser, ipAdresi);
        if (er.getExceptionValue() == null) {
            this.uyeTeminatList = (List<UyeTeminat>) er.getObjectValue();
            FacesUtil.addMessage(FacesMessage.SEVERITY_INFO, LocaleBean.lang.getString(er.getStringValue()));
            uyeTeminat = new UyeTeminat();
        } else {
            FacesUtil.addMessage(EBSUtils.getHataTipi(er.getExceptionValue().getHataTipi()), LocaleBean.lang.getString(er.getExceptionValue().getHataMesaji()));
        }        
    }

screen capture

Does anyone have any idea about this?

EDIT:
xhtml:

<h:outputText value="#{lang.teminatTuruAdi}: *" />
                            <h:selectOneMenu id="TeminatTuru" required="true" converter="teminatTurConverter" value="#{teminatTanimlamaIslemleriBean.teminat.teminatTur}">
                                <f:selectItem itemLabel="#{lang.seciniz}" />
                                <f:selectItems value="#{teminatTanimlamaIslemleriBean.teminatTurleriMenu}" />
                            </h:selectOneMenu>

                            <h:outputText value="#{lang.teminatKodu}: *" />
                            <p:inputText size="50" maxlength="50" required="true" value="#{teminatTanimlamaIslemleriBean.teminat.teminatKodu}"/>

                            <h:outputText value="#{lang.teminatAdi}: *" />
                            <p:inputText size="50" maxlength="50" required="true" value="#{teminatTanimlamaIslemleriBean.teminat.teminatAdi}"/>

                            <h:outputText value="#{lang.birimFiyat}: *" />
                            <p:inputText id="BirimFiyat" size="30" maxlength="50" value="#{teminatTanimlamaIslemleriBean.teminat.birimFiyati}" 
                                         style="text-align:right" onkeypress="return isNumberAndComma(event); isMaxLength(this, 14, event);" onkeyup="this.value=numberFormat(this.value,6);">
                                 <f:converter converterId="ondalikAltiHaneConverter" />
                            </p:inputText>

                            <h:outputText value="#{lang.fiyatTipi}: *" />
                            <h:selectOneMenu id="FiyatTipi" required="true" value="#{teminatTanimlamaIslemleriBean.teminat.fiyatTuru}">
                                <f:selectItem itemLabel="#{lang.seciniz}" />
                                <f:selectItems value="#{genelBilgiBean.fiyatTipiListesi}" />
                            </h:selectOneMenu>

                        </h:panelGrid>

                    <br/>
                    <p:commandButton value="#{lang.kaydetButton}" onclick="confirmationKaydet.show()"/>
                    <br/><br/>


                <p:dialog showEffect="explode" hideEffect="explode" resizable="false"
                          header="#{lang.uyari}" widgetVar="confirmationKaydet" appendToBody="true" modal="true">
                    <h:outputText value="#{lang.kayitOnayMesaji}"/>
                    <br/><br/>
                    <p:commandButton value="#{lang.evetButton}" actionListener="#{teminatTanimlamaIslemleriBean.teminatKaydet}"
                                     update="sysMsg, dTable"
                                     process="mf:formPanel"
                                     onstart="waitDialog.show(),confirmationKaydet.hide()"
                                     oncomplete="waitDialog.hide();handleComplete(xhr, status, args);" />
                    <p:commandButton value="#{lang.hayirButton}" onclick="confirmationKaydet.hide()" type="button" />
                </p:dialog>              
                </p:panel>               
                <p:panel id="dtPanel" style="width: 80%">
                    <p:dataTable style="width: 100%;" id="dTable" var="tt" value="#{teminatTanimlamaIslemleriBean.teminatList}" paginator="true" rows="20"
                                 selection="#{teminatTanimlamaIslemleriBean.selectedTeminat}" selectionMode="single" emptyMessage="#{lang.kayitBulunamadi}"
                             onRowSelectUpdate="mf:tabcontent" onRowSelectComplete="tvl();">

                    <f:facet name="header">
                        #{lang.menu_teminat}
                    </f:facet>

                        <p:column filterBy="#{tt.teminatId}" sortBy="#{tt.teminatId}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.teminatId}" />
                            </f:facet>
                            <h:outputText value="#{tt.teminatId}" />
                        </p:column>

                        <p:column filterBy="#{tt.teminatTur.teminatTuruAdi}" sortBy="#{tt.teminatTur.teminatTuruAdi}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.teminatTuruAdi}" />
                            </f:facet>
                            <h:outputText value="#{tt.teminatTur.teminatTuruAdi}" />
                        </p:column>

                        <p:column filterBy="#{tt.teminatKodu}" sortBy="#{tt.teminatKodu}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.teminatKodu}" />
                            </f:facet>
                            <h:outputText value="#{tt.teminatKodu}" />
                        </p:column>

                        <p:column filterBy="#{tt.teminatAdi}" sortBy="#{tt.teminatAdi}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.teminatAdi}" />
                            </f:facet>
                            <h:outputText value="#{tt.teminatAdi}" />
                        </p:column>

                        <p:column filterBy="#{tt.birimFiyati}" sortBy="#{tt.birimFiyati}" style="text-align:right">
                            <f:facet name="header">
                                <h:outputText value="#{lang.birimFiyat}" />
                            </f:facet>
                            <h:outputText value="#{tt.birimFiyati}" style="text-align:right">
                                <f:converter converterId="ondalikAltiHaneConverter" />
                            </h:outputText>
                        </p:column>

                        <p:column filterBy="#{tt.fiyatTuru}" sortBy="#{tt.fiyatTuru}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.fiyatTipi}" />
                            </f:facet>
                            <h:outputText value="#{tt.fiyatTuru}" />
                        </p:column>

                        <p:column filterBy="#{tt.durum == true ? lang.kullanimda : lang.kullanimDisi}" sortBy="#{tt.durum == true ? lang.kullanimda : lang.kullanimDisi}">
                            <f:facet name="header">
                                <h:outputText value="#{lang.durum}" />
                            </f:facet>
                            <h:outputText value="#{tt.durum == true ? lang.kullanimda : lang.kullanimDisi}" />
                        </p:column>

                        <f:facet name="footer">
                             #{lang.toplamKayit}: #{fn:length(teminatTanimlamaIslemleriBean.teminatList)}
                        </f:facet>
                    </p:dataTable>
                </p:panel>
  • 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-31T14:11:49+00:00Added an answer on May 31, 2026 at 2:11 pm

    there were two problems:

    1. corresponding converters in Uye and Teminat did not include the necessary fields.
    2. the correct xhtml for the same fields should have been:

    d

    <h:selectOneMenu id="uyeAdi" required="true" converter="uyeConverter" value="#{teminatTanimlamaIslemleriBean.uyeTeminat.uye}">
    <h:selectOneMenu id="teminatTuruAdi" required="true" converter="teminatTurConverter" value="#{teminatTanimlamaIslemleriBean.uyeTeminat.teminat.teminatTur}">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight/RIA service application and in that, after I save the data
I don't know if this is possible. I want to save a number after
After defining variables, functions, etc., can you save what you have done on the
I am trying to save a photo with a button to camera roll after
I am looking for where I should save my app stuff, and after a
Yesterday I asked the question on how I should save my files. After some
I'm using Eclipse 3.7 on Ubuntu. Often, after editing a file, I cannot save
In Rails 3, when you do activeRecord.save does the transaction commit or is when
I am in the process of developping a game, and after two months of
I am working on a program which consists of two parts Service component will

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.