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

Timeline Zk7

$
0
0
Hi guys! Anyone is using the timeline with zk 7? I tried to follow the steps described in books.zkoss.org/wiki/Small_Talks/2007/February/Using_Timeline_Component,_Part_I, but when I start the application I have the following error: SEVERE: Mold default for timeline ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:44:9] Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang WARNING: Component bandinfo ignored. Reason: unable to load org.zkforge.timeline.Bandinfo due to java.lang.NoClassDefFoundError: org/zkoss/zk/au/Command Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang SEVERE: Mold default for bandinfo ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:53:9] Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang SEVERE: Mold default for hotzone ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:61:9] I'm using ZK EE 7.0.3.2, and the zk timeline zk-Timeline-1.1-1.zip from the previous wiki page. I checked the source code and I think that this implementation has been done for ZK 2.2.0, and in zk 7 the class org.zkoss.zk.au.Command doesn't exist. Is there any new implementation? If yes, where I can find the latest ZK timeline implementation? If not, what is the better approach to implement the timeline in my application? Waiting one reply, Thanks for your time.

[ask] adding imagemap component with color area

$
0
0
Dear All, please help, I get a problem where I need to add color to a specific area at coordinates. actually my question is similar to this question [http://forum.zkoss.org/question/81041/question-with-imagemap-and-zk/](http://forum.zkoss.org/question/81041/question-with-imagemap-and-zk/) but because there is not some response, so I write again here. Sample of what I mean like this [http://www.jqueryscript.net/demo/Simple-jQuery-Plugin-For-Highlighting-Image-Map-Maphilight/docs/demo_usa.html](http://www.jqueryscript.net/demo/Simple-jQuery-Plugin-For-Highlighting-Image-Map-Maphilight/docs/demo_usa.html) > **I make in ZK like this:**
> **Java Code :** public class MapLight extends GenericForwardComposer { public void doAfterCompose(Component comp) throws Exception { Clients.evalJavaScript("$("+siteMap.getUuid()+").maphilight();"); } } **source :** jquery.min.js ==> download [here](https://drive.google.com/folderview?id=0BzG5dK4bhHYEfmhQNFI0SW1MS2FPdlQzZnBRUkxVYjM0aUJJRWRGYURCbkFXNkpNbF9OU2M&usp=sharing) jquery.maphilight.min.js ==> download [here](https://drive.google.com/folderview?id=0BzG5dK4bhHYEfmhQNFI0SW1MS2FPdlQzZnBRUkxVYjM0aUJJRWRGYURCbkFXNkpNbF9OU2M&usp=sharing) thank you, tn harisman

Treeitem.setOpen/isOpen vs. Treemodel.addOpenPath(int[])

$
0
0
Hi, we have very large trees (about 100k nodes / paths) with multiple columns (up to ~20 or more). In these trees we get into serious performance troubles when using the "naive" tree model. We therefore implemented our own tree model(s) that add and remove nodes as their parents are expanded or collapsed. However, what puzzles me all the time is the question "What is the difference between setOpen and addOpenPath?" IMHO the javadoc is not very helpful. What I need is a concise formal definition of what these are and what to call when, no generic description like "adds the path to the open" (whatever that may be).

Bandbox inside a loop

$
0
0
Hello, I have a set of column headers for which I am trying to create bandbox(s). Pasted below is the part of the zul file code that I am trying to run. The demo on zk website uses the id of the bandbox element to close it on select ( onSelect="bd.close()". ). But in my case, the id of each bandbox has to be dynamically created as they have to be unique and this id is referred in the onSelect="dynamicUniqueId.close()". I tried many ways but none of them seem to work. The below shown code gives me an error. **Error:** Caused by: bsh.EvalError: Sourced file: inline evaluation of: `` ${header.sortCol}.close();'' : Attempt to access property on undefined variable or class name **Zul Code:**

Help me . code zats . install unit test zk 7

$
0
0
I'm looking out writing unit tests zk 7 (zats), any experienced players help me?

Tree component onSelect performs load on demand (onOpen event)

$
0
0
I have created an interface using the Tree component. The tree lists the items from the database (3 data types). This tree component uses the load-on-demand features where the node class method, getChild() or getChildCount() performs the load from the database. Typically these methods are called during the onOpen event when the user clicks on the arrow to expand the node. This is working just fine. My problem is I also have an onSelect event that I listen to in the view model. On selection it is to change the view on the web page based on the node type selected. I am seeing that the onOpen event is also getting trigger during the onSelect event. I don't believe that this should be happening when selecting a treeitem. This causes performance issues when a user merely selects a tree item due to large amounts of data. How can I prevent the onOpen event from triggering during the onSelect event? I'm using ZK 7.0.5.FL.20150323.

Cannot upload file on IE9

$
0
0
I cannot upload file from my PC. It seemed not to recognize "upload" event. But, it worked on Firefox. I run zkdemo (zkdemo/file_handling/file_upload) and it does not work too. Is it ZK's bug? Please help me. Thanks in advance.

How do you upgrade Adempiere to use ZK7

$
0
0
I have installed Adempiere and I want to upgrade it to use ZK7 but I can't find any documentation on upgrading. Please can someone point me in the right direction.

HttpServletResponse file download error in @command functions

$
0
0
I am having difficulties with *Filedownload* on ios devices (files won't download), so I am trying to implement my own filedownload functionality by writing the data into the servlet request myself, using (HttpServletResponse) Executions.getCurrent().getNativeResponse(); and setting headers, content type and writing the data to the servletresponse outputstream. However when using it I get the following error in an alert window, and the file doesn't download: Unexpected token % (SyntaxError) Note that it only seems to occur when using it in a @Command function. If I do the download in the @Init function, it works. How can I get rid of the error? I am using zk version 7.0.1.

Send Event from iFrame to Parent-zul with Parameter

$
0
0
Hi all, i have a zul with an iframe inside. The iframe shows html-code generated with AMedia amedia = new AMedia("info.html", "text/html", "text/html", i.toString());
info.setContent(amedia);
In the HTML-Code i will integrate a Link with an OnClick-Event. When the Link is clicked an Event must fired to the Parent-zul with an Parameter. Is this possible and how should the onClick-Event and the Logic in Controller should look like? Or is there another possibility? Can anyone help me? Regards Andy

ZK 7: Bootstrap support for combobox/bandbox ?

$
0
0
Does the combobox/bandbox provide any support for bootstrap styling? I am trying to declare a bootstrap form as follows and the combobox is not rendered properly. Also, there is no "bs" mold for combobox or bandbox.User namePasswordRole Thanks /costas

Why did zk throw a exception when I use Executions.sendRedirect method?

$
0
0
a parent window has a iframe,and the iframe has a master window and a child window creating by createComponents method,when I try to Executions.sendRedirect the parent window,zk throw exceptions like this: 2016-11-24 14:09:22 org.zkoss.bind.impl.ParamCall call 严重: org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.zkoss.lang.Classes.newInstance(Classes.java:75) at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163) at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44) at org.zkoss.zul.Window.enterModal(Window.java:619) at org.zkoss.zul.Window.doModal(Window.java:548) at com.kyny.zk.tools.ZkUtils.popupWindow(ZkUtils.java:848) at com.kyny.zk.viewmodel.ExamInfoManaViewModel.lookResult(ExamInfoManaViewModel.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:113) at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463) Caused by: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend0(EventProcessingThreadImpl.java:246) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend(EventProcessingThreadImpl.java:192) at org.zkoss.zk.ui.impl.UiEngineImpl.wait(UiEngineImpl.java:1600) at org.zkoss.zk.ui.Executions.wait(Executions.java:700) at org.zkoss.zul.Window.enterModal(Window.java:617) ... 19 more 2016-11-24 14:09:22 org.zkoss.bind.impl.BinderImpl$CommandEventListener onEvent 严重: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.zkoss.lang.Classes.newInstance(Classes.java:75) at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163) at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44) at org.zkoss.zul.Window.enterModal(Window.java:619) at org.zkoss.zul.Window.doModal(Window.java:548) at com.kyny.zk.tools.ZkUtils.popupWindow(ZkUtils.java:848) at com.kyny.zk.viewmodel.ExamInfoManaViewModel.lookResult(ExamInfoManaViewModel.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:113) at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463) Caused by: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend0(EventProcessingThreadImpl.java:246) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend(EventProcessingThreadImpl.java:192) at org.zkoss.zk.ui.impl.UiEngineImpl.wait(UiEngineImpl.java:1600) at org.zkoss.zk.ui.Executions.wait(Executions.java:700) at org.zkoss.zul.Window.enterModal(Window.java:617) ... 19 more

How to detach a Window in a Iframe?

$
0
0
There is a Ifarme in my parent Window,and In the Iframe there are a master Window and a child Window which is created by createComponents method,how can I close the child Window in parent Window's java bind code?

Datebox onChanging Clear text

$
0
0
I have a datebox, I want that when a letter is typed datebox is cleared, only works with integer values, I designed it like that, but I cannot erase or clear datebox content private EventListener extends InputEvent> birthDateConstraint() { return new EventListener() { @Override public void onEvent(final InputEvent event) throws Exception { String str = event.getValue(); if(str.matches(".*[a-zA-Z]+*.")) { birthDate.setContext(""); } } }; }

contentId is required

$
0
0
Iam experiencing the message "contentId is required" when upload the file to ZK form, any suggestion ? because on my local is not appear. Thanks

so confused, remove grid highlight in sapphire theme

$
0
0
hi all, i got trouble about removing grid highlight in sapphire theme, actually this problem already asked by many members and the solution is changed grid highlight color to be white(#fffff). is that possible to remove grid highlight color purely?? i mean without using `zclass="none"`

Not correct view page in browser

zk 7.0.x doesn't support ie9

$
0
0
Hello, our application with zk 7.0.1, java 7 und tomcat 7 doesn't support ie9. All components are rendered wrong, not on right position. In all other browser it works. Does anybody has an answer? Greets Mario

ZATS - NullPointerException

$
0
0
Hi all. I'm trying to follow the documentation to write some unit test for my web application, however I always get a **NullPointerException**: > org.zkoss.zats.ZatsException at> org.zkoss.zats.mimic.impl.EmulatorClient.connect(EmulatorClient.java:130)> at> x.y.z.testclass.fakeTest(UserManagementTest.java:50)> at> sun.reflect.NativeMethodAccessorImpl.invoke0(Native> Method) at> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)> at> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)> at> java.lang.reflect.Method.invoke(Method.java:601)> at> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)> at> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)> at> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)> at> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)> at> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)> at> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)> at> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)> at> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)> at> org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)> at> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)> at> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)> at> org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)> at> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)> at> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)> at> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)> at> org.junit.runners.ParentRunner.run(ParentRunner.java:300)> at> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)> at> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)> at> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)> at> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)> at> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)> at> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)>>Caused by:> **java.lang.NullPointerException** at> org.zkoss.zats.mimic.impl.DefaultDesktopAgent.getId(DefaultDesktopAgent.java:42)> at> org.zkoss.zats.mimic.impl.EmulatorClient.connect(EmulatorClient.java:109)> ... 27 more I digged into the code, and found the problem to be here: >desktopAgents.put(desktopAgent.getId(), desktopAgent); in my case, **desktopAgent is null**. The page I'm trying to connect to is a zul page that includes a login.zul page that submits username/password to j_spring_security_check. Do you have any workaround? Thanks in advance, Massimiliano

How can I show Notification like this ?

$
0
0
I saw this notification in zksample2.[check it on this link](https://www.dropbox.com/s/2pizy5jie2h6s3p/zk%20notification.JPG) how can I show this notification in my application? I am using zk 7 CE. Thanks, Bhushan.
Viewing all 65 articles
Browse latest View live


Latest Images