Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mathilde Pellerin
It works well when I don't provide the complete path ! Thank you a lot Mike !

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Kent Tong
> In my unit test, I try to check what radio is selected, but I don't find > how... You may check out http://wicketpagetest.sourceforge.net which will work for this use case. - To unsubscribe, e-mail: users-unsubscr...@wicket.a

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mike Mander
Am 22.08.2011 13:27, schrieb Mike Mander: Am 22.08.2011 09:45, schrieb Mathilde Pellerin: Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void testStory23_TA21_VerificationInitialisationBouto

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mike Mander
Am 22.08.2011 09:45, schrieb Mathilde Pellerin: Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){ Questionnaire questionnair

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mathilde Pellerin
Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){ Questionnaire questionnaire = serviceQuestionnaire.findBytitre("Questionnaire

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Per Newgro
Welcome to wicket Shunmuga Did you check the website http://wicket.apache.org already. It's all there. Check the wiki, component examples and books section. Hope you have fun with wicket Cheers Per - To unsubscribe, e-mail: us

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Shunmuga Raj
, true); >Assert.assertTrue("Node " + row + " is collapsed", > t.get(0).getAttributeIs("class", "tree-junction-expanded")); >} > > > Please see TagTester.createTagsByAttribute for concrete parameters > required.

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Müller
s working. Hth Mike Original-Nachricht > Datum: Fri, 19 Aug 2011 18:38:43 +0200 > Von: Mathilde Pellerin > An: users@wicket.apache.org > Betreff: Re: how to test what radio is checked in a radiogroup? > hum, yes and no... I mean, page is loaded by an ajax res

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink), but then there is no Ajax. This is the entire test, maybe it can help : @SuppressWarnings("unchecked") @Test @Transactional @Rollback public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 16:38, schrieb Mathilde Pellerin: I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestionnaire:genre:femme"); TagTester tagHomme = tester.getTagByW

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestionnaire:genre:femme"); TagTester tagHomme = tester.getTagByWicketId("formCreationQuestionnaire:genre:homme");

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 15:35, schrieb Mathilde Pellerin: Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestio

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestionnaire:genre:femme"); TagTester tagHomme =

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 14:21, schrieb Mathilde Pellerin: Hi all, I have a form with a Radiogroup : In my form, I have a radiogroup like this : RadioGroup genre = new RadioGroup("genreDestinataire"); genre.setRequired(true); genre.setLabel(new Model("Genre destinataire"));

how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
Hi all, I have a form with a Radiogroup : In my form, I have a radiogroup like this : RadioGroup genre = new RadioGroup("genreDestinataire"); genre.setRequired(true); genre.setLabel(new Model("Genre destinataire")); genre.add(new Radio("femme", new Model("f")));