Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-30 Thread Matthew P. Tilchen
Frank, Sorry for the latency. I was actually using 'onkeypress' and not 'onkeyup'. I tried using 'onkeyup' and that works. Try using 'onkeypress' and see if you can reproduce it. If so, hopefully something can be done to handle 'onkeypress' consistently across all platforms. Does JS even ha

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-20 Thread Igor Vaynberg
see wicketKeyCode() func in wicket.js that might be of some help.-IgorOn 10/20/06, Frank Bille <[EMAIL PROTECTED] > wrote:Do you have some example code for that? I can't reproduce it (FF1.5), when I'm doing something like this:FrankOn 10/20/06, Frank Bille <[EMAIL PROTECTED]> wrote: > On 10/20/

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-20 Thread Frank Bille
Do you have some example code for that? I can't reproduce it (FF1.5), when I'm doing something like this: Frank On 10/20/06, Frank Bille <[EMAIL PROTECTED]> wrote: > On 10/20/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote: > > > > Unfortunately the mozilla-based browsers do not > > includ

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Frank Bille
On 10/20/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote: Unfortunately the mozilla-based browsers do notinclude the keyCode attribute on the event, it always comes throughas 0 for any key. The other browsers do include the correct unicodevalue. Hmm, do you mean in terms of onkey* on tag? I'll tr

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Matthew P. Tilchen
Thanks again Frank. That was extremely helpful. For the record, all the browsers I tested do fire the event off the body object (Mozilla- based, Safari, IE). Unfortunately the mozilla-based browsers do not include the keyCode attribute on the event, it always comes through as 0 for any key.

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Frank Bille
Wicket doesn't have something like that but you can do it yourself. Take a look at this to get an idea:http://www.nabble.com/CTRL%2Bclick-tf2047972.html#a5640400 FrankOn 10/19/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote: Thanks for the help Frank. The changes you mentioned solved myproblem. I

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Matthew P. Tilchen
Thanks for the help Frank. The changes you mentioned solved my problem. I was operating under the fallacious assumption that the Page object was attached to the tag. Now, regarding the following: "getBodyContainer().getBodyContainer() returns the WebMarkupContainer which corresponds with the

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-18 Thread Frank Bille
getBodyContainer().getBodyContainer() returns the WebMarkupContainer which corresponds with the tag. (Though I don't know how good the support is for having javascript events on the tag in the different browsers) Frank On 10/19/06, Frank Bille <[EMAIL PROTECTED]> wrote: > You need to attach the

Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-18 Thread Frank Bille
You need to attach the event to a tag in the markup. Since the Page component is not directly attached to any tag then you can't use that. Instead use: public class Index extends WebPage { public Index() { super(); final Label testLabel = new Label(this, "message", "Hello

[Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-18 Thread Matthew P. Tilchen
Greetings, I am not certain as to whether this post will end up being a bug report or a feature request but hopefully one of you may have some advice. Ultimately I am trying to invoke ajax calls as a result of capturing "onkeypress" events fired by the document object. I have successfully