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

new Zk charts in Maven

$
0
0
hello i am working on a ZK project using ZK [charts ](http://www.zkoss.org/zkchartsdemo/line_time_series) , i was working on an environment where i had to add all jars to the project my self and everything worked just fine . now i have moved to a maven project , everything seems to work just fine when i added the right dependencies , except for org.zkoss.chart . i added this dependency: org.zkoss.chartzkcharts1.0.0 but it is not working , notice that i followed this [guide](http://books.zkoss.org/wiki/ZK_Charts_Essentials/Getting_Started_with_ZK_Charts/Setting_Up_ZK_Charts) and i have a ZK EE activated account can you tell me pls what i have done wrong ? thx

css zk 7.0.3 with ie9 not work

$
0
0
Hello i have a problem with css of zk, version 7.0.3, That not work with Internet Explorer 9 but work with IE8 and IE10. I have already tried with meta http-equiv = "X-UA-Compatible" content = "IE = 7,8,9"?> but does not work with my webapp. Does not work with any theme. Can someone help me? Thanks.

How to install ZK Studio on IBM RAD 7.5

$
0
0
Where can i download a version that is compatible to IBM RAD 7.5 and oc relating to how to configure ZK studio?

Difference Between @load,@save,@bind

$
0
0
Can someone please explain me the difference between @load,@save,@bind with an example, i have read about them but i got more confused about the basic difference between them. they all look and work in somewhat same manner. what does it mean when i write something like below thanks in advance

Add textbox to panel title

$
0
0
I want to add a textbox in a panel instead a title because i want that a user can change this title. How can i do this?

Problem showing textbox into tabbox tab

$
0
0
I'm trying to add a textbox into a tabbox tab using the example that i found here: books.zkoss.org/wiki/ZK_Component_Reference/Containers/Tabbox/Tab The problem is that when I try to do this in my project, the tab not contains the textbox, only shows the text "" This is my code:

splitter does not open after colapse

$
0
0
Hi everyone. I am using splitter inside tabbox. But I have problem when i collapse the vbox it never open back

ComboBox in template grid

$
0
0
Hi, I have the following combobox in a grid:

ZK popup 7.0 new character

How to use Java script chart plotting library for Jquery in ZK

$
0
0
Hi, I want to use jquery based charting library called flot in my ZK project. I have tried using javascript tags based on html examples which come along with flot. Can some one please guide me as to how to use it in my code as example ? http://code.google.com/p/flot/

ExecutionCleanup bury unhandled exceptions

$
0
0
I'm looking into burying unhandled exceptions by logging them and not showing anything in the UI. Apparently I'm supposed to be able to use ExecutionCleanup to do this, by clearing the list of exceptions in cleanup(). I have tried this, but the exceptions are still pushed to the client and I get the error. The documentation (zkoss.org/javadoc/7.0.5/zk/org/zkoss/zk/ui/util/ExecutionCleanup.html#cleanup(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Execution, java.util.List) says > errs - a list of exceptions> (java.lang.Throwable) if any exception> occurred before this method is called,> or null if no exception at all. Note:> you can manipulate the list directly> to add or clean up exceptions. For> example, if exceptions are fixed> correctly, **you can call errs.clear()> such that no error message will be> displayed at the client**. Here's a simple fiddle showing the problem:zkfiddle.org/sample/306k1k9/1-ExecutionCleanup-failure Note that I have also tried listening for `java.lang.Throwable` in `zk.xml`, and that does work, but I want to be able to look at the list on the server-side first, if possible. Is this a known bug or am I doing it wrong or something else?

borderlayout in include not display with height="100%"

$
0
0
hi, I have the following code contenido.zul
principal.zul
But contenido.zul not shown unless you step height = "400px", but not from height = "100%". I have searched for information about it but no solution. Working with ZK 7.0.3 CE Thanks for any suggestions.

ZK Charts Customization with MVVM

$
0
0
How can I bind the Charts object in my zul using MVVM approach? Most of the examples available are using MVC approach. There is only one example using MVVM (http:// www.zkoss.org/ zkchartsdemo/ category_model), but it doesn't show how to do customization on the labels. private Charts chart; Currently I can only bind its CategoryModel. public ChartsModel getChartsModel() { return chart.getModel(); } I need to bind the chart object so that the following customizations (eg. set Y axis label) are reflected in the UI: chart.setTitle("Sample Chart"); AxisLabels xLabels = chart.getXAxis().getLabels(); xLabels.setRotation(-45); xLabels.setAlign("right"); xLabels.setStyle("fontSize: '13px'; fontFamily: 'Verdana, sans-serif'"); chart.getYAxis().setMin(0); chart.getYAxis().setTitle("'Population (millions)"); chart.getLegend().setEnabled(false); chart.getTooltip().setPointFormat( "Population in 2008: {point.y:.1f} millions"); DataLabels dataLabels = chart.getSeries().getDataLabels(); dataLabels.setEnabled(true); dataLabels.setRotation(-90); dataLabels.setColor("#FFFFFF"); dataLabels.setAlign("right"); dataLabels.setX(4); dataLabels.setY(10); dataLabels.setStyle( "fontSize: '13px'; fontFamily: 'Verdana, sans-serif'; textShadow: '0 0 3px black'"); Thanks.

Release memory of ZK server after closing browser

$
0
0
Hi,all I have used ZK framework for several weeks, and it is amazing solution to achieve my web application. All things go well, but after monitor the memory of ZK server, I find the memory of ZK server would be larger when new session is created. And even closing browser, the memory never decrease. So, may I implement DesktopClean or SessionClean to decrease memory ? Or other solution ? Thank you very much !

classWebResource.cache

$
0
0
Hi, I want to know if "**[org.zkoss.web.classWebResource.cache](http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.web.classWebResource.cache)**" is **ONLY** caching **CSS AND JS** or something else which will impact the performance? The customer always has to manually clear the cache if we ship new CSS/JS files, so I thought about not caching JS/CSS. thank you

java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.HttpSessionListener

$
0
0
Hello, I am using zk calender in my application and I have updated all zk libs from version 5.0 to 7.0.3.I am using Eclipse IDE and Tomcat for development.I have cleared all work folders & files from Tomcat before building the application but I am facing following exception at some listeners while starting my tomcat server. SEVERE: Error configuring application listener of class org.zkoss.zk.ui.http.HttpSessionListener java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.HttpSessionListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I guess there are some classes which are missing.Could somebody please help me out as it is blocking my application to start. Thanks in advance.

org.zkoss.zul.Window.getVariable(String,Boolean) is not found in zk 7.0.3

$
0
0
Hello Everyone, I have Zk calendar in my application and I have upgraded my zk libraries to 7.0.3 but I am getting error for org.zul.Window.getVariable(String,boolean) which I was working in previous version. My code looks like SimpleCalendarModel scm = new SimpleCalendarModel(); private Window displayMyEntry; @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); setTitle(2, Calendar.getInstance().getTime()); org.zkoss.calendar.Calendars cals = (org.zkoss.calendar.Calendars)displayMyEntry.getVariable("calendar", false);// getting error at this line scm = new SimpleCalendarModel(); Sessions.getCurrent().setAttribute("learnerEvents", getTotalNumberOfEvents()); getStoredEvents(); cals.setModel(scm); } Can someone please tell me the what would I use instead of this method or any other way to void this issue as I am stuck at this issue. Any help would greatly appropriated.

A special search box

$
0
0
Hi, I’m a beginner with ZK framework and I’m trying to add a search box with the result in a listbox like a combo box. I tried to use Combo box and band box, but I need to create (or update) the list of result AFTER the user wrote something and pressed on search button (or pressed ok). I’m using MVC. Could you explain me how to do it? Thank you

Auto fill problem with my binding-data (MVVM)

$
0
0
Hello everybody, I have a kind of bug with zk 7 with auto fill of chrome :( Auto fill fills the fields in my web page (textbox) but the fields of my view-model stay empty with chrome. For example, with an address form autofilled all data is null in my viewmodel (not in my textbox on the webpage) If I simulate an event 'onChange' my binding works. (zAu.send(new zk.Event(zk.Widget.$('$idOfMyTextBox'),"onChange",{'value':'test!!','start':6})) ) The problem is the same in a new zk project with one mvvm page. Does anyone have a solution ? Thanks for you help :)

Posting composer event

$
0
0
Hello I have a window that extends **GenericForwardComposer** and has a method **updateCart(Event event)**, now the problem is when this window is part of zul like and I try to execute the event updateCart by using **Events.postEvent(new Event("updateCart", null, cartObject));** everything works fine but when i include this window into some other component like hbox or may be in border layout like the posing of event is not working, i am all out of clues, what i am missing, one thing i can guess is when included in other component, Event queue is not able to find the method of composer but i don't know as of yet how to expose it. any help or suggestions are welcome. Harish
Viewing all 9640 articles
Browse latest View live