0

OnClick on label

asked 2005-11-28 08:23:38 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3447064

By: samyem

The "onClick" event does not register with Label. Though it is allowed by the framework, when it is rendered, it shows a span tag without onClick event on it. I think this is a bug with ZK.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2005-11-28 09:09:15 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3447115

By: nobody

Looks like the event model is not very well implemented yet. Most of the components do not take events properly. I got things like the following when trying to put event on a LabelImageElement:

javax.servlet.ServletException: Component definition not found: class com.potix.zul.html.impl.LabelImageElement
com.potix.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:219)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

com.potix.zk.ui.metainfo.DefinitionNotFoundException: Component definition not
found: class com.potix.zul.html.impl.LabelImageElement
com.potix.zk.ui.metainfo.LanguageDefinition.getComponentDefinition(LanguageDefi
nition.java:152)
com.potix.zk.ui.AbstractComponent.getDefinition(AbstractComponent.java:808)
com.potix.zk.ui.event.Events.isListenerAvailable(Events.java:65)
com.potix.zul.html.impl.XulElement.isAsapRequired(XulElement.java:453)
com.potix.zul.html.impl.XulElement.addEventListener(XulElement.java:458)
net.yomari.objectspace.components.DataWindow.showObjectist(DataWindow.java:155)
net.yomari.objectspace.components.DataWindow.<init>(DataWindow.java:63)
net.yomari.objectspace.ObjectManager.createObjects(ObjectManager.java:47)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:25)
java.lang.reflect.Method.invoke(Method.java:585)
bsh.Reflect.invokeOnMethod(Unknown Source)
bsh.Reflect.invokeObjectMethod(Unknown Source)
bsh.Name.invokeMethod(Unknown Source)
bsh.BSHMethodInvocation.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
com.potix.zk.ui.sys.PageImpl.interpret(PageImpl.java:397)
com.potix.zk.ui.sys.UiEngineImpl.execCreate(UiEngineImpl.java:251)
com.potix.zk.ui.sys.UiEngineImpl.execCreateChild(UiEngineImpl.java:268)
com.potix.zk.ui.sys.UiEngineImpl.execCreate(UiEngineImpl.java:246)
com.potix.zk.ui.sys.UiEngineImpl.execNewPage(UiEngineImpl.java:170)
com.potix.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:258)
com.potix.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:217)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


link publish delete flag offensive edit

answered 2005-11-28 09:37:19 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3447156

By: nobody

By the way, how do we put a "blur" event in ZK components, like the way we do for regular HTML?

link publish delete flag offensive edit

answered 2005-11-28 09:44:59 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3447164

By: nobody

Do we need onLoad support for each element to be able to implement things like onClick for all elements/components?

link publish delete flag offensive edit

answered 2005-12-10 05:53:35 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3468657

By: tomyeh

No, we don't but it is tedious if no generic way to do it.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2005-11-28 08:23:38 +0800

Seen: 3,457 times

Last updated: Dec 10 '05

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