Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-02 Thread Martin Zardecki
...@gmail.com Date: May 1, 2010 2:25:25 PM MDT To: users@wicket.apache.org Subject: Re: How to do an AjaxLink shiftOnclick behaviour? thats what checkboxes are for -igor On Sat, May 1, 2010 at 8:23 AM, Martin Zardecki mpza...@truecool.com wrote: Hi List, I have an AjaxLink where I use

Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-02 Thread Igor Vaynberg
do not have explicit support for shift clicking any more than Links do. On 2010-05-02, at 4:29 PM, users-digest-h...@wicket.apache.org wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Date: May 1, 2010 2:25:25 PM MDT To: users@wicket.apache.org Subject: Re: How to do an AjaxLink

How to do an AjaxLink shiftOnclick behaviour?

2010-05-01 Thread Martin Zardecki
Hi List, I have an AjaxLink where I use onClick and everything works well but I'd like to add a separate behaviour when the user shift-clicks the link. The idea is to achieve something similar to when using a Explorer in Windows or in any file picker where a single click selects one item

Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-01 Thread Martin Grigorov
you are trying to mix keyboard and mouse events which is not possible in javascript I think see http://www.javascriptkit.com/jsref/eventkeyboardmouse.shtml for more info On Sat, 2010-05-01 at 09:23 -0600, Martin Zardecki wrote: Hi List, I have an AjaxLink where I use onClick and everything

Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-01 Thread Martin Zardecki
you are trying to mix keyboard and mouse events which is not possible in javascript I think see http://www.javascriptkit.com/jsref/eventkeyboardmouse.shtml for more info Pretty sure it's possible in modern browsers at least: http://www.javascripter.net/faq/ctrl_alt.htm

Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-01 Thread Martin Grigorov
you are totally right! http://jsfiddle.net/Z383n/ so now just add ajaxeventbehavior to your wicket component and override its getAjaxCallDecorator() method to check the event object and decide what action to fire On Sat, 2010-05-01 at 11:06 -0600, Martin Zardecki wrote: you are trying to mix

Re: How to do an AjaxLink shiftOnclick behaviour?

2010-05-01 Thread Igor Vaynberg
thats what checkboxes are for -igor On Sat, May 1, 2010 at 8:23 AM, Martin Zardecki mpza...@truecool.com wrote: Hi List, I have an AjaxLink where I use onClick and everything works well but I'd like to add a separate behaviour when the user shift-clicks the link. The idea is to achieve