title: Data Modal of primefaces not showing refresh data form backing bean
body: <p>I am new to primefaces and my english is not that much good. I have generated a datatable and when i click on data table view button a model diloag box will appear with backing bean data. My problem is my diloag is not showing current data from backing bean.but when i refresh the page by going to url it will show my previous data. I am adding mu code here with backing bean please help</p>
  
  <p>My .xhtm is </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"&gt;
  
      &lt;ui:composition template="/layouts/BasicTemplate.xhtml"&gt;
      &lt;ui:define name="content"&gt;
  
        &lt;div class="container"&gt;
        &lt;script type="text/javascript"&gt;
  
        alert('hi');
  
        &lt;/script&gt;
  
          &lt;h:form prependId="false" id="mainform"&gt;
  
              &lt;p:dataTable var="test" value="#{examinationFormBean.candidateList}" paginator="true" rows="10" id="datatable"&gt;
  
                  &lt;p:column headerText="Id"&gt;
                      &lt;h:outputText value="#{test.id}" /&gt;
                  &lt;/p:column&gt;
  
                  &lt;p:column headerText="Name Of Candidate"&gt;
                      &lt;h:outputText value="#{test.user.name}" /&gt;
                  &lt;/p:column&gt;
  
                  &lt;p:column headerText="Mobile No "&gt;
                      &lt;h:outputText value="#{test.user.mobileNo}" /&gt;
                  &lt;/p:column&gt;
  
                  &lt;p:column headerText="E-mail Address"&gt;
                      &lt;h:outputText value="#{test.user.email}" /&gt;
                  &lt;/p:column&gt;
  
                   &lt;p:column headerText="View/Action"&gt;
                          &lt;p:commandLink value="View"   action="#      {examinationFormBean.readFormStatus(test.id)}"  oncomplete="PF('test').show()"&gt;
                          &lt;/p:commandLink&gt;
                   &lt;/p:column&gt;
  
               &lt;/p:dataTable&gt;
              &lt;/h:form&gt;
  
          &lt;/div&gt;
  
  
  
           &lt;p:dialog  widgetVar="test"   id="dialog" height="600" width="760"&gt;
  
              &lt;h:form class="form-horizontal" id="data"&gt;
                &lt;div class="row" &gt;
                    &lt;p:growl id="growl" sticky="true" showDetail="true" /&gt;
                     &lt;p:panel header="Examination Details" id="data"&gt;
                      &lt;h:panelGrid columns="2" cellpadding="4"  border="1"  id="panael1" style="text-align: left;color: #333399;" width="760"&gt;
  
                              &lt;h:outputText   value="#{msg['elicense.examinationform.personal.proposeofexam']}"/&gt;
                              &lt;h:outputText id="propExam" value="#{examinationFormBean.examination.name}"/&gt;
  
                              &lt;h:outputText  value="#{msg['elicense.examinationform.personal.classofcertificates']}" /&gt;
                              &lt;c:if test="#{examinationFormBean.elementaryPrinciples==true}"&gt;
                                     Elemetry Principle
                               &lt;/c:if&gt;
  
                              &lt;!-- &lt;h:outputText id="grid"  value="Elemetry Principle" rendered="#{examinationFormBean.elementaryPrinciples==true}"/&gt;  --&gt;
  
                              &lt;c:if test="#{examinationFormBean.wiringForSystem==true}"&gt;
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                               &lt;h:outputText id="data1" value="Wiring for System not Exceeding 250 Volts"/&gt;
  
                              &lt;/c:if&gt;
  
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data2" value="D. C. Apparatus not Exceeding 650 Volts" rendered="#{examinationFormBean.dcApparatus==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data3" value="A. C. Apparatus not Exceeding 650 Volts" rendered="#{examinationFormBean.acApparatus==true}"  /&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data4" value="Underground Cables Voltage upto 1100 Volts" rendered="#{examinationFormBean.undergroundCable1100Volts==true}"/&gt; 
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data5" value="Underground Cables Voltage upto 11900 Volts" rendered="#{examinationFormBean.undergroundCable11900Volts==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data6" value="Underground Cables Voltage exceeding 33000 Volts" rendered="#{examinationFormBean.undergroundCable3300Volts==true}"/&gt;   
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data7" value="Installation exceeding 650 Votts" rendered="#{examinationFormBean.installationExceding650Volts==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data8" value="Overhead lies Upto 650 Volts" rendered="#{examinationFormBean.overHeadLiesupto650Volts==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data9" value="Overhead lies Upto 33000 Volts" rendered="#{examinationFormBean.overHeadLiesupto3300Volts==true}"/&gt;     
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data10" value="Overhead lies Exceeding 33000 Volts" rendered="#{examinationFormBean.overHeadLiesExceeding3300Volts==true}"/&gt;  
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                             &lt;h:outputText id="data11" value="Mining Installation(Bellow Ground)" rendered="#{examinationFormBean.minigInstallation==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;    
                              &lt;h:outputText id="data12" value="Mining Installation(Bellow Ground)" rendered="#{examinationFormBean.minigInstallation==true}"/&gt;    
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data13" value="Wiring for System not exceeding 650 Volts" rendered="#{examinationFormBean.wiringForSystemUpto650Volts==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data14" value="Electric Lt" rendered="#{examinationFormBean.electricIt==true}"/&gt;
  
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data15" value="Electrict Signs" rendered="#{examinationFormBean.electricSigns==true}"/&gt;
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data16" value="Medium Pressure Indian Electricity Rules 1959" rendered="#{examinationFormBean.mediumPressure==true}"/&gt;
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data17" value="Motor wiring(Including Generators)" rendered="#{examinationFormBean.motorWiring==true}"/&gt;
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data18" value="Overhead Lines(LT)" rendered="#{examinationFormBean.ltOverHeadLines==true}"/&gt;
  
                               &lt;p:spacer&gt;&lt;/p:spacer&gt;
                              &lt;h:outputText id="data19" value="Pepar Insulated cables(laying and joining)" rendered="#{examinationFormBean.paperInsulatedCables==true}"/&gt;
  
                              &lt;h:outputText value="#{msg['elicense.examinationform.examination.centerofexamination']}" /&gt;
                              &lt;h:outputText id="examcenterid" value="#{examinationFormBean.center.name}" /&gt;
  
                              &lt;h:outputText value="#{msg['elicense.examinationform.examination.languagepaper']}" /&gt;
                              &lt;h:outputText id="language" value="#{examinationFormBean.language.name}" /&gt;
  
                          &lt;/h:panelGrid&gt;
                      &lt;/p:panel&gt;
  
  
  
                      &lt;!-- personal details --&gt;
  
                          &lt;ui:include src="/pages/personalView.xhtml" /&gt;
  
  
  
                      &lt;!-- Education Qualification --&gt;
  
                      &lt;p:panel header="Education Qualification"&gt;
  
                          &lt;ui:include src="/pages/educationalQualificationsView.xhtml" /&gt;
  
  
                      &lt;/p:panel&gt;
  
  
                      &lt;!-- Certificate or Permit Details --&gt;
  
  
                      &lt;p:panel header="Previous Certificate Details"&gt;
                          &lt;h:panelGrid columns="2" style="text-align: left;color: #333399;"  width="760"&gt;
  
                              &lt;h:outputText   value="#{msg['elicense.examinationform.academic.premitno']}" /&gt;
                              &lt;h:outputText id="permitid" value="#{examinationFormBean.previousCertificate.previousPermitNo}" /&gt;
  
                              &lt;h:outputText   value="#{msg['elicense.examinationform.academic.certificate']}" /&gt;
                              &lt;h:outputText id="certificateid"    value="#{examinationFormBean.previousCertificateNo}" /&gt;
  
                              &lt;h:outputText   value="#{msg['elicense.examinationform.academic.otherstatepermitno']}" /&gt;
                              &lt;h:outputText id="otherstatepermitid"   value="#{examinationFormBean.otherStatePermitNo}" /&gt;
  
                              &lt;h:outputText   value="#{msg['elicense.examinationform.academic.otherstatecertificateno']}" /&gt;
                              &lt;h:outputText id="otherstatecertificateid"  value="#{examinationFormBean.otherStateCertificateNo}" /&gt;
  
                              &lt;!-- &lt;h:outputText
                                  value="#{msg['elicense.examinationform.academic.dateofissue']}" /&gt;
                              &lt;h:outputText id="compopupforprivious"
                                  value="#{examinationFormBean.previousRegistrationDate}" /&gt;
                   --&gt;
                          &lt;/h:panelGrid&gt;
                      &lt;/p:panel&gt;
  
  
                      &lt;!-- Experience Details --&gt;
  
                      &lt;p:panel header="Experience Details"&gt;
                          &lt;ui:include src="/pages/experienceView.xhtml" /&gt;
                      &lt;/p:panel&gt;
  
  
  
                      &lt;!-- Treasury Challan Details --&gt;
  
                      &lt;ui:include src="/pages/treasuryChallanView.xhtml" /&gt;
  
  
                      &lt;!-- Attachment --&gt;
  
                      &lt;p:panel header="Upload necessary Document"&gt;
  
                          &lt;h:panelGrid columns="2" style="text-align: left;color: #333399;" width="760" border="1"&gt;
  
                              &lt;h:outputText value="#{msg['elicense.examinationform.uplod.document']}" /&gt;
  
                              &lt;p:graphicImage value="#{examinationFormBean.candidatePhoto}" /&gt;
  
                              &lt;h:outputText  value="#{msg['elicense.examinationform.uplod.sign']}" /&gt;
                              &lt;p:graphicImage value="#{examinationFormBean.signature}"    mode="simple" disabled="false" label="Candidates Signature " /&gt;
                              &lt;p:spacer&gt;&lt;/p:spacer&gt;
                               &lt;p:messages id="messageid"/&gt;
  
  
  
  
  
                          &lt;h:outputText value="Action :" class="alignment"/&gt;
  
                           &lt;p:selectOneRadio id="console" value="#{examinationFormBean.action}" required="true" label="Action"&gt;
                              &lt;f:selectItem itemLabel="Accept" itemValue="CD3" /&gt;
                              &lt;f:selectItem itemLabel="Reject" itemValue="CD4" /&gt;
                           &lt;/p:selectOneRadio&gt;
  
                          &lt;!-- &lt;h:outputLabel value="Comment:"&gt;&lt;/h:outputLabel&gt;
                          &lt;h:inputText id="compid"    value="#{examinationFormBean.comment}" /&gt; --&gt;
                           &lt;p:spacer&gt;&lt;/p:spacer&gt;
  
                            &lt;p:commandButton value="Proceed to Zonal Electrical Inspector&gt;&gt;"
                                action="#{examinationFormBean.saveFormStatus()}"  update="@this,messageid,data"   process="data"  oncomplete="if (args &amp;amp;&amp;amp; !args.validationFailed) PF('test').hide()" &gt;
  
                                &lt;f:ajax  update="datatable"/&gt;
                            &lt;/p:commandButton&gt;
  
                          &lt;/h:panelGrid&gt;
  
                      &lt;/p:panel&gt;
  
                  &lt;/div&gt;
          &lt;/h:form&gt;   
  
      &lt;/p:dialog&gt;
  
  
  
      &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and my backing bean is :</p>
  
  <pre><code>package brahmaputra.bohniman.elicense.core.managedbeans;
  
  import java.util.ArrayList;
  import java.util.Date;
  import java.util.List;
  
  import javax.annotation.PostConstruct;
  import javax.faces.application.FacesMessage;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ManagedProperty;
  import javax.faces.bean.SessionScoped;
  import javax.faces.context.FacesContext;
  import org.primefaces.event.FlowEvent;
  import org.primefaces.model.UploadedFile;
  
  import brahmaputra.bohniman.elicense.core.models.Center;
  import brahmaputra.bohniman.elicense.core.models.CertificateClass;
  import brahmaputra.bohniman.elicense.core.models.Education;
  import brahmaputra.bohniman.elicense.core.models.Examination;
  import brahmaputra.bohniman.elicense.core.models.ExaminationDetails;
  import brahmaputra.bohniman.elicense.core.models.Experience;
  import brahmaputra.bohniman.elicense.core.models.FormStatus;
  import brahmaputra.bohniman.elicense.core.models.Language;
  import brahmaputra.bohniman.elicense.core.models.PersonalDetails;
  import brahmaputra.bohniman.elicense.core.models.PreviousCertificate;
  import brahmaputra.bohniman.elicense.core.models.TreasuryChallan;
  import brahmaputra.bohniman.elicense.core.models.User;
  import brahmaputra.bohniman.elicense.core.models.Wizard;
  import brahmaputra.bohniman.elicense.core.services.DDUtilService;
  import brahmaputra.bohniman.elicense.core.services.ExaminationDetailsService;
  
  @ManagedBean
  @SessionScoped
  
  
  public class ExaminationFormBean{
  
  
  //To Read Form Staus
  public void readFormStatus(Long id)
  {
  
      System.out.println("id is "+id);
  
  
      //To display formstatus
       formStatus  = examinationDetailsService.readFormStatusIdById(id);
  
      //To display examination details
      ExaminationDetails examinationDetails=examinationDetailsService.readExaminationDetails(id);
  
  
      setExamination(examinationDetails.getExamination());
      setCenter(examinationDetails.getCenter());
      setLanguage(examinationDetails.getLanguage());
      setAcApparatus(examinationDetails.getAcApparatus());
      setDcApparatus(examinationDetails.getDcApparatus());
      setElectricIt(examinationDetails.getElectricIt());
      setElectricSigns(examinationDetails.getElectricSigns());
      setElementaryPrinciples(examinationDetails.getElementaryPrinciples());
      setHighPressure(examinationDetails.getHighPressure());
      setHtOverHeadLines(examinationDetails.getHtOverHeadLines());
      setInstallationExceding650Volts(examinationDetails.getInstallationExceding650Volts());
      setLtOverHeadLines(examinationDetails.getLtOverHeadLines());
      setMediumPressure(examinationDetails.getMediumPressure());
      setMotorWiring(examinationDetails.getMotorWiring());
      setMinigInstallation(examinationDetails.getMinigInstallation());
      setOtherInstallation(examinationDetails.getOtherInstallation());
      setOverHeadLiesExceeding3300Volts(examinationDetails.getOverHeadLiesExceeding3300Volts());
      setOverHeadLiesupto3300Volts(examinationDetails.getOverHeadLiesupto3300Volts());
      setOverHeadLiesupto650Volts(examinationDetails.getOverHeadLiesupto3300Volts());
      setPaperInsulatedCables(examinationDetails.getPaperInsulatedCables());
      setWiringForSystem(examinationDetails.getWiringForSystem());
      setWiringForSystemUpto650Volts(examinationDetails.getWiringForSystemUpto650Volts());
  
      System.out.println("Examination"+examinationDetails.getExamination().getName());
  
  
  
  
      //To display personal info
      personalDetails=examinationDetailsService.readPersonalDetailsById(id);
      personalBean.setFatherName(personalDetails.getFatherName());
      personalBean.setCitizenshipReason(personalDetails.getCitizenshipReason());
      personalBean.setCitizenshipValue(personalDetails.getOtherReason());
      personalBean.setNationality(personalDetails.getNationality());
      personalBean.setDateofBirth(personalDetails.getDateOfBirth());
      personalBean.setPermanentAddressLine1(personalDetails.getPermanentAddressLine1());
      personalBean.setPermanentAddressLine2(personalDetails.getPermanentAddressLine2());
      personalBean.setPermanentDistrict(personalDetails.getPermanentDistrict());
      personalBean.setPermanentPinCode(personalDetails.getPermanentPincode());
      personalBean.setPermanentState(personalDetails.getPermanentState());
      personalBean.setPresentAddressLine1(personalDetails.getPresentAddressLine1());
      personalBean.setPresentAddressLine2(personalDetails.getPermanentAddressLine2());
      personalBean.setPresentDistrict(personalDetails.getPresentDistrict());
      personalBean.setPresentState(personalDetails.getPresentState());
      personalBean.setPresentPinCode(personalDetails.getPresentPincode());
  
      //to display Educational qualification
      Education education=examinationDetailsService.readEducationById(id);
      educationalQualificationsBean.setInstituteName(education.getInstituteName());
      educationalQualificationsBean.setCertificateNumber(education.getCertificateNo());
      educationalQualificationsBean.setDegree(education.getDegree());
  
  
  
      //To display previous certificate display
      previousCertificate=examinationDetailsService.readCertificateById(id);
      this.setPreviousCertificateNo(previousCertificate.getPreviousCertificateNo());
      this.setPreviousPermitNo(previousCertificate.getPreviousPermitNo());
      this.setOtherStateCertificateNo(previousCertificate.getOtherStateCertificateNo());
      this.setOtherStatePermitNo(previousCertificate.getOtherStatePermitNo());
  
      //To display experiance details
      Experience experience=examinationDetailsService.readExperianceById(id);
      experienceBean.setCommenceDateOne(experience.getCommenceDateOne());
      experienceBean.setCommenceDateThree(experience.getCommenceDateThree());
      experienceBean.setCommenceDateTwo(experience.getCommenceDateTwo());
      experienceBean.setOrganisationNameOne(experience.getOrganisationNameOne());
      experienceBean.setOrganisationNameThree(experience.getOrganisationNameThree());
      experienceBean.setOrganisationNameTwo(experience.getOrganisationNameTwo());
      experienceBean.setTerminatiDateOne(experience.getTerminatiDateOne());
      experienceBean.setTerminatiDateThree(experience.getTerminatiDateThree());
      experienceBean.setTerminationDateTwo(experience.getTerminationDateTwo());
  
      //To disply treasury challan details
      TreasuryChallan treasuryChallan =new TreasuryChallan();
      treasuryChallan=examinationDetailsService.readTreasuryChallanById(id);
      treasuryChallanBean.settChallanAmount(treasuryChallan.getAmount());
      treasuryChallanBean.settChallanBank(treasuryChallan.getBankName());
      treasuryChallanBean.settChallanBankBranch(treasuryChallan.getBranchName());
      treasuryChallanBean.settChallanDate(treasuryChallan.getDate());
      treasuryChallanBean.settChallanName(treasuryChallan.getTreasuryName());
      treasuryChallanBean.settChallanNo(treasuryChallan.getChallanNo());
  
  
  
  }
  
  
  //To save application status
  public String saveFormStatus()
  {
      System.out.println("hiiii"+this.getComment());
  
      formStatus.setStatus(getAction());
      examinationDetailsService.saveFormStatus(formStatus);
  
      /* FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Car Selected", "Id:");
  
       FacesContext.getCurrentInstance().addMessage(null, message);*/
  
      System.out.println("Hi page successfully save"+getAction());
      this.setAction("");
  
  
      //resetForm();
      return  "/pages/AdminView.xhtml";
  
  }
  
  
  
  
  
  
  // To Reset the Form
  public String resetForm()
  {
  
      personalBean.setApplicantName(null);
      personalBean.setCitizenshipReason(null);
      personalBean.setCitizenshipValue(null);
      personalBean.setDateofBirth(null);
      personalBean.setFatherName(null);
      personalBean.setNationality(null);
      personalBean.setPermanentAddressLine1(null);
      personalBean.setPermanentAddressLine2(null);
      personalBean.setPermanentDistrict(null);
      personalBean.setPermanentPinCode(null);
      personalBean.setPermanentState(null);
      personalBean.setPresentAddressLine1(null);
      personalBean.setPresentAddressLine2(null);
      personalBean.setPresentDistrict(null);
      personalBean.setPresentState(null);
      personalBean.setPresentPinCode(null);
      personalBean.setCopyAddress(false);
  
      educationalQualificationsBean.setDegreeCertificateNumber(null);
      educationalQualificationsBean.setDegreeSchoolName(null);
      educationalQualificationsBean.setHsCertificateNumber(null);
      educationalQualificationsBean.setHslcCertificateNumber(null);
      educationalQualificationsBean.setHslcSchoolName(null);
      educationalQualificationsBean.setHsSchoolName(null);
      educationalQualificationsBean.setPgCertificateNumber(null);
      educationalQualificationsBean.setPgInstituteName(null);
      educationalQualificationsBean.setTechnical(null);
      educationalQualificationsBean.setTechnicalCertificateNumber(null);
  
      experienceBean.setCommenceDateOne(null);
      experienceBean.setCommenceDateThree(null);
      experienceBean.setCommenceDateTwo(null);
      experienceBean.setOrganisationNameOne(null);
      experienceBean.setOrganisationNameThree(null);
      experienceBean.setOrganisationNameTwo(null);
      experienceBean.setTerminatiDateOne(null);
      experienceBean.setTerminatiDateThree(null);
      experienceBean.setTerminationDateTwo(null);
  
      treasuryChallanBean.settChallanAmount(null);
      treasuryChallanBean.settChallanBank(null);
      treasuryChallanBean.settChallanBankBranch(null);
      treasuryChallanBean.settChallanDate(null);
      treasuryChallanBean.settChallanName(null);
      treasuryChallanBean.settChallanNo(null);
      treasuryChallanBean.settChallanPaid(null);
  
      examination=null;
      center=null;
      language=null;
      previousCertificate=null;
      previousPermitNo=null;
      previousCertificateNo=null;
      otherStatePermitNo=null;
      otherStateCertificateNo=null;
      previousRegistrationDate=null;
      elementaryPrinciples = false;
      wiringForSystem = false;
      dcApparatus = false;
      acApparatus = false;
      undergroundCable1100Volts = false;
      undergroundCable11900Volts = false;
      undergroundCable3300Volts = false;
      installationExceding650Volts = false;
      overHeadLiesupto650Volts = false;
      overHeadLiesupto3300Volts = false;
      overHeadLiesExceeding3300Volts = false;
      minigInstallation = false;
      wiringForSystemUpto650Volts = false;
      electricIt = false;
      electricSigns = false;
      mediumPressure = false;
      motorWiring = false;
      ltOverHeadLines = false;
      paperInsulatedCables = false;
      highPressure = false;
      htOverHeadLines = false;
      otherInstallation = false;
      examinationPart.clear();
  
      return  "/pages/examinationForm.xhtml";
  
  
  }
  
  
  
  
  }
  </code></pre>
  
  <p>Am adding the code which is responsible for my dilog box .I am new to stackoverflow so i am not amble to place my code. My bean is in session scope and the method read readFormStatus(id) getting data from database and am setting data on my backing bean.</p>
  
  <p>Please help , Thanks in advance</p>