You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "vr.sundar" <vr...@gmail.com> on 2007/11/09 01:00:15 UTC

Doing something on Shift+Click

Hi,

I have to activate a hidden option when a user shift+clicks something.
 How do I go about doing this? From reading the docs, the idea I
currently have is this: Add a new behavior that extends
AjaxEventBehavior for the onClick event.This behavior should
contribute some javascript that is used on the onClick event. Add this
new js function to the event processing using the IAjaxCallDecorator
interface. This js function will check if event.shiftKey is true. If
so, do the usual wicketAjaxGet otherwise do nothing.

Is this doable? Am I on the right track or is there some simpler way.
Any suggestions greatly appreciated. My other option is to have a
hidden link with an accessKey that I can use to get the job done. But
from what i read accessKey seems to work differently on diff browsers
and OS.

thanks
sundar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Doing something on Shift+Click

Posted by "vr.sundar" <vr...@gmail.com>.
Nino,

Thanks for the pointer. I'll take a look at that. It looks promising.

On Nov 9, 2007 12:30 AM, Nino Saturnino Martinez Vazquez Wael
<ni...@jayway.dk> wrote:
> take a look at
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events
>
>
> vr.sundar wrote:
> > Hi,
> >
> > I have to activate a hidden option when a user shift+clicks something.
> >  How do I go about doing this? From reading the docs, the idea I
> > currently have is this: Add a new behavior that extends
> > AjaxEventBehavior for the onClick event.This behavior should
> > contribute some javascript that is used on the onClick event. Add this
> > new js function to the event processing using the IAjaxCallDecorator
> > interface. This js function will check if event.shiftKey is true. If
> > so, do the usual wicketAjaxGet otherwise do nothing.
> >
> > Is this doable? Am I on the right track or is there some simpler way.
> > Any suggestions greatly appreciated. My other option is to have a
> > hidden link with an accessKey that I can use to get the job done. But
> > from what i read accessKey seems to work differently on diff browsers
> > and OS.
> >
> > thanks
> > sundar
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Doing something on Shift+Click

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
take a look at 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events

vr.sundar wrote:
> Hi,
>
> I have to activate a hidden option when a user shift+clicks something.
>  How do I go about doing this? From reading the docs, the idea I
> currently have is this: Add a new behavior that extends
> AjaxEventBehavior for the onClick event.This behavior should
> contribute some javascript that is used on the onClick event. Add this
> new js function to the event processing using the IAjaxCallDecorator
> interface. This js function will check if event.shiftKey is true. If
> so, do the usual wicketAjaxGet otherwise do nothing.
>
> Is this doable? Am I on the right track or is there some simpler way.
> Any suggestions greatly appreciated. My other option is to have a
> hidden link with an accessKey that I can use to get the job done. But
> from what i read accessKey seems to work differently on diff browsers
> and OS.
>
> thanks
> sundar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>   

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org