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

Can't check Checkbox ZK7

$
0
0
Hello, been fiddling with checkboxes in ZK7 and, I think, encountered a bug in which I can't check a checkbox via a button using an onClick event. If you guys can confirm the bug or tell me what am I doing wrong it would be really helpful. Thanks in advance.

Multiple row save in form MVVM

$
0
0
I have to submit multiple rows at a time. I have USER POJO and Address POJO from JAVA. public class User{ private String name; //other property private List
address; //getter setter } public class Address{ public String city; public String state; } Now from UI side I have to dynamically add multiple address by click on addnew button from UI so new address row will be display on UI. when I click on save all data will be pass as form. I am not able to set address as list in form for User POJO.

Radio and checkbox focus styling

$
0
0
Hi there! I'm trying to make some styling on radio and checkbox, when they are in focus state. I tried with css, using the pseudo element before and the selector :focus like this example in zkfiddle.org/sample/114ju54/2-Focus-styling-on-checkbox-and-radio. This solution only works in Google Chrome, and not in Firefox or IE. How I can archive this feature, working in all browsers? In my perspective this feedback is very useful for users, when they are filling big forms, and the tab button is used to pass to the next field. ZK team do you consider add this focus feedback in one upcoming release? Waiting for one reply, Thanks!

Multiple row constraint in form MVVM

$
0
0
I am saving multiple row at same time. I applied constrain on filed but it is not working while I am submitting form. I followed below example for test 1) blog.zkoss.org/2015/02/03/zk8-new-form-binding-approach 2) github.com/zkoss-demo/zk8-formbinding-demo But for Category list I set constraint for Category but it is not working. Can anyone please help me, I stuck with this issue since week? Thanks, Hitesh

Dynamic select radio

$
0
0
Hi, I am trying to use dynamic radio select base on binding field. *** if(self.selectedItem.label.equals("Link")){ questionlink.setVisible(true); questionlink.setConstraint("no empty:please provide link"); questionattachment.setVisible(false); } else { questionlink.setVisible(false); questionlink.clearErrorMessage(); questionlink.setConstraint(null); questionattachment.setVisible(true); }*** based on "isLink" I am deciding to select or not select radio. But when I select another radio button say "documentRadio" which is not select at load time then it is providing me below error. "Illegal Syntax for Set Operation" Can anyone please help me? Thanks, Hitesh

menubar mouseover Style

$
0
0
I need to change the size and color of menubar mouseover and want to remove the effect when the menu as attive. Can someone help me please?

Auto Session Timeout of specific user of column value

$
0
0
Auto Session Timeout of specific user of column value After end time exceed system time then user auto redirected to login page

class not found

$
0
0
Hello. I got this error when build my zk app. cannot access XulElement. class not found **org.zkoss.zul.impl.api.XulElemnt**. There is no api package under zk libraries. I tried 6.5.3, 7.0.0, 7.0.3, 8.0.0.1 but all of them gives the same error. Can anyone help me to solve this problem.

Infinite Clients.showBusy("")

$
0
0
Hello, on project I migrated from ZK5 to ZK8 and I found strange behaviour of *Executions.deactivate(desktop)* method. I am using: zul - 8.0.11 zkplus - 8.0.11 zkbind - 8.0.111 zk - 8.0.11 How my functionality works: 1. I am pushing button 2. In separate Thread there are going some calculations. 3. At same time there are notifications ( how many calculations done, you should wait, ... ) 4. After all calculations done, there will be a window with message n reassigns done. **My problem is**, that after all calculations are done showBusy window still active. I cannot clear it. Why my suggestion that something wrong with ZK, because I have not change anything in my code. And with ZK5 it still works perfect. **Please refer to classes where I am using it**. *ReassignCommand.java* raw.githubusercontent.com/LibrePlan/libreplan/6498e85928a8709d451a0d51e760a4d937c56af1/libreplan-webapp/src/main/java/org/libreplan/web/planner/reassign/ReassignCommand.java *LongOperationFeedback.java* raw.githubusercontent.com/LibrePlan/libreplan/0600192f1261d5ebdde35a585329d7bcff5ebf4f/ganttzk/src/main/java/org/zkoss/ganttz/util/LongOperationFeedback.java **Note**: As I said, I cannot clear this showBusy method. private IDesktopUpdate busyEnd() { return new IDesktopUpdate() { @Override public void doUpdate() { Clients.showBusy(""); } }; } "Infinite showBusy" will appear after deactivate method: @Override public void run() { List batch = new ArrayList(); while (true) { batch.clear(); EndOrValue current = null; try { current = queue.take(); } catch (InterruptedException e) { throw new RuntimeException(e); } if (current.isEnd()) { return; } if (!desktop.isAlive() || !desktop.isServerPushEnabled()) { return; } try { Executions.activate(desktop); } catch (Exception e) { LOG.error("unable to access desktop", e); throw new RuntimeException(e); } try { original.doUpdate(current.getValue()); while ((current = queue.poll()) != null) { if (current.isEnd()) { break; } batch.add(current.getValue()); original.doUpdate(current.getValue()); } } finally { Executions.deactivate(desktop); } if (current != null && current.isEnd()) { return; } } } **Image**: s32.postimg.org/617fpuwqd/2016_07_12_120520.jpg

how to remove popup with massage "Failed to send requests to server"

$
0
0
Hi, I am getting popup when Ajax call fails with massage "Failed to send requests to server, The server is temporarily out of service.Would you like to try again?", I replaced popup with console log but after that I am still getting popup but its UI got changed. Please help me to get rid of this popup, I do not want to show this popup. My zk version is 6.5.4 I replace : zAu.confirmRetry = function (msgCode, msg2) { if (msgCode =='FAILED_TO_RESPONSE' && msg2.match('SyntaxError') !== null) { window.location = './landingPage.go'; return null; } else { var msg = msgzk[msgCode]; return jq.confirm((msg?msg:msgCode)+'\n'+msgzk.TRY_AGAIN+(msg2?'\n\n('+msg2+')':'')); } } with zAu.confirmRetry = function (msgCode, msg2) { if (msgCode =='FAILED_TO_RESPONSE' && msg2.match('SyntaxError') !== null) { window.location = './landingPage.go'; return null; } else { var msg = msgzk[msgCode]; return console.log((msg?msg:msgCode)+'\n'+msgzk.TRY_AGAIN+(msg2?'\n\n('+msg2+')':'')); } };

postNotifyChange works only the first time

$
0
0
Hi, I have an Arraylist of 20 objects to view in a grid. For each row I have a combobox. The visibility of another field depends from the combobox's value. This is my zul code: To change dinamically the disable property of the intbox, I want to use the postNotifyChange statement. So I have this code: @Command public void updateVersion(@BindingParam("index") int index) { BindUtils.postNotifyChange(null, null, dataListModel.getDataList().get(index), "isVersionDisabled"); } where isVersionDisabled is a method of the object of my arraylist. This is the code: public boolean isVersionDisabled() { if (codSistProv != null && codSistProv.equalsIgnoreCase("MX90")) return false; return true; } So, if I use this code, this works correctly only the first time, on the first element of the grid. In all other cases this approch doesn't work. Do you have some idea about the reason? Can you help me to solve my problem? Thanks

Open a window over the Edraw document window

$
0
0
I am trying to open a modal from the Edraw document window. (I open a word document in eDraw. Now I need to open a Modal over that document.)

Cannot set model for Listbox from EventQueue.subscribe method

$
0
0
Cannot set model for listbox from EventQueue.subscribe method. First time, it works fine, but when i go to another page and returns it shows me weird NPE java.lang.NullPointerException >> at org.zkoss.zk.ui.AbstractComponent.getAttachedUiEngine(AbstractComponent.java:387)>> at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1487)>> at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1462)>> at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1495)>> at org.zkoss.zul.Listbox.resetDataLoader(Listbox.java:2982)>> at org.zkoss.zul.Listbox.setModel(Listbox.java:2377)>> at com.is.sdbooks.controller.ComposerTest.refreshModel(ComposerTest.java:169)>> at com.is.sdbooks.controller.ComposerTest.onDoubleClick$dataGrid(ComposerTest.java:180)>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)>> at java.lang.reflect.Method.invoke(Unknown Source)>> at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:81)>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:192)>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)>> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:306)>> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:329)>> at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:3052)>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:192)>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)>> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1626)>> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1410)>> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1134)>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562)>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457)>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:465)>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)>> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)>> at java.lang.Thread.run(Unknown Source) Here i publish to EventQueue from another page's controller. By the way, this page is included with include tag to my main .zul file. eq = EventQueues.lookup("CLIENTS", EventQueues.DESKTOP, true); eq.publish(new Event("onClick", null, customer)); Here I'm subscribing in my main controller to EventQueue and trying to set model for the listbox eq = EventQueues.lookup("CLIENTS", EventQueues.DESKTOP, true); eq.subscribe(new EventListener() { public void onEvent(Event event) throws Exception { if (!Executions.getCurrent().getDesktop().isAlive()) { eq.unsubscribe(this); return; } Customer customer = (Customer) event.getData(); if (customer != null){ id = customer.getId(); crm_div.setVisible(false); // Listbox from another page // When a user clicks it, dataListBox should be rendered dataListbox.setVisible(true); dataListbox.setModel(new DataListboxModel()); } else{ alert("No client"); } } });

infinite parent child hierarchy combobox

$
0
0
public class Node{ private String value; private List children; //getter setter } I have to display Node as combobox having value Yes and No. when Yes is selected children Node will display same will repeat until children is found empty. This hierarchy is infinite like Node->children->children->....->children. How can I display this parent child in ZK UI?

How to correctly bind a List of an Object in Combobox?

$
0
0
Hi I am currently testing ZK and developing a normal .zul page with a panel having apply="org.zkoss.bind.BindComposer" and a viewModel ="@id('vm') @init('model.users.UserModel') (which I created appart in java) and inside the panel and the panelchildren I have a grid which I bind with the model. It's all working great but now I am having issues on how to bind a List that I have in my model something like List in which Profiles is a class that have id and name so what I am trying to do is this: But is not working tho, any ideas? pd: The combobox is an element inside in the grid I mentioned bedore

zats client return 503

$
0
0
hello, i have next test code public class FirstTest { private static ZatsEnvironment env; @BeforeClass public static void init() { env = new DefaultZatsEnvironment("C:\Projects\TEST_WAR\src\main\webapp\WEB-INF"); env.init("./src/main/webapp"); } @AfterClass public static void end() { env.destroy(); } @After public void after() { env.cleanup(); } @Test public void test() { DesktopAgent desktop = env.newClient().connect("/"); ComponentAgent button = desktop.query("button"); ComponentAgent label = desktop.query("label"); button.click(); assertEquals("Hello Mimic", label.as(Label.class).getValue()); } } and i have next error org.zkoss.zats.ZatsException: Server returned HTTP response code: 503 for URL: http:/ / 127.0.0.1:49600/ how make right config for zats

Displaying overlaping Tabs.

$
0
0
Hi, in my app it happens frequently users open many tabs. At this moment tabs get scrollable and this way I can navigate between tabs.But it very soon gets confusing. Is there a possibility to get list of tabs in drop down section? Like for example in Firefox or eclipse. This way i can use longer names for tab label and users are able to fastly change to desired tab. Thanks Michal

[Help] how to get value from dynamic id combobox and textbox

$
0
0
hi, im just wanna ask question to you guys .. im kinda new to this framework ..... how to i get value from this dynamic id sorry for my bad english regards,

zats mock session

$
0
0
Hello, i try run Zats session, but SecurityFilter doesnt fire, and application not work as real. How can mock session or emulate user auth. i use next code from answer http: / /forum.zkoss.org/question/101199/zats-client-return-503/

How to wire combobox inside listcell?

$
0
0
this is my parent.zul ...... this is my list.zul ...... this is my controller.java @Wire("#composerDEPO #bankNameList") Combobox bankNameList; the #composerDEPO is include id of list.zul on parent.zul, if the bankNameList is moved outside the listbox, the bankNameList combobox can be wired, but if the bankNameList combobox inside the listcell like in the code it won't wired. So how to wire combobox from inside a listcell?
Viewing all 9640 articles
Browse latest View live