Re: backspace - when not on focus in field

2014-03-13 Thread Martin Grigorov
Hi,


On Thu, Mar 13, 2014 at 3:15 AM, nazeem  wrote:

> Thanks Niranjan & Swen, I managed to add this js to block backspace when
> not
> on focus on form fields. I believe this fix will not be required when we
> get
> Wicket 7 ajax history support ?
>

Ajax history support is not in the roadmap for Wicket 7.


>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922p4664932.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: backspace - when not on focus in field

2014-03-12 Thread nazeem
Thanks Niranjan & Swen, I managed to add this js to block backspace when not
on focus on form fields. I believe this fix will not be required when we get
Wicket 7 ajax history support ? 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922p4664932.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: backspace - when not on focus in field

2014-03-12 Thread Niranjan Rao

On 03/12/2014 09:04 AM, nazeem wrote:

I use lot of ajax to replace panels on user clicks so that user can drill
down deep in to the page view. When using forms if the focus is not on text
field or any form fields. hitting backspace takes the user all the way to
the main page. How can i prevent this behavior ?

naz

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922.html
Sent from the Users forum mailing list archive at Nabble.com.

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


I don't think this has anything to with wicket.

I believe you have two fold problem. One is how to overcome browser's 
default key handling - backspace in many browsers has same functionality 
as hitting the back button. Other one is how to maintain navigation 
history when using ajax generated pages.


For your backspace problem, take a look at 
http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back


There are many solutions for web about managing history for ajax pages. 
Research them and see which one fits your needs.


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



Re: backspace - when not on focus in field

2014-03-12 Thread Sven Meier

http://stackoverflow.com/questions/2645681/how-to-disable-backspace-if-anything-other-than-input-field-is-focused-on-using

Sven

On 03/12/2014 05:04 PM, nazeem wrote:

I use lot of ajax to replace panels on user clicks so that user can drill
down deep in to the page view. When using forms if the focus is not on text
field or any form fields. hitting backspace takes the user all the way to
the main page. How can i prevent this behavior ?

naz

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



backspace - when not on focus in field

2014-03-12 Thread nazeem
I use lot of ajax to replace panels on user clicks so that user can drill
down deep in to the page view. When using forms if the focus is not on text
field or any form fields. hitting backspace takes the user all the way to
the main page. How can i prevent this behavior ?

naz

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922.html
Sent from the Users forum mailing list archive at Nabble.com.

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