Re: Redirect to the HomePage on newSession

2013-02-15 Thread Stefan Renz
vov wrote: Is it possible to redirect user to the HomePage when new session is created? @Override public Session newSession(Request request, Response response) { //RequestCycle.get().setResponsePage(getHomePage()); //or //RequestCycle.get().replaceAllRequestHandlers(new

Re: Redirect to the HomePage on newSession

2013-02-15 Thread vov
Hi Stefan, It's a good solution but I have external authentication system and only thing that I know - is creation of the new session:( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365p4656384.html Sent from the

Re: Twenty-Six Wicket Tricks Book

2013-02-15 Thread Sebastian Gaul
I cannot find anything related there. His blog started long after the book. Am 14.02.2013 14:51 schrieb Ian Marshall ianmarshall...@gmail.com: Perhaps a good source of information is Jonathan's blog at: http://codeact.wordpress.com http://codeact.wordpress.com Ian Sebastian Gaul wrote

Re: Can AjaxFormSubmitBehavior skip validation on form field updating

2013-02-15 Thread e . spyrop . w
I think that, if you move your validations away from the fields, you will be able to handle this situation and others very gracefully. I usually perform my validations on the buttons, themselves. It requires quite more typing, but gives maximum flexibility. Elias wicket_new_user

Re: Several Form onSubmit, is it possible add via AbstractBehavior?

2013-02-15 Thread Sven Meier
You could add a custom Behavior to your FormCompoments. Let this Behavior implement IValidator and it will get notice of a form submit via #validate(). Hope this helps Sven On 02/14/2013 07:05 AM, Alex wrote: Hi. I have AjaxFallbackButton on the form with defined onSubmit handler. There also

Submit form before handle onclick

2013-02-15 Thread Gonzalo Aguilar Delgado
Hello, We have just a situation were the information of the form needs to be updated before handling an ajax click event. The page has a form, with a bean and some TextFields that update the properties in the bean. It has also an ajax component that also updates the bean. The problem is

Re: Submit form before handle onclick

2013-02-15 Thread Sven Meier
Use AjaxFormSubmitBehavior with #setDefaultProcessing(false). Sven On 02/15/2013 11:01 AM, Gonzalo Aguilar Delgado wrote: Hello, We have just a situation were the information of the form needs to be updated before handling an ajax click event. The page has a form, with a bean and some

Re: Several Form onSubmit, is it possible add via AbstractBehavior?

2013-02-15 Thread Alex
As I understand the only way to catch the form's onSubmit is by analyze form components validation which is performed by form submitting. And if validation is successful then form submit will be done for sure. Am I correct understand? Trying to find workaround for this issue,in MyCustomBehavior

Why does a ModalWindow create a form Tag to be rendered in?

2013-02-15 Thread mwwbf
Hi Everyone, I'm using ModalWindows and AjaxEditableLabels and everything was working fine for me. But a stupid tester decided to use the return key(insted of just clicking the next item) after he entered something in a AjaxEditableLable within a ModalWindow. This caused the Form created in

Re: Overriding onEvent to update choices side of Palette

2013-02-15 Thread grazia
Let me give you more context: my page consists of: - a lazy loading autocompletetextfield - a form containing the palette By selecting an option in the autocomplete, the left side of the palette (choices side) should display that selection made in the autocomplete. So, I have so far managed to

Re: Why does a ModalWindow create a form Tag to be rendered in?

2013-02-15 Thread Sven Meier
Can anyone Tell me the reason for using a form at this location? This is done to allow the following nesting: body --form Form [1] div ModalWindow [2] --div Form [3] input FormComponent [4] Note that in Wicket nested Forms [3] are rendered as divs. When ModalWindow [2] pulls

Re: 6.0 Migration issue: wrap Wicket Ajax JS-code as previously with AjaxCallDecorators

2013-02-15 Thread Martin Dietze
On Thu, February 14, 2013, Fred!!! wrote: it's possible to set an throtteling delay by Wicket AjaxRequestAttributes. Have a look at https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-AjaxRequestAttributes Something like this: new AjaxEventBehavior(onkeydown){

Another Wicket 6 migration issue: drag and drop (so far done with wiquery)

2013-02-15 Thread Martin Dietze
Another thing I am stuck trying to port my project from Wicket 1.4.x to 6.6.0 is DND-mechanics which so far had been implemented using wiquery 1.2. As I see the 'DroppableAjaxBehavior' class has disappeared from wiquery since the 6.0 release. However no mention could be found on either migration

Re: Another Wicket 6 migration issue: drag and drop (so far done with wiquery)

2013-02-15 Thread Ernesto Reinaldo Barreiro
Hi, It seems that behavior was not ported into 6.x branch. I have created https://github.com/WiQuery/wiquery/issues/17 and will try to fix the issue ASAP. On Fri, Feb 15, 2013 at 2:20 PM, Martin Dietze d...@fh-wedel.de wrote: Another thing I am stuck trying to port my project from Wicket

Re: Why does a ModalWindow create a form Tag to be rendered in?

2013-02-15 Thread mwwbf
The proposted patch in WICKET-3404 should really be in 7. Thanks for explaining! Sven Meier wrote Can anyone Tell me the reason for using a form at this location? This is done to allow the following nesting: body -- form Form [1] div ModalWindow [2] -- div Form [3]

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-15 Thread divad91
My mistake, I works great with the nullvalid. I just realize that if I have an onchange behavior and a javascript (jQuery) onchange function bind on the same dropdown, with IE, calling the javascript onchange function will also call the wicket onchange behavior. Can't figure out why. -- View

Re: Twenty-Six Wicket Tricks Book

2013-02-15 Thread Ian Marshall
You could always visit the Coding: On Software Design Process section of Jonathan's blog (it's an excellent book, by the way) and ask him your question from there. Ian Sebastian Gaul wrote I cannot find anything related there. His blog started long after the book. Am 14.02.2013 14:51 schrieb

Re: DropDownChoice not updating model

2013-02-15 Thread Lucio Crusca
In data Thursday 14 February 2013 12:59:05, Sven Meier ha scritto: Then the DropDownChoice should work fine. Try to create a quickstart please. You are so f***ing smart :) The quickstart just worked and showed me what I was doing wrong, basically this: District currentSelection = ... //

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread evan
Hi Francois, Thanks, but actually this still has issues. At first I thought it was clearly the simple thing I was missing, but then I remembered there's still a problem - the line in renderHead copied from the original MultiFileUploadField uses private members container, max, and upload, so the

DropDownChoice - single choice, preselect automatically

2013-02-15 Thread prasopes
I know I can preselect the value of DropDownChoice by setting the corresponding value in the model. My use case is this: I have several DropDownChoice with OnChangeAjaxBehaviors. Selection of value in one DDChoice enables second DDChoice. The values in second DDChoice depend on the value selected

Re: Behavior.renderHead stopped working after migration from 1.4 to 6.5

2013-02-15 Thread Artur
Hi, try something on the lines... @Override public void afterRender(Component component) { component.getResponse().write(your HTML here); } THANK YOU! It was exactly what I was looking for! Works great. Artur - To

Re: DropDownChoice - single choice, preselect automatically

2013-02-15 Thread Sven Meier
#onConfigure() would be a good place to preselect something. Sven On 02/15/2013 05:21 PM, prasopes wrote: I know I can preselect the value of DropDownChoice by setting the corresponding value in the model. My use case is this: I have several DropDownChoice with OnChangeAjaxBehaviors.

Re: DropDownChoice not updating model

2013-02-15 Thread Sven Meier
You are so f***ing smart :) Sometimes :P. Sven On 02/15/2013 04:43 PM, Lucio Crusca wrote: In data Thursday 14 February 2013 12:59:05, Sven Meier ha scritto: Then the DropDownChoice should work fine. Try to create a quickstart please. You are so f***ing smart :) The quickstart just

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread Francois Meillet
Le 15 févr. 2013 à 16:48, evan e...@novelution.com a écrit : Hi Francois, Thanks, but actually this still has issues. At first I thought it was clearly the simple thing I was missing, but then I remembered there's still a problem - the line in renderHead copied from the original

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread evan
Okay, so you are saying I need to create my own versions of each of those private variables referenced in renderHead, and override any methods that use any of them, to reference my own, is that right? Unfortunately, it still has maintenance implications, but I guess that might just be inevitable

Re: Another Wicket 6 migration issue: drag and drop (so far done with wiquery)

2013-02-15 Thread Emond Papegaaij
DroppableBehavior is the replacement of DroppableAjaxBehavior. You use it like this: final DroppableBehavior droppableBehavior = new DroppableBehavior(); droppableBehavior.setDropEvent( new AjaxDropCallback() { protected void drop(AjaxRequestTarget target, Component source, Component dropped)

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread Francois Meillet
if the question is how to modify internal JavascriptResourceReference packaged with component I will just override @Override public void renderHead(IHeaderResponse response) { // initialize the javascript library

Re: Another Wicket 6 migration issue: drag and drop (so far done with wiquery)

2013-02-15 Thread Ernesto Reinaldo Barreiro
Hi, I just added old AJAX behaviors for backward compatibility. On Fri, Feb 15, 2013 at 8:28 PM, Emond Papegaaij emond.papega...@gmail.comwrote: DroppableBehavior is the replacement of DroppableAjaxBehavior. You use it like this: final DroppableBehavior droppableBehavior = new