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

Php mysql in array query not working

$
0
0
$query = "SELECT admin_name FROM admin WHERE admin_code IN('123','6895')"; try { $result = $this->dbh->prepare($query); $result->execute($parameter); $data = $result->fetch(\PDO::FETCH_ASSOC); return $data; } catch (\PDOException $e) { return false; } what is the error of this code i can't able to get return value i run the same query in mysql working fine.

zk chart double click

$
0
0
- unable to handle double click - i have multiple drill down in the chart - i am handling single click, but when a user click twice, it goes to two level down.

Error ZK8: BaseURI must not be null when load zhtml from classpath /zkau/web/..

$
0
0
I am testing ZK 8 using some project with ZK7, i have some templates writed in zhtml and loaded from classpath using /zkau/web/mypath/template.zhtml. In Zk 7 works perfect but in ZK 8 i'm getting this exception: java.lang.IllegalArgumentException: BaseURI must not be null at org.zkoss.zsoup.helper.Validate.notNull(Validate.java:26) at org.zkoss.zsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:25) at org.zkoss.zsoup.parser.TreeBuilder.parse(TreeBuilder.java:40) at org.zkoss.zsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:55) at org.zkoss.zsoup.parser.Parser.parseInput(Parser.java:30) at org.zkoss.zsoup.helper.DataUtil.parseByteData(DataUtil.java:115) at org.zkoss.zsoup.helper.DataUtil.load(DataUtil.java:63) at org.zkoss.zsoup.Zsoup.parse(Zsoup.java:135) at org.zkoss.zhtml.impl.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:328) at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:148) at org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinitionDirectly(PageDefinitions.java:96) at org.zkoss.zk.ui.http.ZumlExtendlet$ZumlLoader.parse(ZumlExtendlet.java:200) at org.zkoss.zk.ui.http.ZumlExtendlet$ZumlLoader.parse(ZumlExtendlet.java:193) at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:112) at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:41) at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227) at org.zkoss.util.resource.ResourceCache$Info.(ResourceCache.java:202) at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134) at org.zkoss.zk.ui.http.ZumlExtendlet.service(ZumlExtendlet.java:97) at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:605) at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:592) at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:272) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:424) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) Tracking the exception i found this in **org.zkoss.zhtml.impl.HtmlTreeBuilder** line 328: return convertToIDOM(Zsoup.parse(inputStream, "UTF-8", null, Parser.xhtmlParser())); The third parameter of Zsoup.parse() is the **BaseURI** and must not be null. I testing recompiling ZK 8.0.2.2 from source and replacing that **null** for an **empty string** "" and the exception is gone and works fine. But i cant use my compiled version because i get the error message **"Your ZK binary is being altered and may not work as expected.. call potix bla bla"** I dont know why this message if ZK is opensource and LGPL or there is a way to turn off this message :(

combobox does not scroll autocompleted text into view

$
0
0
I have a combobox with autodrop="true" so it automatically opens on the first entered letter. That works. But the autocomplete doesn't work as expected. When the combobox is opened, it doesn't scroll the autocompleted item into view. Which for me would be the expected behaviour. I had the same problem with ZK 5, now I updated to ZK 8 and it seems that there is still the same behaviour? Am I doing something wrong (since years) or is that really the intended behaviour? With the same ugly fix as i Used in ZK 5 it works (some javascript, see fiddle). But the in viewed scrolled item, is at the bottom of the viewable list not at the top, as most application would do it. Here a short zk fiddle to show the behaviour. The first combobox as it is, where it doesn't scroll the item into view, the second one where it does (with the ugly fix) http://zkfiddle.org/sample/1hol4o3/2-Combobox-jumping-to-autocompleted-text Somebody could tell me if that is the indented behaviour, if I'm doing something wrong and if there exists a better solution? thanks a lot in advance :-)

Illimited XHR request to zkau

$
0
0
I'm building a zk application using richlet and when lunch my application in the browser and after loading the page and all the components I check the Network section in the inspection mode and I notice that there's an illimited call to the zkau with XHR request. I commented all the code in the service method in the richlet except an eventListener Tabs tabs = (Tabs)Sessions.getCurrent().getAttribute(ZKConstants.SESSION__TABS); ZKUtils.addSessionEventListener(tabs, false, event -> { if (event.getName().equals(ZKConstants.EVENT__GENERATE_VIEW)) { ZkUtil.generateView((EObject)event.getData()); } }, ZKUtils.getSessionEventQueue(Sessions.getCurrent())); } and the requests are still being sended to the server. Is there a way to stop the propagation of this requests ?

Use only Swipe-Event right-left

$
0
0
Hi all, i have a tabbox with several tabpanels. I check the Swipe-Event for left and right swipe on every tabpanel and change the tabpanels when the Event is fired. Here is the code for a tabpanel: public void onSwipe$tperg(SwipeEvent event) throws RemoteException { SwipeEvent se = (SwipeEvent) event; if (se.getSwipeDirection().equals("right")) tbinfo.setSelected(true); else if (se.getSwipeDirection().equals("left")) tbsearch.setSelected(true); } On a tabpanel i have a grid. It is no longer possible to scroll the Grid vertically. Is it possible to ignore the up/down Event? I think that is the problem that it no longer works. Regards Andi

how to get rid of startpageing123.com redirect from browser

$
0
0
Someone can help me get rid of startpageing123.com site link from my Chrome browser? The annoying link always appears in the browser address bar every time I open the browser. I type www.google.com into the address bar to delete it but it comes back again. I don't know whether it is a malware that will damage my PC if I keep it on computer for a long time? There are many anti-malware programs (Malwarebytes Anti-Malware, SpyHunter, NOD32 Online Scanner,Adwcleaner,TDSSKiller, etc)claim to help remove the latest malware within a few steps. Which is more powerful and effective?

Aalu with gobhi Tadka==1.800>>844>>0887=== QuiCKbOOks SuPPoRt PhONe NumBER !@!1.800.844.0887!@! #@#Quickbooks support number#@#

$
0
0
1-800-844-0887 Quickbooks Tech Support Phone Number 1800-844-0887 Quickbooks Tech technical help telePhone Number,1 800 844 0887 Quickbooks Tech technical help contact Number,1 800 844 0887 Quickbooks Tech technical Support contact Number,1 800 844 0887 Quickbooks Tech contact Number,1 800 844 0887 Quickbooks Tech contact Phone Number,1 800 844 0887 Quickbooks Tech contact telePhone Number,1 800 844 0887 Quickbooks Tech 24 hour contact Number,1 800 844 0887 Quickbooks Tech customer Support contact Number,1 800 844 0887 Quickbooks Tech customer service contact Number, Quickbooks Tech official Number,1 800 844 0887 Quickbooks Tech official contact Number, Quickbooks Tech 800 contact Number, Quickbooks Tech toll free Number, 800 Number for Quickbooks Tech Support, Quickbooks Tech 24/7 Support Phone Number Quickbooks Tech Support PhoneNumber,Quickbooks Tech Support Phone Number,Quickbooks Tech help PhoneNumber, Quickbooks Tech technical Support Number.Quickbooks Tech Support Number, Quickbooks Tech Phone Number, Quickbooks Tech HELP DESK Number, Quickbooks Tech customer Support Number, Quickbooks Tech customer Support Phone Number, Quickbooks Tech customer service Phone Number, Quickbooks Tech customerservice Phone Number, Quickbooks Tech Support Phone Number. Help@Call 1-800-844-0887/.Quickbooks Tech 24/7 Support Phone Number,Quickbooks Tech telePhone Number for Support? call 1800-844-0887@./Quickbooks Tech contact Number, Quickbooks Tech contact Phone Number, Quickbooks Tech contact telePhone Number,,telePhone Number for Quickbooks Tech online Support,Quickbooks Tech official Support Number,Quickbooks Tech official Number,Quickbooks Tech official PhoneNumber,,,Phone Number for Quickbooks Tech Support,,Quickbooks Tech 24/7 Support Phone Number,,Quickbooks Tech Support Number,Quickbooks Tech telePhone Numberfor Support QB SUPPORT ON ((1-800-844-0887)) Quickbooks Tech PHONENUMBER AND Quickbooks Tech SUPPORT PHONE NUMBER Online Support For (((1+800+844+0887)!!! Quickbooks Tech ((Technical)) Support PhoneNumber,, Quickbooks Tech HELP DESK Phone Number Online Support For (((1+800+844+0887)!!! Quickbooks Tech ((Technical)) Support Phone Number,, Quickbooks Tech HELP DESK Phone Number Helpline TECH ))1-800-844-0887((Quickbooks Tech technical Support Phone Number Quickbooks Tech PhoneNumber QB SUPPORT ON ((1-800-844-0887)) Quickbooks Tech PHONENUMBER AND Quickbooks Tech SUPPORT PHONE NUMBER Quickbooks Tech Toll Free, Intuit@(1-800-844-0887)@ Quickbooks Tech HELP DESK Phone Numbervides online solution for all USA/CANADA clients. For any help of query call 1 800 844 0887 to get all Quickbooks Tech account solution. @@Call, 1-800-844-0887 for all type help by Quickbooks Tech HELP DESK Phone Number, Intuit Quickbooks Tech HELP DESK Phone Number, Quickbooks Tech Help Desk Phone Number, Quickbooks Tech HELP DESK Number, Quickbooks Tech technical Support PhoneNumber,@@@ Quickbooks Tech Phone Number, Quickbooks Tech technical Support Number, Quickbooks Tech Support Phone Number, Quickbooks Tech technical Support, Quickbooks Tech Customer Service Phone Number, Quickbooks Tech CustomerService Number, Quickbooks Tech Customer Support Phone Number, Quickbooks Tech Customer Support Number,@@@@ Quickbooks Tech CustomerService Helpline Number, Quickbooks Tech Customer Care Number, Quickbooks Tech Support team Phone Number, @@@@@ Quickbooks Tech help Number-Quickbooks Tech Helpline Number; Quickbooks Tech help Phone Number-Quickbooks Tech Helpline Number, Quickbooks Tech HELP DESK Toll free Number, Quickbooks Tech Support TelePhone Number, Quickbooks Tech HELP DESK TelePhone Number, Quickbooks Tech HELP DESK contact Number, Quickbooks Tech Support contact Number, Quickbooks Tech technical Support contact Number. Call, Quickbooks Tech HELP DESK Phone Number, Intuit Quickbooks Tech HELP DESK PhoneNumber, Quickbooks Tech Help Desk Phone Number, Quickbooks Tech HELP DESK Number, Quickbooks Tech technical Support Phone Number, Quickbooks Tech PhoneNumber, Quickbooks Tech technical Support Number, Quickbooks Tech Support PhoneNumber. It is very popular toll free Number which vide by Quickbooks Tech technical Support, Quickbooks Tech Customer Service Phone Number, Quickbooks Tech Customer Service Number, Quickbooks Tech Customer Support Phone Number, Quickbooks Tech Customer Support Number, Quickbooks Tech Customer Service Helpline Number, Quickbooks Tech Customer Care Number 1800-844-0887 @@@@Quickbookssupport phone Number, quickbooks support phone number usa, CA, 1800-844-0887 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 @@@@Quickbooks support phone Number, quickbooks phonenumber usa, CA, 1800-844-0887 =quickbooks support number =quickbooks support phone number =quickbooks phone number =quickbooks support number =quickbooks support phone number =quickbooks customer service phone number =quickbooks help phone number =quickbooks help desk phone number quickbooks support phone Number, quickbooks phonenumber usa, CA =quickbooks customer service number quickbooks helpline number quickbooks support phone Number, quickbooks phonenumber usa, CA quickbooks contact number quickbooks support telephone number quickbooks online tech phone number quickbooks customer support phone number quickbooks number quickbooks telephone number Quickbooks support phone Number, quickbooks phonenumber usa, CA quickbooks support phone Number, quickbooks phonenumber usa, CA quickbooks help desk number quickbooks premier support phone number quickbooks customer care phone number quickbooks customer support number quickbooks online tech technical support phone number intuit quickbooks support phone number Quickbooks support phone Number, quickbooks phonenumber usa, CA intuit quickbooks phone number phone number for quickbooks quickbooks customer care number quickbooks online tech customer service phone number quickbooks online tech help number quickbooks 800 number intuit quickbooks support number quickbooks customer service telephone number quickbooks support telephone number quickbooks online tech phone number quickbooks premier phone number quickbooks pos support phone number Quickbooks support phone Number, quickbooks phonenumber usa, CA quickbooks enterprise support phone number quickbooks 24 7 support phone number quickbooks online tech customer service phone number quickbooks intuit phone number quickbooks online tech contact number quickbooks online tech help phone number quickbooks online tech customer support phone number quickbooks customer support telephone number intuit quickbooks technical support phone number intuit quickbooks customer service phone number phone number for quickbooks support quickbooks contact phone number quickbooks online tech helpline phone number intuit premier phone number quickbooks online tech customer service number quickbooks premier support phone number quickbooks enterprise phone number quickbooks desktop support phone number quickbooks premier support number quickbooks helpline phone number quickbooks contact support phone number quickbooks enterprise support number quickbooks contact number support quickbooks help support number intuit support number quickbooks phone number for customer support quickbooks 1800 number quickbooks online techadvisor support phone number intuit quickbooks contact number intuit phone number quickbooks contact number for quickbooks quickbooks premier customer service phone number quickbooks phone support number qb support phone number quickbooks premier support phone number phone number for intuit quickbooks quickbooks technical support contact number quickbooks support contact number quickbooks help desk telephone number Quickbooks support phone Number, quickbooks phonenumber usa, CA quickbooks enterprise support phone number quickbooks help support phone number quickbooks online tech technical support number quickbooks phone number customer service quickbooks online tech customer support phone number quickbooks help telephone number intuit quickbooks customer service telephone number quickbooks support phone number premier quickbooks intuit support phone number quickbooks pos support number quickbooks online tech telephone number quickbooks customer number quickbooks customer service 800 number quickbooks enterprise support number quickbooks online tech customer support number quickbooks phone number for support intuit technical support phone number quickbooks desktop support number qb online tech support phone number quickbooks online tech phone number support intuit quickbooks help desk phone number Be th

zk combobox filtering option is not working inside listbox .

$
0
0
by attribute autocomplete, on typing a string it is selecting the entire word then again typing it is taking it as a new word. for e.g there a word Environmentalpermit. on typing Env it is getting selected **Environmentalpermit**(listitem) and after typing "ir" it is populating as "Environmentalpermitir". Expected/Right behavior: the focus should remain on Environmentalpermit(listitem) and inside combo box it should be "Envir". Note: It is not working with internet explorer browser. It is working fine with google chrome browser. Zk version: 7.0.8

set iconSclass nav dynamically

$
0
0
Hi i have problem, how to set iconSclass nav dynamically with this method. I mean use many iconSclass. any solution? private Component createNav(ApplicationNavigationEntryModel navEntry) { Nav nav = new Nav(navEntry.getLabel().toString()); nav.setIconSclass("glyphicon glyphicon-list"); for (ApplicationNavigationEntryModel subEntry : navEntry.getSubEntries()) { if (subEntry != null) { Component component = null; if (subEntry.getSubEntries() != null && subEntry.getSubEntries().size() > 0) { component = createNav(subEntry); } else { component = createNavItem(subEntry); } nav.getChildren().add(component); } } return nav; } Best regards!

how remember user name or other text

$
0
0
how remember user name or other text ,tks!

java.lang.IllegalArgumentException: Cannot format given Object as a Date

$
0
0
Good day Community Working with the tutorial Learn_ZK_in_10_Minutes I have DB in mysql table user with a field type DATE where I try to save the user birthday. From the datebox component I get the value: Tue Jul 20 00:00:00 ART 1982. Here is my code where I try to save it: @Listen("onClick=#submitButton") public void register() { String outputDate = null; String inputDate = DateFormat.getDateInstance().format(birthdayBox.getValue()); SimpleDateFormat inputDateFormat = new SimpleDateFormat("EE MMM dd hh:mm:ss z yyyy", Locale.ENGLISH); outputDate = inputDateFormat.format(inputDate); SimpleDateFormat outputDateFormat = new SimpleDateFormat("yyyy-MM-dd"); UserDTO user = new UserDTO(); user.setUserId(idBox.getText()); user.setUserName(nameBox.getText()); user.setUserGender(sex); try { user.setUserBirthday(outputDateFormat.parse(outputDate)); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } facade.insertUser(user); } I get the following exception: 01:30:40,811 ERROR [org.zkoss.zk.ui.impl.UiEngineImpl] (default task-13) : java.lang.IllegalArgumentException: Cannot format given Object as a Date at java.text.DateFormat.format(DateFormat.java:310) at java.text.Format.format(Format.java:157) at foo.RegistrationComposer.register(RegistrationComposer.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.zkoss.zk.ui.select.Selectors$ComposerEventListener.onEvent(Selectors.java:681) 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.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) I don't know where is the problem. Can't anybody help me. Thanks in advanced.

Windows and inter-application communication

$
0
0
Hi everybody! I'm new here so, first of all, thanks community for sharing solutions, tips&tricks and workarounds! I always found something useful for me around this forum. ;) I've different web applications (we call them appA, appB, appC, appD) that manage different aspects. The appD is a app for consultation and it has a zul page that allows to examine item information and surf through several tabs. The zul page is connected to a viewmodel, that calls web services and take all the information. When I'm in one of the apps (AppA, AppB, AppC) and there's a list of items, I would like to be able to open (like a popup window) that zul page of the appD, passing the id of the selected item. I read the documentation about Inter-Application Communication, but I'm able to view the window, only if it's not connected to any viewmodel. This is something like I did: **In the AppA:** // *showListItems.zul* ...... ..... .......... // *showListItemsViewModel.java* package viewmodel; public class showListItemsViewModel{ private List myListItems; private MyItem mySelectedItem; //.... public showListItemsViewModel() { myListItems = getItemsByFilter(...) //... } @AfterCompose public void initSetup(@ContextParam(ContextType.VIEW) Component view) throws InterruptedException { Selectors.wireComponents(view, this, false); innerItemDetail = (Include) myItemDetailWindow.getFellow("innerItemDetail"); } @Command public void showItemWindow() { if (mySelectedItem != null) { try{ // post message to send the selected item id to the other application HttpClient client = HttpClientBuilder.create().build(); HttpPost post = new HttpPost(http://" + host + ":8080/AppD/surfOnItemDetail.zul); List arguments = new ArrayList<>(); arguments.add(new BasicNameValuePair("idSelectedItem", String.valueOf(mySelectedItem.getId()))); post.setEntity(new UrlEncodedFormEntity(arguments)); HttpResponse response = client.execute(post); } catch (IOException e) { e.printStackTrace(); } innerItemDetail.setSrc("~AppD/surfOnItemDetail.zul"); myItemDetailWindow.doHighlighted(); } else Messagebox.show("No item selected"); } //... } **In the AppD:** // *surfOnItemDetail.zul* ..... .... ... // *surfOnItemDetailViewModel.java* package viewmodel.consult; public class surfOnItemDetailViewModel{ //.... public surfOnItemDetailViewModel() { System.out.println("I'm in surfOnItemDetailViewModel"); // retrieve selected item id from HttpServletRequest // web service calls.. } } If I had in *surfOnItemDetail.zul* the appA would be able to show me the window in surfOnItemDetail.zul with label and image. But if I add the attribute `viewModel="@id('vmi') @init('viewmodel.consult.surfOnItemDetailViewModel')"` at the window, it doesn't work, because it doesn't looks for the java file into appD source directory.. Is it possible to do what I'm trying to? Any suggestion to do it? Thanks!

textbox event is not work,please help me!!

$
0
0
zk8.0.4:
Clients.alert(self.value);
if textbox is visible,the event is ok,but wrong not visible,please help,thanks!!

Chrome autofill

$
0
0
I had a problem where the browser autofilling the login fields will not update the corresponding ViewModel variables. After searching some solutions (and finding out some old threads with solutions that didn't work on my case) I have done something like this, and it works.
Is this a good solution? Can it be improved? Is it secure to have a password handled like this?

Combobox sometimes clears the selected item

$
0
0
We are having some problems with selecting an item on a combobox. Sometimes, when the users selects one of the possible options on the combobox, the selected item is null, but the user’s choice, the value that the selected item should have, has been communicated to the viewmodel and has influenced our forms. For us this an error because the user is choosing an option that exists and then the selection in cleared. We didn’t detect this problem until a few months ago and the number of times this has happened has been increasing. This are the conditions we have on the project: • Our comboxes are autodroppable and use autocomplete. • The comboboxes have an event listener. When the focus leaves the combobox, if the selected item is null the combobox has to clear the value inputed by the user. It was a request so the user can see that the inputed value wasn’t found on the combobox. o We deleted this behavior to see if it was the cause of the problem and it wasn’t. • The models used for the comboboxes extend the SimpleListModel. o They are initiated with an empty list and everytime the getSubModel method is called, we communicate with the database using a webservice. Also the max number of results our submodels can have is 10. I tried to replicate this problem in the zk-fiddle, it wasn’t very easy, because it doesn’t have the same conditions, the example isn’t using webservices and isn’t communicating with the database, so to emulate a big delay of the webservice I have put a Thread.sleep. On the example you can see a combobox and a textbox. The selectedItem of the combobox and the value of the textbox are binded to the same property on the viewmodel. If you try different ways to choose the value of combobox (ex: write a character and wait before the second character). Here is the example: zkfiddle.org/sample/37tfq7f/6-Autocomplete-P

bug in zul with @load

$
0
0
Hi all, I'm working on mine new project with zk 7.0.0 Now I need to set a button disabled on 3 requirements : 1. A specific item must be selected(selectedType). 2. I have a list where they can drag into => list may not be empty.(dropListModel) 3. Another list is `checkmark="true" multiple="true"` => must be a selection.(multipleSelectionListModel) Note : the names are changed for simplicity. So I created the following : Error : Org.zkoss.zel.impl.parser.ParseException: Encountered " "empty" "empty "" at line 1, column 24.<|Was expecting:<| ...<| at org.zkoss.zel.impl.parser.ELParser.generateParseException(ELParser.java:2215) Changed it to : Created same error. Created fiddle :[http://zkfiddle.org/sample/3kvld74/29-parsing-error](http://zkfiddle.org/sample/3kvld74/29-parsing-error) I use a List here but List as ListModelList has the method isEmpty. Note: - I'm not looking for a work around, I'm just reporting this issue. Possible work around is creating a method in the viewmodel or for the fiddle : `disabled="@load(vm.items.size() eq 0)"` or : `disabled="@load(vm.items.isEmpty())"` greetz chill.

zkspringmvc jar licence is GPL ?

$
0
0
Hello Team, I need to know is `zkspringmvc-1.0.FL.20160726-Eval` jar is coming under GPL licence? Because no ever it is mention that comes under commercial licence or GPL licence.

When will zk chart upgrade to highchart 5

$
0
0
1.Will zk chart upgrade to highchart 5 recently? 2.Is it possible for zk include highstock?

build zk project with gradle

$
0
0
hey all, is it possible to build a zk project with gradle? are there any examples for it? If not, are there examples to build zk project with maven? Thanks :)
Viewing all 9640 articles
Browse latest View live