Currently it is not possible to retrieve the pageClass from a
BookmarkablePageLink, so it is not possible to write
"bookmarkablePage=xxx". Besides that, I think we would be rewriting
code.
2005/11/23, Juergen Donnerstag <[EMAIL PROTECTED]>:
> yes, WebResponse and WebRequest. Please see the subclas
yes, WebResponse and WebRequest. Please see the subclasses already available
What about the bug/idea reported by Ingram?
Juergen
On 11/23/05, Eduardo Rocha <[EMAIL PROTECTED]> wrote:
> I was trying to use Link.getURL(), to not repeat the creation of the
> parameters on WicketTester, but this met
I was trying to use Link.getURL(), to not repeat the creation of the
parameters on WicketTester, but this method is protected, so I have no
idea to move on :(
The idea was simply take that URL, parse parameters and add them to
MockHttpServletRequest. Supose people agree on making getURL() public,
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 followi
I did some debugging and found that setRequestToComponent() of MockHttpServletRequestdoes not build request parameters for BookmarkablePageLink. It builds "interface=ILinkListener"instead. however, BookmarkablePageLink does nonthing in onLinkClicked() method.
I think that we can add "bookmarkableP
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
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?
>
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,
>
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
101 - 109 of 109 matches
Mail list logo