To make all type of Links working consistently IMO is a good idea.
Hence I agree that it is a bug (or RFE) and I would very much
appreciate if you would provide a patch for it.

Juergen

On 11/23/05, Eduardo Rocha <[EMAIL PROTECTED]> wrote:
> Sorry for not being clearer. The bug is that the following does not work:
>
> code (HomePage.class):
>
>    add(new BookmarkablePageLink("myPageLink", MyPage.class));
>
> test (HomePageTest.class):
>
>    tester.clickLink("myPageLink");
>    assertRenderedPage(MyPage.class);
>
> The assertion fails, because the HomePage.class is rendered again.
>
> I would like to make sure this is a bug, so I could work on a patch.
>
> This happens because WicketTester treats the BookmarkablePageLink as a
> ordinary link, and at the end, the "onClick" method on
> BookmarkablePageLink is called, which does nothing.
>
> 2005/11/23, Eelco Hillenius <[EMAIL PROTECTED]>:
> > Because bookmarkable page links do not 'post back' to the server but
> > instead they refer to bookmarkable pages they can't be called as links
> > from WicketTester, right?
> >
> > Eelco
> >
> > On 11/23/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > > sorry, but I do not understand the question. What is the bug?
> > >
> > > Juergen
> > >
> > > On 11/23/05, Eduardo Rocha <[EMAIL PROTECTED]> wrote:
> > > > I am having problems with WicketTester.clickLink(..) when the link is
> > > > a BookmarkablePageLink.
> > > >
> > > > At first, if the link is a bookmarkable one, I don't need to test it,
> > > > since I can test the page alone.
> > > >
> > > > But I was think in the following: if my link was simple Link subclass,
> > > > and I had a test for it:
> > > >
> > > > add(new Link("myLink") {
> > > >    public void onClick() {
> > > >        setResponsePage(new MyPage());
> > > >    }
> > > > }
> > > >
> > > > tester.clickLink("myLink");
> > > > tester.assertRenderedPage(MyPage.class);
> > > >
> > > > so I choose to replace it for a bookmarkable link, and run the
> > > > regression test. The test will fail, because "clickLink(..)" doesn't
> > > > work with BookmarkablePageLink. That way, I would have to remove the
> > > > "clickLink(..)" test.
> > > >
> > > > Do people agree it is a bug?
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> > > > Register for a JBoss Training Course.  Free Certification Exam
> > > > for All Training Attendees Through End of 2005. For more info visit:
> > > > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> > > Register for a JBoss Training Course.  Free Certification Exam
> > > for All Training Attendees Through End of 2005. For more info visit:
> > > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to