Revision history [back]

click to hide/show revision 1
initial version

asked 2015-11-23 04:06:55 +0800

smileinheavenn gravatar image smileinheavenn

Update inline

Hi all. i have a tutorial about Z. i did show data to textbox.i did update inline but not save to database .here is code @Command @NotifyChange("Edit") public void Edit(@BindingParam("Dep") Department myDepartment) { getDepartmentDao().Update(myDepartment); departmentModel = (ListModel<department>) new ListModelList<>(departmentService.listDepartment()); } pls help me.thank you so much

Update inline

Hi all. i have a tutorial about Z. i did show data to textbox.i did update inline but not save to database .here is code code

@Command
 @NotifyChange("Edit")
 public void Edit(@BindingParam("Dep") Department myDepartment) {
     getDepartmentDao().Update(myDepartment);
     departmentModel = (ListModel<department>) (ListModel<Department>) new ListModelList<>(departmentService.listDepartment());
 }

pls help me.thank me.
Thank
you so much

Update inline

Hi all. i have a tutorial about Z. i did show data to textbox.i did update inline but not save to database .here is code

@Command
@NotifyChange("Edit")
public void Edit(@BindingParam("Dep") Department myDepartment) {
    getDepartmentDao().Update(myDepartment);
    departmentModel = (ListModel<Department>) new ListModelList<>(departmentService.listDepartment());
}

@Override public void Update(Department department) { 
    openSession(); 
    beginTransaction(); 
    update(department);
    commitTransaction(); 
    closeSession();
}

pls help me.
Thank you so much

Update inline

Hi all. i have a tutorial about Z. i did show data to textbox.i did update inline but not save to database .here is code

@Command
@NotifyChange("Edit")
public void Edit(@BindingParam("Dep") Department myDepartment) {
    getDepartmentDao().Update(myDepartment);
    departmentModel = (ListModel<Department>) new ListModelList<>(departmentService.listDepartment());
}

@Override  public void Update(Department department) { 
    openSession(); 
    beginTransaction(); 
    update(department);
    commitTransaction(); 
    closeSession();
}

pls help me.
Thank you so much

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More