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

id$composer is not bound i.e. is null ( after upgrade from 5.0.14 to 6.0.2 )

$
0
0
Hello, 'id$composer' ( 'messageLogin$composer' in my instance ) evaluates to null in : The composer initializes without any problem - i.e. I have a breakpoint in doAfterCompose(). Please help. I need to access members of the composer class in zul.

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!

Render on Demand ,Listbox doesn't work after a defined list size

$
0
0
Hi , I have been trying to implement Render on demand functionality on listbox. I added this listner to my class : public class LazyListbox extends Listbox { . . public void initialize() { addEventListener("onDataLoading", new EventListener() { public void onEvent(Event event) throws Exception { DataLoadingEvent dataLoadingEvent = (DataLoadingEvent) event; int offset = dataLoadingEvent.getOffset(); int limit = dataLoadingEvent.getLimit(); ListModel origModel = LazyListbox.this.getModel(); if (origModel instanceof RenderOnDemandListModel>) { RenderOnDemandListModel> model = (RenderOnDemandListModel>) origModel ; model.loadCache(offset + 1, offset + limit); } } }); } . . . } Every thing is working fine. and I was able to successfully implement this functionality. Now the only problem I face is that after a certain list size(around 11,18,480) ,this event stops getting called. So when I Scroll down nothing happens. I think the Component(listbox in this case) is not able to send the AUrequest to server. I still don't know the reason why. If somebody is able to identify and have a solution for this please reply. Thanks in advance.

Tablet device detection

$
0
0
Hi, is there any way we can detect if the user is using a tablet with ZK components? I ask because the interface changes automatically if there's a tablet, but I have to do some different tasks inside the application depending on the devide (tablet/PC). I've seen that you can know if there's an IPad, but I've not found any standard tablet check. Many thanks

Problem with exception being thrown within modal window

$
0
0
The problem I have is pictured in [this fiddle](http://zkfiddle.org/sample/d81hea/3-DoModal-wth-Exception) I created: If you click on the Order coffee button, I've forced a Runtime Exception to be thrown whithin the doAfterCompose method of the modal window's controller. As you can see the modal window gets appended at the bottom of the page. This, aside from being ugly, allows the user to click again the Order Cofee button, which causes the famous "Not unique ID in space" error. Is there any way to prevent the window from being created when an Exception is thrown?

Databinding on HTMLMacroComponent @Bind not working

$
0
0
I have a HtmlMacroComponent that is embeded in a form defined as: Producer(s) : My custom macro component `` works correctly when databinding is defineded like the above. However, if I define databinding like: using the short hand @bind instead of @save and @load the value is not updated on the intermediate form object before the command operation. I thought the `before='onUpdateProduction'` would take care of this on its own? Why does the long form work but the short form not?

Tooltips in chosenbox elements

$
0
0
I need to implement some chosenboxes to have tooltiptext in the selected elements, like this: h**p://i62.tinypic.com/m82xyc.png Zk Team, can you extend the chosenbox to allow this behavior? If not, how I can archive this behavior? Thanks a lot, Waiting for one reply,

Customize chosenbox emptymessage styling

$
0
0
I want to use empty message of chosenbox with a diferent styling of the user input, but there is no css class to distinguish both. Here is one image of what I need to do: h**p://i61.tinypic.com/2zsbhw0.png Zk Team, can you extend the chosenbox to allow this behavior? If not, how I can archive this behavior? Thanks a lot, Waiting for one reply,

as print text mode line by line on the client with zk

$
0
0
I'm new to this, I can only print using the JasperReport but not Postscript printers and how to manipulate the client to print each line of text, for example because print an invoice. Thank you in advance who can help me.

Timeline Zk7

$
0
0
Hi guys! Anyone is using the timeline with zk 7? I tried to follow the steps described in books.zkoss.org/wiki/Small_Talks/2007/February/Using_Timeline_Component,_Part_I, but when I start the application I have the following error: SEVERE: Mold default for timeline ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:44:9] Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang WARNING: Component bandinfo ignored. Reason: unable to load org.zkforge.timeline.Bandinfo due to java.lang.NoClassDefFoundError: org/zkoss/zk/au/Command Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang SEVERE: Mold default for bandinfo ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:53:9] Nov 17, 2014 10:55:41 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang SEVERE: Mold default for hotzone ignored because widget-class is required, [null:zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/gui/qdx50u/war/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml:61:9] I'm using ZK EE 7.0.3.2, and the zk timeline zk-Timeline-1.1-1.zip from the previous wiki page. I checked the source code and I think that this implementation has been done for ZK 2.2.0, and in zk 7 the class org.zkoss.zk.au.Command doesn't exist. Is there any new implementation? If yes, where I can find the latest ZK timeline implementation? If not, what is the better approach to implement the timeline in my application? Waiting one reply, Thanks for your time.

_doBlur error on custom component

$
0
0
I have created a custom component which is a replacement for the zul.inp.Textbox. Every time I leave a page with this component on it it throws an error in the red box: "Failed to mount: Listener _doBlur not found in foo.bar.inp.Textbox" Which is correct as the function is never references. If I add the _doBlur function the error goes away, but this is not an ideal solution. The Textbox is defined as follows: foo.bar.inp.Textbox = zk.$extends(zul.inp.InputWidget,{ .... bind_: function () { this.$supers('bind_', arguments); this.domListen_(this.$n(), "onBlur","doBlur_"); }, unbind_: function () { this.domUnlisten_(this.$n(), "onBlur"); this.$supers('unbind_', arguments); }, doBlur_: function (evt) { if (!this._disabled) { if (this.isRequired()){ if (this.desktop) this.markAsInvalid(this.getInputValue().trim() == ''); } return this.$supers('doBlur_', arguments); } },

Gpolygon with points(coordinates) from database?

$
0
0
Hello all, The points would be coordinates from datebase. I want to represent ZKGpolygon on ZKGmaps with points(coordinates) from database, using JAVA and Hibernate. How can I can get the coordinates make Gpolygon with them.

Combobox scroll event

$
0
0
Hi everyone, It is just a simple request so no code for this. I simply want to capture Combobox scroll event . Please help.Thanks

OnClick event on Gpolygon?

$
0
0
Hi all! I want to make Gpolygon clickable, but zk Gmaps does not support "clickable". I want to call a method, when Gpolygon is clicked

Not unique in ID space <Window gmaps

$
0
0
Here I want to check on checkbox and set the component to editabe, but whenever I check the box, it throws this excepetion Not unique in ID space : gp Here is the component:

How can I add the 'autocomplete' HTML tag to the Textbox component

$
0
0
We would like to give the browser a hint not to save passwords. The recommended way is to the use the autocomplete="off" tag on the input html tag. Is there a way that one could add / append this option to the html code that is generated by the textbox mold? Regards Eddie

Problem running ZK Plugin in Eclipse

$
0
0
Hello, I successfully installed the ZK Plugin for Eclipse 3.7 I have installed Eclipse 3.8, however, the ZK plugin seems not supporting my version of Eclipse. Thanks in advance,

Export a component

$
0
0
I'm trying to export a component to a .jar file using the eclipse. However , when i export the component into a .jar file and import in a empty project , it doesn't work. It shows a window the follow message : "HTTP Status 500 - file: ... /build/web/pagina.zul:23:23: Component definition not found: componentA in [LanguageDefinition: xul/html] " and "org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file: ... /build/web/pagina.zul:23:23: Component definition not found: componentA in [LanguageDefinition: xul/html] " right below. How can i fix this ?

Combobox performance issue

$
0
0
Hi , I have 13000 element in combobox , and it is very slow . First I thought it might be slow in first load only . but it is slow every time user opens or select a item from it. Then i thought of "ondataloading" event similar to "listbox" component. but was not able to implement it . I thought of to load elements on client scroll but i think it might also be slow. Can any one help out please. Thanks in advance.

Redraw widget in client side

$
0
0
Hi All, I create a custom component. The mold is as follows: out.push('
'); if (this.isShowMinimise()){ out.push('
'); } out.push('
'); This works when the component is attached to the dom. But when the showMinimise property is updated I need to redraw the widget so that the div for minimised is added or removed. I know there is a redraw method on Widget, but I am not sure which array I am meant to be passing to this... Thanks.
Viewing all 130 articles
Browse latest View live