-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a custom button component with the following doClick_ in my javascript:
doClick_: function (evt) {
evt.data.enterKeyPressed = this._enterKeyPressed;
this._enterKeyPressed = false;
this.$supers('doClick_', arguments);
},
In the java code of my widget in the service method:
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_CLICK)) {
Event evt = Event.getEvent(request);
MouseEvent mevt = MouseEvent.getMouseEvent(request);
The evt variable contains the enterKeyPressed in data, however if I create a MouseEvent the mevt variable has _data of null. It seems the MouseEvent.getMouseEvent(request) strips the data.
Is there a work around for this ? I need to fire a MouseEvent with the data I added on the javascript side.
Thanks.
Asked: 2017-02-01 00:21:12 +0800
Seen: 16 times
Last updated: Feb 01 '17
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status