Hi all,
I'm trying to use chosenbox component adding following tags :
I receive this message error:
Component definition not found: chosenbox in [LanguageDefinition: xul/html]
Thanks and regards
Morena
↧
Error using chosenbox component
↧
WrongValueException doesn't appear on Firefox ESR 10.0.1
Hello all,
I have a problem with WrongValueExceptions thrown on e.g. Dateboxes.
The WrongValueExceptions on for example Dateboxes doesn't appear on Firefox ESR 10.0.1 Browser. After scrolling down the wrong-value-message appears on top-left of Browser. This problem concerns only Firefox ESR 10.0.X.
Thank you very much in advance.
Best regards.
↧
↧
Borderlayout question
Hi all,
is it possible to open/close the south-Area when i click the entire South-Panel same as i click the arrow-button? I use zk-8.
Regards Andi
↧
Prompt user with MessageBox BEFORE fileUpload chooser dialog?
I'd like to prompt the user for some input in a confirmation dialog box BEFORE the file dialog popup using the upload="true option on a button.
I'm handling the fileUpload in
public void handleUpload(@ContextParam(ContextType.BIND_CONTEXT) BindContext ctx)
But by that point the file chooser dialog has already happened.
If I can't do what I want using the upload="true" on a button, how can I manually call the FileUpload dialog from within my VM ?
Thanks
↧
Grid dynamic number of cells
I've want to loop in a grid for each line to build a dyanmic number of column.
Here is a simple example :
|
I've tried with forEach.
|
Worked fine DOM wise as it generated a Cell for each element of my list.
But It doesn't support @Bind as said here : http://tracker.zkoss.org/browse/ZK-977
So I tried with children
|
The binding works fine, but now the issue is now it loop only in the template ... So I've everything in the same column as there is only one cell generated.
How can I do what I want?
↧
↧
Shadow. zuti package. Which edition ???
Hi all,
i would try to use the if tag from the shadow namespace.
So i see that the zuti package is in the maven repository for the CE edition. But after adding the package i get an error which seems that zuti uses classes from a package which is in the EE edition (zkex) ????
ERROR [2016-03-02 15:12:43,416] 56466 [qtp8805846-22] org.zkoss.zk.ui.impl.UiEngineImpl cn=default -
java.lang.NoClassDefFoundError: org/zkoss/zkex/rt/Runtime
at org.zkoss.zuti.zul.TemplateBasedShadowElement.docheck0(TemplateBasedShadowElement.java:209) ~[zuti-8.0.1.jar:8.0.1]
at org.zkoss.zuti.zul.TemplateBasedShadowElement.afterCompose(TemplateBasedShadowElement.java:73) ~[zuti-8.0.1.jar:8.0.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:840) ~[zk-8.0.1.jar:8.0.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:807) ~[zk-8.0.1.jar:8.0.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:709) ~[zk-8.0.1.jar:8.0.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:923) ~[zk-8.0.1.jar:8.0.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:877) ~[zk-8.0.1.jar:8.0.1]
thanks for any information
best
Stephan
↧
Javascript in ZK charts
Hi,
I want to know how we can write the highcharts javaScript methods in ZK charts using java. Is there any example in which i can find to write whole bunch of javaScript inside the java method??
↧
How to @Bind on a list.get(0) method without using model.
I want to bind a field on one list item, something like value="@bind(myObj.listAttr.get(0).myfield)"
But I get a NumberFormatException.
It works fine when reading but not when writing.
Is there a way to do it? I do not want to use model.
Is there a way to define my value in the zul like on the parent element ?
I cannot use ZKscript though.
**EDIT** I'm trying to combien forEach and binding with the following code :
|
The error I get :
> Caused by:> java.lang.NumberFormatException: For> input string: "get" at> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)> ~[na:1.7.0_45] at> java.lang.Integer.parseInt(Integer.java:492)> ~[na:1.7.0_45] at> java.lang.Integer.parseInt(Integer.java:527)> ~[na:1.7.0_45] at> org.zkoss.zel.ListELResolver.coerce(ListELResolver.java:167)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.zel.ListELResolver.getValue(ListELResolver.java:51)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.zel.CompositeELResolver.getValue(CompositeELResolver.java:66)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.zel.CompositeELResolver.getValue(CompositeELResolver.java:66)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.xel.zel.XelELResolver.getValue(XelELResolver.java:72)> ~[zcommon-7.0.6.jar:7.0.6] at> org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:69)> ~[zkbind-7.0.6.jar:7.0.6] at> org.zkoss.zel.impl.parser.AstValue.getTarget(AstValue.java:123)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.zel.impl.parser.AstValue.setValue(AstValue.java:206)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.zel.impl.ValueExpressionImpl.setValue(ValueExpressionImpl.java:247)> ~[zel-7.0.6.jar:7.0.6] at> org.zkoss.xel.zel.ELXelExpression.setValue(ELXelExpression.java:50)> ~[zcommon-7.0.6.jar:7.0.6] at> org.zkoss.bind.impl.BindEvaluatorXImpl.setValue(BindEvaluatorXImpl.java:58)> ~[zkbind-7.0.6.jar:7.0.6] ... 77> common frames omitted
↧
placing textbox inside radiogroup template
Hi
I want to display textbox beside radiobutton.i am able to do it if hardcoded, but not when dynamic. Please suggest.
---how to put textbox here---
↧
↧
Ayuda configurando zk 8
Hola, estoy creando un proyecto con zk8, y al levantar el zul me tira el siguiente error:
org.zkoss.xel.XelException: Resource not found ...www.zkoss.org/dsp/web/core
alguien me puede ayudar a solucionarlo?
↧
ckEditor not show up (java project)
Hello. Hope someone can help me.
I am using 3.5.2.0 version and in function I am calling ckEditor as following:
private CKeditor ck;
....
Groupbox classBox = new Groupbox();
ck = new CKeditor();
ck.setCustomConfigurationsPath("/config.js");
ck.setToolbar("MyToolbar");
classBox.appendChild(ck);
....
if( dynamicDocument.getDocument() != null ) {
ck.setValue( new String(dynamicDocument.getDocument()) );
}
The content of js file is following:
var customPluginsRoot = '/editor/plugins/';
CKEDITOR.plugins.addExternal('mergefield',customPluginsRoot+'mergefield/', 'plugin.js');
CKEDITOR.editorConfig = function(config) {
config.extraPlugins = 'mergefield';
config.resize_enabled = false;
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar = [
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['Link','Unlink','Anchor'],
['Print','SpellCheck','Source'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['Image','Table','Rule','SpecialChar','PageBreak','-','Maximize','MergeField']
] ;
};
But when I execute application the ckEditor is not showing up. Any idea what I am missing?
↧
A Real-Time Alarm System with Java EE and ZK Server Push

**Contributor Vincent Feng shares with us his method of creating a real-time system to both retrieve information from a remote embedded system and update the UI with ZK Server Push.**
[Learn more here.](http://books.zkoss.org/wiki/Small_Talks/2016/March/A_Real-Time_Alarm_System_with_Java_EE_and_ZK_Server_Push)
↧
I need the onOK event to trigger onKeyUp not onKeyPressed
Hello everyone, i need for my app that the onOK event is triggered when the user
stops pressing the Intro key. not when they press.
It's a Form-like APP, each time you press intro on a field, the focus jumps to the next field to fill.
The app goes great when they go pressing intro on each field, but
the problem starts when they keep the button pressed after filling one field, it will start jumping fast to each field and all the validations will popup onscreen.
Any chance on interrupting the onOK event to wait till te user release the key, or replace it for the keyup event?
Thanks in advance and sorry about my poor eng.
↧
↧
Missing "target" paramter for Executions.SendRedirect
Hi all
I'm having a weird problem. I am running ZK 3.5.1 and try to make a link open in a new window. However, when I code
Execution.sendRedirect(url, "blank");
The compiler says the Execution.sendRedirect(String, String) does not exists, only Execution.sendRedirect(String) does. It does not appear in my IDE popup window either, even though it is present in the javadoc online.
AM I missing something? Is there a jar tha need update? My JDK is 1.6, I use NetBeans 6.1rc2
Thanx
↧
selectAll checkmark on listbox header is checked when listbox is empty
Hi all,
My listbox looks like:
If model is empty my listbox in browser render with checked "selectAll" mark in header. Is this default behavior of ZK listbox? How to change this behavior?
P.S. If model is not empty check mark in header is not checked.
↧
java.lang.IndexOutOfBoundsException in listbox
I have this ViewModel:
package mx.mindwork.relativity6.controllers.clients;
import java.util.ArrayList;
import java.util.List;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.Init;
import org.zkoss.zk.ui.Executions;
import mx.mindwork.relativity6.models.clients.Client;
public class ClientListVM {
private List clients;
private int selectedIndex;
@Init
public void init() {
clients = new ArrayList<>();
}
@Command
public void newClient(){
Executions.sendRedirect("/clients/clientsForm.zul");
}
public List getClients() {
return clients;
}
public int getSelectedIndex() {
return selectedIndex;
}
public void setSelectedIndex(int selectedIndex) {
this.selectedIndex = selectedIndex;
}
}
And this view:
Clients List
If I use as is, I get this error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.util.ArrayList.rangeCheck(ArrayList.java:653)
java.util.ArrayList.get(ArrayList.java:429)
org.zkoss.zul.ListModelList.getElementAt(ListModelList.java:156)
org.zkoss.bind.converter.sys.AbstractSelectedIndexConverter.coerceToUi(AbstractSelectedIndexConverter.java:50)
org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:74)
org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:133)
org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:334)
org.zkoss.bind.impl.BinderImpl.loadComponentProperties0(BinderImpl.java:2307)
org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2276)
org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2281)
org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:2215)
org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:575)
org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:551)
org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:190)
org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:588)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:931)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:877)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:748)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:822)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:771)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:709)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:452)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:358)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
If I create some dummy data and add to the clients array, works as expected. Any hints to make this work with empty array?
↧
The server is temporarily Out of Service. Would you like to try again (0)
Platform:
1. Web Server - Apache 2.4 (with mod_jk and 2-way SSL enabled, client authentication is needed)
2. App Server - Wildfly 9 + ZK 7.0.3 application
3. Browser - IE 11 / Chrome / Firefox
Users always encountered error "The server is temporarily Out of Service. Would you like to try again (0)" when performing actions in random pattern. This problem only happens in IE 11 (not even IE 8, Chorme nor Firefox) We suspected if it is network issue, but users were using IE 8 before and such no problem found. Also, disabled all the IE Plugins. But, problem still occurred. Please urgently advise the root cause. Thanks!
1. Web Server - Apache 2.4 (with mod_jk and 2-way SSL enabled, client authentication is needed)
2. App Server - Wildfly 9 + ZK 7.0.3 application
3. Browser - IE 11 / Chrome / Firefox
Users always encountered error "The server is temporarily Out of Service. Would you like to try again (0)" when performing actions in random pattern. This problem only happens in IE 11 (not even IE 8, Chorme nor Firefox) We suspected if it is network issue, but users were using IE 8 before and such no problem found. Also, disabled all the IE Plugins. But, problem still occurred. Please urgently advise the root cause. Thanks!
↧
↧
ExecutionArgParam possible parameters java types
Hi and good morning!
I have a question:
Which kind of java type is possible to send via "ExecutionArgParam" ?
The usage I need is similar the example below:
But I'd like to send String[] instead of String.
Someone know if its possible?
@Init
public void init(@ExecutionArgParam("arg1") String arg1){
this.arg1 = arg1;
}
Thank you in advance
Morena
↧
svg richlet
I'm working with richlet and I'm trying to generate svg but I don't found any class to handle this.
↧
Create zk theme 8.0.1
I read the instructions for creating more here zk
http://blog.zkoss.org/2013/09/17/zk7-create-a-new-a-theme-project/
But I do not find zk-archetype-theme on the link http://mavensync.zkoss.org/maven2/ 8.0.1 (http://mavensync.zkoss.org/maven2/archetype-catalog.xml). so as the create themes in eclipse error
↧