list; private TestController(){ l..." />

JQuery loaded JSF page doesn't update parent page (Primefaces)?

"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!

Heading instead you are loading using jQuery(..).load() why don't you using inside the div element div id="content"> list; private TestController(){ list = new ArrayList(); //populate data, should be from database list. Add(new Company("A", new Date(), new Date(), "1")); list. Add(new Company("B", new Date(), new Date(), "0")); list.

Add(new Company("C", new Date(), new Date(), "1")); insertMode = false; } public String prepareAdd(){ company = new Company(); setInsertMode(true); return ""; } public String addCompany() { FacesContext facesContext = FacesContext. GetCurrentInstance(); try { //companyService. AddCompany(companyName, startDate, endDate, type); //loadCompanyList(); list.

Add(company); //change to add to database //load company list here setInsertMode(false); } catch (Exception e) { facesContext. AddMessage("companyForm", new FacesMessage(e.getMessage())); } return ""; } /** * @return the list */ public List getList() { return list; } /** * @return the company */ public Company getCompany() { return company; } /** * @param company the company to set */ public void setCompany(Company company) { this. Company = company; } /** * @return the insertMode */ public boolean isInsertMode() { return insertMode; } /** * @param insertMode the insertMode to set */ public void setInsertMode(boolean insertMode) { this.

InsertMode = insertMode; } }.

Heading instead you are loading using jQuery(..).load() why don't you using inside the div element. You can just set isInsertMode() method to return either true or false. So you will be in the same view page.

Updating the datatable from your add page may work. In this case please review this one also the Backing bean public class CompanyBean { private Company company; private boolean insertMode; private List list; private TestController(){ list = new ArrayList(); //populate data, should be from database list. Add(new Company("A", new Date(), new Date(), "1")); list.

Add(new Company("B", new Date(), new Date(), "0")); list. Add(new Company("C", new Date(), new Date(), "1")); insertMode = false; } public String prepareAdd(){ company = new Company(); setInsertMode(true); return ""; } public String addCompany() { FacesContext facesContext = FacesContext. GetCurrentInstance(); try { //companyService.

AddCompany(companyName, startDate, endDate, type); //loadCompanyList(); list. Add(company); //change to add to database //load company list here setInsertMode(false); } catch (Exception e) { facesContext. AddMessage("companyForm", new FacesMessage(e.getMessage())); } return ""; } /** * @return the list */ public List getList() { return list; } /** * @return the company */ public Company getCompany() { return company; } /** * @param company the company to set */ public void setCompany(Company company) { this.

Company = company; } /** * @return the insertMode */ public boolean isInsertMode() { return insertMode; } /** * @param insertMode the insertMode to set */ public void setInsertMode(boolean insertMode) { this. InsertMode = insertMode; } }.

I am trying this example in PrimeFaces. I understand only the first few lines of the code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions