-
FEATURED COMPONENTS
First time here? Check out the FAQ!
![]() | 1 | initial version | |
2009/5/12 下午 03:53:01 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1108 Hi, when I use Events.sendEvent(new Event("onAfterClick",save)); save is a Button.
public void onSave(Event e){ companyDAO.update(selectedCompany); Events.sendEvent(new Event("onAfterClick",save)); }
I often get this exception, not always. 嚴重的: >>java.lang.NullPointerException
at org.zkoss.zkplus.databind.DataBinder.lookupBean(DataBinder.java:1166) at org.zkoss.zkplus.databind.DataBinder.myGetBeanWithExpression(DataBinder.java:904) at org.zkoss.zkplus.databind.DataBinder.getBeanAndRegisterBeanSameNodes(DataBinder.java:886) at org.zkoss.zkplus.databind.Binding.loadAttribute(Binding.java:278) at org.zkoss.zkplus.databind.Binding$LoadEventListener.onEvent(Binding.java:502) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:170)
and after one exception happened, it will continue happening when sending events. Especially in IE6, with firefox rarely happened. does anybody know why?
I found that in lookupBean()
if (bean == null) { final Object self = page.getNamespace().getVariableNames().contains("self") ? page.getNamespace().getVariable("self", true) : null; } ... page.getNamespace() is null, someone know what does it mean?