Re: [Wicket-user] AJAX modal window (1.2.5)and form
I badly need this functionality working too. Can you advice me on how to change the form component updating behavior or write a new one? Below is the generated html and js for a simple RadioChoice(sex, Arrays.asList(M, F)). wicketSerialize will take the else branch for span elements, so it will always return . I'm not sure about the best way to fix this. Cheers, Carlos span wicket:id=sex id=sex5 onblur=var wcall=wicketAjaxPost('test?wicket:interface=:2:testForm:sex::IBehaviorListener:0', wicketSerialize(document.getElementById('sex5')), function() { }, function() { }); input name=sex type=radio value=0 id=sex_0/label for=sex_0M/labelbr / input name=sex type=radio value=1 id=sex_1/label for=sex_1F/labelbr / /span wicketSerialize = Wicket.Form.serializeElement; Wicket.Form.serializeElement = function(e) { var tag = e.tagName.toLowerCase(); if (tag == select) { return Wicket.Form.serializeSelect(e); } else if (tag == input || tag == textarea) { return Wicket.Form.serializeInput(e); } else { return ; } } On 3/29/07, Johan Compagner [EMAIL PROTECTED] wrote: there is support for it now on the javascript side. matej, you created a boolean for me in the wicket serialize method, we only need a behavior (or make the current one smarter) that uses that, radios and checkboxes did seem to work at my place On 3/29/07, Matej Knopp [EMAIL PROTECTED] wrote: afaik there's no support for ajax and radio choices currently. On 3/29/07, Nino Wael [EMAIL PROTECTED] wrote: heheh obviously i am using onchange and not onchance:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 29-03-2007 13:42 Til: [EMAIL PROTECTED]; [EMAIL PROTECTED] Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: [EMAIL PROTECTED] Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: [EMAIL PROTECTED] Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target
Re: [Wicket-user] AJAX modal window (1.2.5)and form
Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn
Re: [Wicket-user] AJAX modal window (1.2.5)and form
heheh obviously i am using onchange and not onchance:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 29-03-2007 13:42 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user
Re: [Wicket-user] AJAX modal window (1.2.5)and form
afaik there's no support for ajax and radio choices currently. On 3/29/07, Nino Wael [EMAIL PROTECTED] wrote: heheh obviously i am using onchange and not onchance:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 29-03-2007 13:42 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll
Re: [Wicket-user] AJAX modal window (1.2.5)and form
there is support for it now on the javascript side. matej, you created a boolean for me in the wicket serialize method, we only need a behavior (or make the current one smarter) that uses that, radios and checkboxes did seem to work at my place On 3/29/07, Matej Knopp [EMAIL PROTECTED] wrote: afaik there's no support for ajax and radio choices currently. On 3/29/07, Nino Wael [EMAIL PROTECTED] wrote: heheh obviously i am using onchange and not onchance:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 29-03-2007 13:42 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1
[Wicket-user] AJAX modal window (1.2.5)and form
Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino winmail.dat- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX modal window (1.2.5)and form
If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX modal window (1.2.5)and form
it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user winmail.dat- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics