Focus navigation on form components by pressing ENTER

2013-09-07 Thread Farrukhjon SATTOROV (farrukh)
Hi everyone, how to set focus on next form component (TextField) by pressing on ENTER key in current TextField. Thanks in advance.

Re: Focus navigation on form components by pressing ENTER

2013-09-07 Thread Sven Meier
http://stackoverflow.com/questions/4494552/change-enter-from-submission-to-tab/4494691#4494691 On 09/07/2013 12:11 PM, Farrukhjon SATTOROV (farrukh) wrote: Hi everyone, how to set focus on next form component (TextField) by pressing on ENTER key in current TextField. Thanks in advance.

Re: Focus navigation on form components by pressing ENTER

2013-09-07 Thread Farrukhjon SATTOROV (farrukh)
My code here: sizeTextField.add(new AjaxEventBehavior(ENETER_KEY_OR_SOMTHING_LIKE_THIS) { @Override protected void onEvent(AjaxRequestTarget target) { target.focusComponent(unitTextField); } }); but i don't known how handler passing ENTER key and pass this as parameter to AjaxEventBehavior. On

Re: Focus navigation on form components by pressing ENTER

2013-09-07 Thread Carl-Eric Menzel
You don't need an ajax behavior to do this. This is all client-side javascript only, as described in the stackoverflow post. You can of course use a regular behavior to emit the necessary javascript. Carl-Eric On Sat, 7 Sep 2013 15:50:06 +0500 Farrukhjon SATTOROV (farrukh) fireda...@gmail.com

Re: Test based on AbstractWicketTest fails with No RequestCycle is currently set

2013-09-07 Thread Martin Grigorov
On Fri, Sep 6, 2013 at 7:41 PM, Martin Dietze d...@fh-wedel.de wrote: On Fri, September 06, 2013, Martin Grigorov wrote: 2. #testAddingAndSwitchingFields you look at the wrong test we cannot help you when we have the wrong source given Yes, sorry, I picked the wrong stacktrace,

Re: Tests based on WicketTester: NPE in ConcatBundleResource.readAllResources

2013-09-07 Thread Martin Grigorov
On Fri, Sep 6, 2013 at 8:11 PM, Martin Dietze d...@fh-wedel.de wrote: On Fri, September 06, 2013, Martin Grigorov wrote: Is there a chance that you create a bundle without any resource(reference) ? Not quite sure I understand this correctly, In YourApplication#init() you something like:

AutoCompleteTextField suggestions popup position issue when container has scrollbar

2013-09-07 Thread Rakesh A
Hi, I am trying to use wicket's AutoCompleteTextField, which is placed inside a Div, and it has vertical scrollbar, in this case when scroll bar is not at 0 position, the auto complete suggestions popup is not shown next to the text box. I've attached a quickstart which helps reproducing this

Custom Component Converter not called

2013-09-07 Thread Malte Neumann
Hello! I've got a problem with a TextField and the depending CustomConverter. The converter of the component is not been called. So the default converter takes the task and fails. In my case this problem occurs when my IModel.getObject returns null. The problem arises in the

Re: Problem with Panel default model

2013-09-07 Thread kiranduba
Hi David, Did you found the solution for this problem? I'm also facing such kind of issue. I have a Model with list of POJO. On drag/drop i'm giving ajax call and updating the paramter in POJO which is in Model. If I call sort on the list of POJO based on parameter the Model reset's to the initial

Re: Custom Component Converter not called

2013-09-07 Thread Sven Meier
Hi, if you don't specify the type, a TextField will try to resolve the type from its model, see AbstractTextComponent#resolveType() and IObjectClassAwareModel. Shouldn't there be a pre-examination wheter a component converter is available? Without type there can't be a converter. Sven

Re: AutoCompleteTextField suggestions popup position issue when container has scrollbar

2013-09-07 Thread Andrea Del Bene
Hi, I can't find a workaround for you, but I will open an issue with a patch for the next release. Hi, I am trying to use wicket's AutoCompleteTextField, which is placed inside a Div, and it has vertical scrollbar, in this case when scroll bar is not at 0 position, the auto complete