public static void showWindow() { ViewWindow window = (ViewWindow) Executions.createComponents("/pages/window/window.zul", null, null); WorkWithPartnerMZ work = new WorkWithPartnerMZ(); Object[] objs = work.getListRows().toArray(); window.setObj(objs); window.setLoad(true); window.doModal(); }
public static void main(String[] args) { // WorkWithMZ work1 = new WorkWithMZ(); // MZ mz = (MZ) work1.getEntity(1); String d = MD5.getMD5("1234"); WorkWithPartnerMZ work = new WorkWithPartnerMZ(); PartnersMZ part = (PartnersMZ) work.getEmptyEntity(); Set set = new LinkedHashSet(); set.add(new ComandMZ()); ClassInvokeCall.callMethod(part, "setComandMZ", new Object[] {set}); int y = 0; }