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

Does combobox support grouping like listbox, grid?

$
0
0
It seem like zk combobox doesn't support grouping like http://harvesthq.github.io/chosen/ or listbox, grid, so I must custom this component. That's right?

Composite component children

$
0
0
Hello, I'm creating a composite component that extends from Hlayout. Its based zul is: Then I include in my view others children components within myComposite component ... My problem is that the element listbox is created after the button but what I'm trying to do is the button renders after the listbox. I already read zk documents about Composite Components but there aren't information related to composite components including children components.

http://ameblo.jp/putbiooz/entry-12011788005.html

$
0
0
Where to find furious 7 ratio to determine X value doubt) and proceeded to tell the late-night host how her parents almost named her Ruby. They decided not to, however, because, "My dad thought 'Ruby Johnson' sounded like a stripper's name," she explained.SpongeBob GreyPants." Or maybe "Fifty Shades of SpongeBob." ameblo.jp/putbiooz/entry-12011788005

zk 6.5.3 & session serialization: didActivate invoked many times

$
0
0
Hi, I have quite a few zul forms powered by generic forward composers. I've been trying to make these forms fully serializable in order to achieve high availability. Quite to my surprise every composer's didActivate method gets invoked not just once, but many times. Exactly one for every listener defined as public void onXXX$... in the controller. By debugging I've seen that, within this piece of AbstractComponent's code: if (_auxinf != null && _auxinf.listeners != null) for (Iterator> it = CollectionsX.comodifiableIterator(_auxinf.listeners.values()); it.hasNext();) for (EventListenerInfo li: it.next()) didActivate(li.listener); every li.listener amounts to the controller instance itself. I can of course very easily keep track of whether a certain didActivate invokation must be paid heed to by establishing a counter to be incremented in didPassivate and decremented in didActivate but, all the same, is it a bug or is it done on purpose (and in this case, which one)? Regards

Upgradation ZK Spreadsheet from 3.5 to 3.8

$
0
0
Hi , I have developed an application in version 3.5 , now i need to update it to 3.8 .... Can any one help me in upgrading my version from 3.5 to 3.8 Please tell me how to upgrade it

Design your own zk theme roller

$
0
0
Hi, Can any one help me to design own theme roller for application? I have found lot examples for customizing theme but I need something like Theme roller so that user can select whatever background,font,font-size he wants. Thanks in advance for your help!!!

ZK 5.0.5 Menupopup automatically displaces from pointer position for successive clicks on IE11. Is this known issue for IE11?

$
0
0
1. Set context menu on a Tab. Right Click on Tab. 2. First right click shows menupopup in correct location. 3. For subsequent right clicks menupopup is rendered on different position away from the mouse pointer.

zk session in oracle coherence cache session

$
0
0
Hi, I need help from someone who has experience in zk over Oracle Coherence environment. I have several problems in zk session for a correct execution. best regards

ZK 7 Project Start-up Kit – Dynamic Menu

$
0
0
[ZK 7 Project Start-up Kit – Dynamic Menu](http://emrpms.blogspot.in/2015/03/zk-7-project-start-up-kit-dynamic-menu.html)

Problem rendering radio button in IE8

$
0
0
Hi, I've hit a problem with radio button in ZK 7 in Internet Explorer 8 which is situated in a raw in a listbox when the page's scale is not equal to 100%. A line appears above the radio-button at the scale of 125%. Furher investigation showed, that the radio button is produced using a background image url(/edonpf/zkau/web/5cc76c26/zul/img/common/check-sprite.gif) no-repeat, which is shifted depending on if the button is selected or not. Actually, the line is the lower part of the chechbox on the same background image. What can be done to mend this problem? It is prfeferable that the circle should be rendered without any artifacts above or below. :)

jasperreport?

$
0
0
please help me public void showReport() throws JRException { personDataSet = potManager.getAllObjec(MasterPotongan.class); String reportFile = Executions.getCurrent().getDesktop().getWebApp() .getRealPath("/maj_zul/payrollbulanan/masterpotongan"); reportFile = reportFile + "/report2.jasper"; (this 247) JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile, null, new JRBeanCollectionDataSource(personDataSet)); //view the report using JasperViewer JasperViewer.viewReport(jasperPrint,false); } i have an error this: java.lang.NullPointerException>> at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89)>> at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:628)>> at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:544)>> at org.maj.hr.payroll.bulanan.masterpotongan.MasterPotonganWND.showReport(MasterPotonganWND.java:247)

zk7 maven releases

$
0
0
Hi, i'm using zk-bootstrap plus zk 7 for a project. I've created a maven project but if i try to use a zk with a version higher than 7.0.0 zkex and zkmax are not found in maven repository. If i remove them from dependencies all is compiled but some classes are not found (zul xel functions for example). Are they needed also in the newer versions? Why i can download them? Thank you

Get all rows in zk grid (mold='paging')

$
0
0
Hi everyone I had a paged grid on my pages, I want to get all rows in the grid but when i use the getRows() method, it only return the current page rows. Please tell me some hints. Thanks

zk ckeditor toolbar invisible

$
0
0
Hello, i have my ckeditor (version is 3.6.4) on my page jsp; when the page is shown, the component ckeditor has some problems: - the toolbar configured in the .js file is not shown... the path seems correct - The size of the ckeditor is standard (very small) and cannot be change using height/width (neither setting on js file the height/width) - when the page is shown i get this error (firebug): TypeError: jq(...).ckeditor is not a function ckez.wpd (line 42564) --> jq(this.$n('cnt')).ckeditor(function(){ any idea to solve this problem (i try using new version of ckeditor but i get the same problem)? thank you

getting null on @Listen("onEventEdit = #calendars") event SelectorComposer<Component> on clustered environment

$
0
0
Hello Everyone, I have two tomcats deployed at my machine and using clustered environment for my application.I am using zk calendar at in my application.I am using SelectorComposer for listing events and for Create/Edit of events I am calling my own custom jsp files.Everything works fine when application is deployed only on one tomcat but for clustering on clicking of edit of event I am getting an alert mentioning "null" only.It works fine for create event.I am unable to get the issue as it is displaying only "null" in alert. My zul file looks like
${labels.Filter} :
Also my CalendarController.java is public class CalendarController extends SelectorComposer implements Serializable { private static final long serialVersionUID = 1L; DateFormat formatter; int key = 0; public HashMap eventMap = new HashMap(); @Wire private Calendars calendars; @Wire private Textbox filter; private CalendarModel calendarModel; //the in editing calendar ui event private CalendarsEvent calendarsEvent = null; @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); calendarModel = new CalendarModel(new CalendarData().getCalendarEvents()); calendars.setModel(this.calendarModel); } @Listen("onEventCreate = #calendars") public void createEvent(CalendarsEvent event) { System.out.println("onEventCreate :::"+event.getName()); formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm"); String stDate = ""; String endDate = ""; if (event != null) { stDate = formatter.format(event.getBeginDate()); endDate = formatter.format(event.getEndDate()); } String uri = "createEvent.jsp?startDate=" + stDate + "&endDate=" + endDate; try { java.net.URLEncoder.encode(uri, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } Executions.getCurrent().sendRedirect(uri, "_parent"); } /* Unable to call this method when used in clustering*/ @Listen("onEventEdit = #calendars") public void editEvent(CalendarsEvent event) { try { System.out.println("onEventEdit"); org.zkoss.calendar.Calendars cal = (org.zkoss.calendar.Calendars) event.getTarget(); SimpleCalendarModel m = (SimpleCalendarModel) cal.getModel(); SimpleCalendarEvent sce = (SimpleCalendarEvent) event.getCalendarEvent(); int index = m.indexOf(sce); eventMap = (HashMap)Sessions.getCurrent().getAttribute("eventMap"); int eventid = Integer.parseInt(eventMap.get(index).toString()); String uri = "e_event.jsp?eventid="+eventid; java.net.URLEncoder.encode(uri, "UTF-8"); Executions.getCurrent().sendRedirect(uri, "_parent"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } @Listen("onEventUpdate = #calendars") public void updateEvent(CalendarsEvent event) { System.out.println("onEventUpdate"); CalendarEvents data = (CalendarEvents) event.getCalendarEvent(); data.setBeginDate(event.getBeginDate()); data.setEndDate(event.getEndDate()); calendarModel.update(data); } } Please help me out.Any help would be highly appreciated. Regards, Aasif Iqbal

How to reference in zscript component which id contains spaces

Open Graph metadata

$
0
0
Hello, I would like to use Open Graph metadata like "og:image" or "og:title" in my zul pages. Is there a way to do it? Thx for answers. Ludek.

How can I change less file runtime?

$
0
0
Hi, I am trying to compile less file during development phase using link which is available on ZKSite But it throws NoClassDefFoundException for ZkLessServlet Can any one guide me which jar file is needed for this or what extra thing that I have to do to for resolving this error?? Any help would be appreciated.

Disabling clicking on label?

$
0
0
I have some labels with an onCLick event defined on a Zul page. Is there a way to deactivate the onClick from Java, just like it is possible for buttons?

ZK 7.0 popup type toggle, Lazy loading

$
0
0
When the page is loaded complete,Triggering event for the first time,The Dynamic setting properties do not perform. javacode:
@Listen("onClick=#updwon") public void onClickAdd() { int index = emial.getChildren().size(); //emial equals is popup id. System.out.println("index=" + index); if (1 > index) { Html h = new Html(); h.setContent(updwon.getValue()); emial.appendChild(h); updwon.setPopup(emial.getId() + ", type=toggle,delay=100"); //updwon equals is Lable id. } } yes , Can't display properly for the first time, second to display properly.
Viewing all 9640 articles
Browse latest View live


Latest Images