assert redirected wicket page

2010-09-27 Thread Antonio Mauriello
In a wicket page I do at some stage a pageRedirect to another wicket page, let say to MyWicketPage.class from the test side it seems I can only check: wicketTester.assertRenderedPage(RedirectPage.class); is there a way to assert which is the actual redirected page? I mean like

issue using executeAjaxEvent for a test

2010-09-07 Thread Antonio Mauriello
Hi All, I have an issue trying to test an ajax event. I have two different wicket classes which need to talk each other. Both classes have a TextField plus a ListMultipleChoice. When the user types a word into the class A textField the items of the class A list get filtered and, based on the new

Re: WicketTester, navigate into tabs

2010-07-28 Thread Antonio Mauriello
use wicketTester.debugComponentTrees(); to dumps the component trees during the junit test On Wed, Jul 28, 2010 at 9:57 AM, loic loic.desco...@gmail.com wrote: Hello, i 'm trying to write unit tests with WicketTester (wicket-test). I have a little problem : i'm trying to access to components

Re: WicketTester, navigate into tabs

2010-07-28 Thread Antonio Mauriello
well in your case it should be tester.debugComponentTrees(); put it at the end of the test since your tester object will contain all the elements of the page. Does your console show the other junit test messages? On Wed, Jul 28, 2010 at 2:09 PM, loic loic.desco...@gmail.com wrote: I'm not

Re: selecting more than one entry from AutoCompleteTextField dropdown

2010-07-23 Thread Antonio Mauriello
Hey Guys, any clue about my (below) post? On Thu, Jul 22, 2010 at 5:51 PM, Antonio Mauriello antoniomau...@gmail.comwrote: Hi All, I have an AutoCompleteTextField element that using the AjaxFormComponentUpdatingBehavior( onchange ) allows me to pass the selection made from the dropdown

Re: selecting more than one entry from AutoCompleteTextField dropdown

2010-07-23 Thread Antonio Mauriello
-autocomplete.js? In that way I can comment out the calls to hideAutocomplete() on KEY_ENTER and onClick as well... Thanks, Antonio On Fri, Jul 23, 2010 at 9:06 AM, Antonio Mauriello antoniomau...@gmail.comwrote: Hey Guys, any clue about my (below) post? On Thu, Jul 22, 2010 at 5:51 PM

selecting more than one entry from AutoCompleteTextField dropdown

2010-07-22 Thread Antonio Mauriello
Hi All, I have an AutoCompleteTextField element that using the AjaxFormComponentUpdatingBehavior( onchange ) allows me to pass the selection made from the dropdown to a WebMarkupContainer. Now the issue I have is that I need to pass more than an entry to that WebMarkupContainer, but when I click

how to get the selected tabbedpanel

2010-06-01 Thread Antonio Mauriello
Hi All, I have the following issue: A wicket page where I'm working on has a Form plus an AjaxTabbedPannel. The form has only buttons that change the status of some values in the page. In each onSubmit() I set the response page to reload the same page but it goes the default tab and not to the