Re: Force modal page to reload on Ajax event

2011-06-20 Thread Martin Grigorov
Don't use AjaxFormComponentUpdatingBehavior but use
DropDownChoice.wantOnSelectionChangedNotifications() instead.

On Mon, Jun 20, 2011 at 8:28 AM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 I have a modal window which displays a page (using
 ModalWindow.PageCreator()) with a DropDownChoice with
 AjaxFormComponentUpdatingBehavior(onchange) behavior. I need the
 page in the modal window to reload when the user makes a selection in
 the DropDownChoice. I tried calling modelChanged() in
 AjaxFormComponentUpdatingBehavior#onUpdate(), but that didn't force
 the page in the modal window to reload.

 How can I accomplish this?

 Thanks,

 Alec

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Force modal page to reload on Ajax event

2011-06-20 Thread Alec Swan
But how do I refresh the page in the modal window by overriding
DropDownChoice.wantOnSelectionChangedNotifications()? Where do I get
the handle to AjaxRequestTarget?

On Mon, Jun 20, 2011 at 12:25 AM, Martin Grigorov mgrigo...@apache.org wrote:
 Don't use AjaxFormComponentUpdatingBehavior but use
 DropDownChoice.wantOnSelectionChangedNotifications() instead.

 On Mon, Jun 20, 2011 at 8:28 AM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 I have a modal window which displays a page (using
 ModalWindow.PageCreator()) with a DropDownChoice with
 AjaxFormComponentUpdatingBehavior(onchange) behavior. I need the
 page in the modal window to reload when the user makes a selection in
 the DropDownChoice. I tried calling modelChanged() in
 AjaxFormComponentUpdatingBehavior#onUpdate(), but that didn't force
 the page in the modal window to reload.

 How can I accomplish this?

 Thanks,

 Alec

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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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



Re: Force modal page to reload on Ajax event

2011-06-20 Thread Martin Grigorov
read the javadoc of this method.
try it and come back here with further questions

using Ajax to reload the whole page is non-sense

On Mon, Jun 20, 2011 at 10:25 AM, Alec Swan alecs...@gmail.com wrote:
 But how do I refresh the page in the modal window by overriding
 DropDownChoice.wantOnSelectionChangedNotifications()? Where do I get
 the handle to AjaxRequestTarget?

 On Mon, Jun 20, 2011 at 12:25 AM, Martin Grigorov mgrigo...@apache.org 
 wrote:
 Don't use AjaxFormComponentUpdatingBehavior but use
 DropDownChoice.wantOnSelectionChangedNotifications() instead.

 On Mon, Jun 20, 2011 at 8:28 AM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 I have a modal window which displays a page (using
 ModalWindow.PageCreator()) with a DropDownChoice with
 AjaxFormComponentUpdatingBehavior(onchange) behavior. I need the
 page in the modal window to reload when the user makes a selection in
 the DropDownChoice. I tried calling modelChanged() in
 AjaxFormComponentUpdatingBehavior#onUpdate(), but that didn't force
 the page in the modal window to reload.

 How can I accomplish this?

 Thanks,

 Alec

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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Force modal page to reload on Ajax event

2011-06-19 Thread Alec Swan
Hello,

I have a modal window which displays a page (using
ModalWindow.PageCreator()) with a DropDownChoice with
AjaxFormComponentUpdatingBehavior(onchange) behavior. I need the
page in the modal window to reload when the user makes a selection in
the DropDownChoice. I tried calling modelChanged() in
AjaxFormComponentUpdatingBehavior#onUpdate(), but that didn't force
the page in the modal window to reload.

How can I accomplish this?

Thanks,

Alec

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