Return-Path: Delivered-To: apmail-wicket-dev-archive@www.apache.org Received: (qmail 98863 invoked from network); 3 Nov 2010 11:37:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 11:37:05 -0000 Received: (qmail 59723 invoked by uid 500); 3 Nov 2010 11:37:36 -0000 Delivered-To: apmail-wicket-dev-archive@wicket.apache.org Received: (qmail 59593 invoked by uid 500); 3 Nov 2010 11:37:34 -0000 Mailing-List: contact dev-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@wicket.apache.org Delivered-To: mailing list dev@wicket.apache.org Received: (qmail 59585 invoked by uid 99); 3 Nov 2010 11:37:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 11:37:32 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of nndala@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 11:37:26 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PDbeL-0004n0-7Q for dev@wicket.apache.org; Wed, 03 Nov 2010 04:37:05 -0700 Date: Wed, 3 Nov 2010 04:37:05 -0700 (PDT) From: thobile To: dev@wicket.apache.org Message-ID: In-Reply-To: References: <1288778337248-3025082.post@n4.nabble.com> Subject: Re: Wicket Tester MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_64578_30339447.1288784225176" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_64578_30339447.1288784225176 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have the following code: Wicket Page Code: Link deleteLink = new Link( DELETE_LINK, item.getModel()) { private static final long serialVersionUID = 1L; @Override public void onClick() { SdInternshipIntakeSummary selected = getModelObject(); ((InternshipMaintenancePage) getPage()).deleteIntake(selected); } }; deleteLink.add(new SimpleAttributeModifier( "onclick", "return confirm('Are you sure you want to delete Internships Intake Summary?');")); I want to test this component using wicket tester, I have the following code: Wicket Tester Code //checking listview size ListView listView1 = (ListView) getWicketTester().getComponentFromLastRenderedPage("intake-summary-report-panel:intake-summary-table"); // int initialSize = listView1.size(); //click delete link getWicketTester().clickLink("intake-summary-report-panel:intake-summary-table:0:delete-link"); //checking listview size after I have deleted the record ListView listView2 = (ListView) getWicketTester().getComponentFromLastRenderedPage("intake-summary-report-panel:intake-summary-table"); // int secondSize = listView2.size(); //checking if the Listview size is updated Assert.assertEquals(listView2.size(), (initialSize - 1)); Please help is there anything that I am missing, note this link is not Ajax How do we navigate to SimpleAttributeModiffier using Wickettester because it seems as if I need to confirm firts before the page can be updated On Wed, Nov 3, 2010 at 12:46 PM, Martin Grigorov-4 [via Apache Wicket] wrote: > tell us what exactly you want to do > what did you tried ? > > On Wed, Nov 3, 2010 at 10:58 AM, thobile <[hidden email]> wrote: > >> >> Hi Everyone >> >> I am having a problem in refreshing wickettester page, is there anyone who >> can help me. I have tried few examples from the net but I failed. Thank >> you >> in advance >> -- >> View this message in context: >> >> http://apache-wicket.1842946.n4.nabble.com/Wicket-Tester-tp3025082p3025082.html >> Sent from the Forum for Wicket Core developers mailing list archive at >> Nabble.com. >> > > > ________________________________ > View message @ > http://apache-wicket.1842946.n4.nabble.com/Wicket-Tester-tp3025082p3025137.html > To unsubscribe from Wicket Tester, click here. > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Tester-tp3025082p3025200.html Sent from the Forum for Wicket Core developers mailing list archive at Nabble.com. ------=_Part_64578_30339447.1288784225176--