Quantcast
Channel: ZK Forum - Individual question feed
Viewing all 356 articles
Browse latest View live

Upload-Error "contentId is required!"

$
0
0
Hi! Could someone explain to me the Errormessage "contentId is required!". If I upload for example a picture I often get this Errormessage - not everytime, but really often! I make the upload like this: this.buttonImageUpload.addEventListener("onUpload", new org.zkoss.zk.ui.event.EventListener () { @Override public void onEvent(org.zkoss.zk.ui.event.Event arg0)throws Exception { UploadEvent event = (UploadEvent) arg0; media = event.getMedia(); } } That's how my upload-button in the .zul looks like: Did I something wrong here? Thanks!

Zk create custom event for COmbo box?

$
0
0
HI, I want to create a custom event for COmbo box. Can anyone tell how do i proceed to add new event and its event listener to combo box?

Build web application without any zul files

$
0
0
Is it possible to build the whole web application with no zul files, except maybe the index.zul? Basically I want to have the minimum amount of files and want to build and react to the whole UI in java code. Is there a way to detect URL mappings and have them responded to by a specific SelectorComposer to build the UI? ex: MY_SITE.com/showUsers would get intercepted and delegate to the ShowUsersSelectorComposer to build the page of users etc... No need for a showUser.zul all of the logic would be in the code. An yes I know about the lose coupling between the UI and business logic, which is still achievable with proper DAL and BO.

webgl and three.js

$
0
0
can zk use webgl framework ? Just like three.js

zk-jmeter-plugin-0.8.0.jar not working with JMeter 3.2

$
0
0
I have installed Jmeter version 3.2 and have added ZK plugin (zk-jmeter-plugin-0.8.0.jar) in JMETER_HOME\lib\ext. On opening Jmeter i am not able to add any elements to the Test Plan also the Edit option is disabled. Found the following error in the logs:- 2017-04-18 15:55:11,904 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.assertions.BSFAssertion 2017-04-18 15:55:12,632 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.extractor.BSFPostProcessor 2017-04-18 15:55:12,707 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.modifiers.BSFPreProcessor 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2017-04-18 15:55:12,790 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser 2017-04-18 15:55:13,561 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool' 2017-04-18 15:55:13,561 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file D:\JMeter WorkSpace\apache-jmeter-3.2\bin\proxyserver.jks 2017-04-18 15:55:13,781 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.protocol.java.sampler.BSFSampler 2017-04-18 15:55:13,844 INFO o.a.j.s.FileServer: Default base='D:\JMeter WorkSpace\apache-jmeter-3.2\bin' 2017-04-18 15:55:13,984 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement 2017-04-18 15:55:13,984 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler 2017-04-18 15:55:14,357 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.timers.BSFTimer 2017-04-18 15:55:14,425 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.visualizers.BSFListener 2017-04-18 15:55:14,755 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times 2017-04-18 15:55:14,771 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2017-04-18 15:55:14,771 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true 2017-04-18 15:55:14,771 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000 2017-04-18 15:55:14,903 ERROR o.a.j.g.u.MenuFactory: Error initializing menus in static bloc, check configuration if using 3rd party libraries java.lang.ClassCastException: javax.swing.JPanel cannot be cast to javax.swing.Box at org.zkoss.testing.jmeter.ZKProxyControlPlugin.getProxyPortArea(ZKProxyControlPlugin.java:81) ~[zk-jmeter-plugin-0.8.0.jar:?] at org.zkoss.testing.jmeter.ZKProxyControlPlugin.init(ZKProxyControlPlugin.java:44) ~[zk-jmeter-plugin-0.8.0.jar:?] at org.zkoss.testing.jmeter.ZKProxyControlPlugin.(ZKProxyControlPlugin.java:39) ~[zk-jmeter-plugin-0.8.0.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_71] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_71] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_71] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_71] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_71] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:505) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.util.MenuFactory.(MenuFactory.java:169) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 15:55:14,903 ERROR o.a.j.JMeter: Uncaught exception: java.lang.ExceptionInInitializerError: null at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] Caused by: java.lang.ClassCastException: javax.swing.JPanel cannot be cast to javax.swing.Box at org.zkoss.testing.jmeter.ZKProxyControlPlugin.getProxyPortArea(ZKProxyControlPlugin.java:81) ~[zk-jmeter-plugin-0.8.0.jar:?] at org.zkoss.testing.jmeter.ZKProxyControlPlugin.init(ZKProxyControlPlugin.java:44) ~[zk-jmeter-plugin-0.8.0.jar:?] at org.zkoss.testing.jmeter.ZKProxyControlPlugin.(ZKProxyControlPlugin.java:39) ~[zk-jmeter-plugin-0.8.0.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_71] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_71] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_71] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_71] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_71] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:505) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.util.MenuFactory.(MenuFactory.java:169) ~[ApacheJMeter_core.jar:3.2 r1790748] ... 19 more 2017-04-18 15:55:15,139 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:93) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 15:56:38,071 INFO o.a.j.u.JsseSSLManager: Using default SSL protocol: TLS 2017-04-18 15:56:38,071 INFO o.a.j.u.JsseSSLManager: SSL session context: per-thread 2017-04-18 16:00:44,996 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.displayPopUp(JMeterTreeListener.java:237) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.mousePressed(JMeterTreeListener.java:182) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.AWTEventMulticaster.mousePressed(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 16:00:45,012 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 16:00:45,465 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.displayPopUp(JMeterTreeListener.java:237) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.mousePressed(JMeterTreeListener.java:182) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.AWTEventMulticaster.mousePressed(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 16:00:45,683 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:119) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.displayPopUp(JMeterTreeListener.java:237) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeListener.mousePressed(JMeterTreeListener.java:182) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.AWTEventMulticaster.mousePressed(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71] 2017-04-18 16:03:58,016 ERROR o.a.j.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:93) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:156) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748] at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_71] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_71] at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_71] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_71] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_71]

How to bind Component from Include tag

$
0
0
hii guys,,, please help me to find the way to bind a component from "Include" tag.. normally, we can bind teh component from zul page just by defining the attribute on the Composer Class.. let say ,,, private TextBox txt; in this case i use "Include" Tag for Example : how can i bind the componen in "cihuy.zul" from MyComposer; is it possible?? thx before for helping. Regards, Aldian Bagya

How to bind CKeditor value with MVVM

$
0
0
Hello everyone, I'm trying to make ckeditor work with the new ZK6 and the MVVM pattern. Basically I have a listbox and a ckeditor component. I would like that when an object is selected from the listbox, the ckeditor content to change. Here is the code, which doesn't work what I would like to do is this: value="@load(vm.selected.template)" but this doesn't work neither. How can load the value of a ckeditor component with the new binding of ZK6? Thanks in advance, Luca

Have to have fulfill for a tabPanel fire from a viewModel that sets the selected tab in Java?

$
0
0
Consider three tab panels: [CODE] [/CODE] The above zul is backed by a ViewModel (MVVM pattern.) page2's ViewModel can fire off a global command "openTab3." The tabbox's view model responds to that global command and then can open up tab 3... [CODE] this.selectedTab = 2; [CODE] This issue however is that page3.zul is not rendered when I try to load the tab up like this via Java. I want page3 to rendered deferred just as if you had manually clicked on the tab and triggered the fulfill, but I'm not sure how to do this? (Note, if I remove the fulfill on tab3, it renders fine, but of course it's not deferred which is bad since I only want tab3's content to be initialized if it's truly needed.) There must be something simple I'm missing?

ZK Timer OnTimer Event Listener is not working

$
0
0
I am using zk-7.0.2, when I used the following tag in zul file and then created an event listener in the listener for the onTimer event then it is getting invoked.> ` ` But when I used following code in listener then the event attached to the timer is not getting invoked. Timer timer = new Timer(); timer.setRepeats(true); timer.setDelay(2000); timer.addEventListener(Events.ON_TIMER, new EventListener() { public void onEvent(Event event) throws Exception { Messagebox.show("hello"); } }); Does anyone know why it is happening? Thanks in advance.

How can I open "www.google.com" in a new browser?

$
0
0
Executions.getCurrent().sendRedirect("www.google.com", "null"); but url is"http://localhost:8080/xxxwww.google.com",it can't open.because url isn't "www.google.com" How can I do?

How do I restrict the browsers from remebering the password?

$
0
0
I would like to restrict the browsers from asking to remember the password for the application. I have done the below changes in the login page This works fine in Firefox and IE8 but not working in Chrome. I tried to specify the ca:autocomplete="off" for form element but didn't worked. Thanks in advance

Can't Open a modal : Stateless Session

$
0
0
I'm trying to load some huge data from the database in a "AfterCompse" method of a modal, but the modal keeps charging and doesn't show with this error * AVERTISSEMENT [org.zkoss] Page [Page eSEQ_] was destroyed because desktop was destroyed.It is usually caused by invalidating the native session directly. If it is required, please set Attributes.RENEW_NATIVE_SESSION first.* Also : *java.lang.NoClassDefFoundError: org/zkoss/mesg/MCommon* I'm loading the data using this method : @SuppressWarnings({ "unchecked" }) @Override @Transactional public List findAll() { StatelessSession session = ((Session) entityManager.getDelegate()) .getSessionFactory().openStatelessSession(); org.hibernate.Query query = session.createQuery("SELECT t FROM table t ORDER BY t.id"); query.setReadOnly(true); query.setFetchSize(Integer.valueOf(1000)); query.setLockMode("z", LockMode.NONE); ScrollableResults resultList = query.scroll(ScrollMode.FORWARD_ONLY); entityManager.flush(); List result = new ArrayList(); while (resultList.next()) { result.add((T) resultList.get()[0]); } session.close(); return result; } Any help will be appreciated, thanks

Can't Open a modal : Stateless Session

$
0
0
I'm trying to load some huge data from the database in a "initSetup" method of a modal, but the modal keeps charging and doesn't show with this error * AVERTISSEMENT [org.zkoss] Page [Page eSEQ_] was destroyed because desktop was destroyed.It is usually caused by invalidating the native session directly. If it is required, please set Attributes.RENEW_NATIVE_SESSION first.* Also : java.lang.NoClassDefFoundError: org/zkoss/mesg/MCommon I'm loading the data using this method : @SuppressWarnings({ "unchecked" }) @Override @Transactional public List findAll() { StatelessSession session = ((Session) entityManager.getDelegate()) .getSessionFactory().openStatelessSession(); org.hibernate.Query query = session.createQuery("SELECT t FROM table t ORDER BY t.id"); query.setReadOnly(true); query.setFetchSize(Integer.valueOf(1000)); query.setLockMode("z", LockMode.NONE); ScrollableResults resultList = query.scroll(ScrollMode.FORWARD_ONLY); entityManager.flush(); List result = new ArrayList(); while (resultList.next()) { result.add((T) resultList.get()[0]); } session.close(); return result; } Any help will be appreciated, thanks

Problem with 'NotifyChange' and 'Messagebox'?

$
0
0
I have a MVVM class method handling a user action to delete an entry. The code inside the MVVM class method displays a messagebox to prompt a confirmation from the user. The use of this messagebox seems to interfere with the 'NotifyChange' related updates. @SuppressWarnings({ "rawtypes", "unchecked" }) @Command("deleteSelected") @NotifyChange({"locationModel","selectedLocation","showEdit"}) public void deleteSelected() { if (getSelectedLocation() != null) { try { if (geoLocationManager.isUsed(getSelectedLocation().getData().getID())) { Messagebox.show("This Location cannot be deleted as it is being used by requirements or available resources","Delete", Messagebox.OK, Messagebox.INFORMATION); } else { Messagebox.show("Confirm deletion of ["+getSelectedLocation().getData().getTitle()+"]?", "Confirm Dialog", Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener() { public void onEvent(Event evt) throws InterruptedException { if (evt.getName().equals("onOK")) { try { geoLocationManager.delete(getSelectedLocation().getData().getID()); buildModel(); setSelectedLocation(null); BindUtils.postNotifyChange(DataAreaIDs.QUEUE_NAME,DataAreaIDs.QUEUE_SCOPE,this,"showEdit"); BindUtils.postNotifyChange(DataAreaIDs.QUEUE_NAME,DataAreaIDs.QUEUE_SCOPE,this,"locationModel"); } catch (PersistenceException e) { showErrorView(getCommand(), e); } catch (UnknownGeoLocationException e) { } } } }); } } catch (PersistenceException e) { showErrorView(getCommand(), e); } } } I've even tried forcing the refresh using the 'bindUtils' calls, but the view remains unaffected. Any ideas?

Avoid to download ZK Powered Logo

$
0
0
Hi, I have developed a captive portal application to access the free wifi. The problem is that ZK try to access the logo "ZK Powered" at http://www.zkoss.org/zk/img/zkcepowered.png. But if the user does not have full access to the network, the application unnecessarily waste time trying to download the logo. There is the possibility to avoid loading the logo? Regards Pasquale

Change Tab Label colour on the fly

$
0
0
Hi All, I want to change the Tab Label colour on a set event within Java. I know that the style for the text is: z-tab-seld .z-tab-text But I am having a hard time just changing the colours for these CSS classes. I want to do something like this: button.addEventListener(Events.ON_CHANGE, new EventListener() { public void onEvent( Event event ) throws Exception { Tabpanel tp = (Tabpanel)comp; Tab tab = tp.getLinkedTab(); tab.setStyle("color: red;"); } }); Does anyone know how to do this? Thanks!

[Announcement] ZK8.5 Preview

$
0
0
Hi everyone, Thanks for all the continuous support! We will be releasing ZK 8.5 probably in Q3 and here are some of the preview articles with the new features! [Smooth Scrolling in ZK Frozen](http://blog.zkoss.org/2017/06/20/zk-8-5-preview-smooth-scrolling-in-zk-frozen/) [Advanced Usage of Fragment Component](https://www.zkoss.org/wiki/Small_Talks/2017/July/Advanced_Usage_of_Fragment_Component) [Offline Recovery Feature of Fragment Component](http://blog.zkoss.org/2017/07/06/zk-8-5-preview-the-offline-recovery-feature-of-fragment-component/) [Build in WebSocket Communication is now Provided](http://blog.zkoss.org/2017/07/27/zk-8-5-preview-build-in-websocket-communication-is-now-provided/) Feel free to comment, share with us your opinion and let us know what you think! ZK Team

zk and webseal

$
0
0
Hi everybody Im building an app with ZK + Spring + MyBatis The principal page has the next structure:
Head mP2 < *****************" ); for(Object s = new Object();enu.hasNext();s = enu.next()) System.out.println( "ZZZ>>> " + s + " : " + Executions.getCurrent().getHeader( s.toString() ) ) ; javax.servlet.http.HttpSession sess = (javax.servlet.http.HttpSession)session.getNativeSession(); Enumeration enu2 = sess.getAttributeNames(); System.out.println( "******* > Session mP2< *****************" ); for( Object s = new Object() ; enu2.hasMoreElements() ; s = enu2.nextElement() ) System.out.println( "ZZZ>>> " + s + " : " + session.getAttribute( s.toString() ) ) ; Map attributos = Executions.getCurrent().getAttributes(); Iterator keys = attributos.keySet().iterator(); System.out.println( "******* > request mP2< *****************" ); for( Object s = new Object() ; keys.hasNext() ; s = keys.next() ) System.out.println( "ZZZ>>> " + s + " : " + attributos.get( s.toString() ) ) ; System.out.println( "****************************************" ); ]]>
I have a menubar that populate dinamically, and when i click on any menuitem it loads the iframe called iframeArea with other app's. All app's lives on the same clustered WAS server, but request go throw WebSeal security. After first click session timeouts. Question, is what is happening with session?? regards;

Getting data from another java file

$
0
0
Orignial message at: https://sourceforge.net/forum/message.php?msg_id=3501130 By: nobody As we use request.getParameter() in Jsp pages,what is the equivalent command for the above one in zul pages.How come I get the data from another java file

access javascript function from java

$
0
0
Orignial message at: https://sourceforge.net/forum/message.php?msg_id=3629909 By: nobody I'm trying to retreive a cookie and then set a java value from data within the cookie. The only way I know how to access cookies is through javascript. Is there a way to access a javascript method <h:script type="text/javascript"> function somefunction(){}</h:script> from within a java method inside a <zscript>?
Viewing all 356 articles
Browse latest View live