-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3735631
By: nobody
I am adding a EventListener to a Component as follows:
<window id="y" width="100%" visible="false"> <zscript>
import com.potix.zk.ui.*;
import com.potix.zk.ui.event.*;
void registerEvent(Component c){
EventListener listener=new EventListener(){
public void onEvent(Event e){
}
public boolean isAsap(){
return true;
}
};
//System.err.println(c);
c.addEventListener("test", listener);
}
</zscript>
<groupbox id="z" mold="3d" width="100%" onCreate="registerEvent(self)"> <caption label="a"/> </groupbox> </window>
the following error is encountered, c.addEventListener("test", listener); is causing it. not sure why? thanks for the help.
om.potix.zk.ui.UiException: com.potix.web.servlet.ServletException: Unable to evaluate an EL expression: ${u:redraw(root, null)}
com.potix.zk.ui.http.ExecutionImpl.forward(ExecutionImpl.java:129)
com.potix.zk.ui.impl.PageImpl.redraw(PageImpl.java:457)
com.potix.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:253)
com.potix.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:342)
com.potix.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:298)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3735666
By: michaelkmb
The event name "test" is not vaild.
According to API (com.potix.zk.ui.event.Events), "The event name must start with on and the third character must be upper case."
Michael
Asked: 2006-05-17 00:13:11 +0800
Seen: 651 times
Last updated: May 17 '06