-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all!
I have to display tooltip (popup) on every Gmarker on my map, when you click on the marker.I want to add markers to a Gmaps map. And I want them to have multiline information on their tooltip, but whatever I try to display it, it throws me null pointer exception at: window.appendChild(popup); Any ideas why I can't display it?
All classes used are from org.zkoss.zul package.
Popup popup = new Popup();
window.appendChild(popup);
Vlayout vlayout = new Vlayout();
Label labelLine = new Label("ID: " + ccp.getParkPlace().getId());
vlayout.appendChild(labelLine);
popup.appendChild(vlayout);
gM.setTooltip(popup);
ZK Version used: 6.0.5
@VariableResolver(DelegatingVariableResolver.class)
public class MyViewModelVM {
@Wire("#win")
private Window window;
<window id="win" title="Gmaps Demo" border="normal" width="100%" height="100%"
Here is the solution :
public class MyViewModelVM {
private Window win;
@Init
public void init (@SelectorParam("#win") Window window) {
win = window;
}
Note : if the original code is in a command, use the selectorParam there.
Greetz chill.
Asked: 2014-09-17 15:05:58 +0800
Seen: 7 times
Last updated: Sep 18 '14
Id attribute set in zul code doesn't reflect in html code? [closed]
passing present viewmodel to included page. [closed]
Upload Button dosn't work on chrome
How to handle big (large) file upload?
ZK and Dynamic Component And DataBinder
Attributes in macro was not updated after notifyChange
Problem binding values to a composite component
How to access static member field of a class in zul without zscript