zul

How to add many <row> components in ZK in specific position

不打扰是莪最后的温柔 提交于 2020-01-04 07:51:21
问题 I'm working in a ZK application and I need to add <row> 's components based on user input. The zul is like this: <grid id="mygrid"> <rows id="rows"> <row> <cell> <label value="Rows to add 1:"/> </cell> <cell> <textbox id="txt_addRows1"/> </cell> </row> <!-- Here I need to add rows specified in txt_addRows1 --> <row> <cell> <label value="Rows to add 2:"/> </cell> <cell> <textbox id="txt_addRows2"/> </cell> </row> <!-- Here I need to add rows specified in txt_addRows2 --> <row align="right">

How to create custom pagination in ZK

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:59:14
问题 I could not find any tutorial regarding custom pagination in zk. ZK provides it's default pagination and it's quite good but my customer needs different pagination style. So, how can I create custom pagination in ZK. Any help please ? I have a listbox like this : <listbox id=”bidLbx” mold=”paging”> <listitem> ... </listitem> </listbox> It displays ZK's default pagination like: 1 2 3 4 5 Next Last but with out option to select per page row number. So, I need my own Buttons and per page

How to dynamically add listheaders and listcells in ZK

淺唱寂寞╮ 提交于 2019-12-23 04:26:11
问题 I am totally new in ZK. I need to create N listheaders and N listcells in my zul file. But I do not know how to do it from my java controller and I am not using MVVM. The problem would be something like: @Wire private Window idWindow; private Listheader header; private Listcell item1; @Override public void onCreate(Event event) { header.setLabel("laaaa");// It would set just one header but I can have many (N headers) and same for items } <zk> <window id="idWindow" title="nameWindow" apply=

Pass value from viewmodel to script in zk

只谈情不闲聊 提交于 2019-12-12 16:49:23
问题 I am trying to use PDFObject to show the pdf files inline. The application may contain many files. All the files are shown in the list. On clicking any one of the file, the pdf should be viewable if browser contains the pdf plugin or else show some anchor tag to download the file. The problem I am having is .. I couldn't figure out how to pass the file name from viewmodel to the script in the zul page. This is what I have done so far.. <?page title="Auto Generated index.zul"?> <?script type=

Getting an error as “Could not initialize class sun.net.www.protocol.http.HttpURLConnection” in ZK Framework

删除回忆录丶 提交于 2019-12-12 05:48:22
问题 My code is below : home.zul <?page title="Home" contentType="text/html;charset=UTF-8"?> <zk> <window title="Home" border="normal" maximizable="true" height="488px" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.company.login.HomePage')"> <borderlayout> <north height="80px"> <hlayout> <div> <a image="/Image/books.png" id="image" onClick="@command('getImage')"/> </div> <space width="600px"/> <menubar id="menubar" width="100%" autodrop="true"> <menuitem label="Home" /> <menu

zk framework: how to load zul pages from WEB-INF under directory zul

牧云@^-^@ 提交于 2019-12-11 00:25:38
问题 I am using zk framework 6. I am trying to put my zul pages in /WEB-INF/zul directory. My index.zul file forwards the request to /WEB-INF/zul/login.zul which has a composer LoginComposer. But when I am on login page I want to redirect the user to another page e.g. home.zul. But I am getting 404 error. Both login.zul and home.zul are in zul directory along with their respective composers. in loginComposer.java i have the following code to redirect to the home page which is called on a button

Is it possible use @NotifyChange instead of BindUtils.postNotifyChange?

旧街凉风 提交于 2019-12-07 16:36:07
问题 I have one confusion use between @NotifyChange and BindUtils.postNotifyChange ,Why use this two event .Before i read this question In ZK Can we PostNotifyChange more than one variables . But i cant understand this question why use this more than one variable. Here's an example: @Command @NotifyChange({ "folderInfoList", "isDisabled", "selectedFolderInfo" }) public void refreshFolderInfo() { logger.debug("Refresh Icon selected"); if (isDirty()) { Messagebox.show(pageResourceBundle.getText("JS

ZK window not unique in ID space

戏子无情 提交于 2019-12-07 10:13:44
问题 In our project we use ZK for webpages. There is a combobox which has lists. When selected, it fetches data from a java object through onSelect , i have given the logic. when i select one there are 4 listboxes on that page to be filled with data according to the selection. when i select first time, no problem occurs. But on second time i get an error pop-up like "Not Unique in the id space of Window" and showing the list box item id which have to be filled on select. Can any one help out there

Override “Processing” in ZK

坚强是说给别人听的谎言 提交于 2019-12-06 12:08:54
问题 <?page id="p" title="Data Profiling Home" contentType="text/html;charset=UTF-8"?> <zk> <button label="Procesing" onClick="Clients.showBusy(null)"></button> </zk> OnClick of button I see this : I want to Override the Processing widget so that I can acheive this. I have searched, in ZK documentation but din't find any help, have any one tried this earlier or any hint,link or reference, can this be acheived In ZK? 回答1: Please try <zk> <button label="busy"> <attribute name="onClick"> busyWin

Is it possible use @NotifyChange instead of BindUtils.postNotifyChange?

放肆的年华 提交于 2019-12-05 19:29:13
I have one confusion use between @NotifyChange and BindUtils.postNotifyChange ,Why use this two event .Before i read this question In ZK Can we PostNotifyChange more than one variables . But i cant understand this question why use this more than one variable. Here's an example: @Command @NotifyChange({ "folderInfoList", "isDisabled", "selectedFolderInfo" }) public void refreshFolderInfo() { logger.debug("Refresh Icon selected"); if (isDirty()) { Messagebox.show(pageResourceBundle.getText("JS_CONFIRM_DATAMODIFED"), pageResourceBundle.getText("JS_CONFIRM_DATAMODIFED_TYPE"), Messagebox.OK |