Revision history [back]

click to hide/show revision 1
initial version

asked 2014-09-22 14:46:47 +0800

sathishk gravatar image sathishk

Notifychanges not working in @listen event

Hai Sir,I am new at Zk frame work, notifychanges working fine in @command,but not working in @listen event. how can i rectify this issue, please help me.

i need to display grid with records getting from below BillingPlanServiceImpl.

@NotifyChange("billingPlansList2") @Listen("onClick = #bplanlink") public void billingPlan() { tabbox.setSelectedPanel(bplanpanel);
tabcontact.setVisible(false); tabwrite.setVisible(false); tabmyprofile.setVisible(false); tabkowledge.setVisible(false); tabfaq.setVisible(false); tabbplan.setVisible(true); billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

for(BillingPlan bplan : billingPlansList2) { billplan = new BillingPlan(); System.out.println(":bplan.getBillingdate():-"+bplan.getBillingdate()); billplan.setBillingdate(bplan.getBillingdate()); }

BindUtils.postGlobalCommand(null, null, "refresh", null); BindUtils.postNotifyChange(null, null, this, "*");

} @GlobalCommand @NotifyChange("billingPlansList2") public void refresh(){ System.out.println("Enter to refresh global command:-"); }

Notifychanges not working in @listen event

Hai Sir,I am new at Zk frame work, notifychanges working fine in @command,but not working in @listen event. how can i rectify this issue, please help me.

i need to display grid with records getting from below BillingPlanServiceImpl.

@NotifyChange("billingPlansList2")
@Listen("onClick = #bplanlink")
public void billingPlan()
billingPlan() {
 tabbox.setSelectedPanel(bplanpanel); 
tabcontact.setVisible(false); tabwrite.setVisible(false); tabmyprofile.setVisible(false); tabkowledge.setVisible(false); tabfaq.setVisible(false); tabbplan.setVisible(true); billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

BillingPlanServiceImpl().getBillinPlanList(""); for(BillingPlan bplan : billingPlansList2) billingPlansList2) { billplan = new BillingPlan(); System.out.println(":bplan.getBillingdate():-"+bplan.getBillingdate()); System.out.println(":bplan.getBillingdate():-"+bplan.getBillingdate()); billplan.setBillingdate(bplan.getBillingdate()); }

} BindUtils.postGlobalCommand(null, null, "refresh", null); BindUtils.postNotifyChange(null, null, this, "*");

"*"); } @GlobalCommand @NotifyChange("billingPlansList2") public void refresh(){ System.out.println("Enter to refresh global command:-"); }

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