Hi Jean-Baptiste, just wondering if you got a chance to look at this?
Cheers
Oliver
oliver.henlich wrote:
Jean-Baptiste Quenot-3 wrote:
Can you paste the full stacktrace please?
Sure here you go (sorry for the delay).
Note i went back to beta2.
Stacktrace:
---
Jean-Baptiste Quenot-3 wrote:
Can you paste the full stacktrace please?
Jean-Baptiste Quenot-3 wrote:
Can you paste the full stacktrace please?
Sure here you go (sorry for the delay).
Note i went back to beta2.
Stacktrace:
---
11:45:49.263 WARN!! Exception for
* oliver.henlich:
i just tried the shown snippet with 1.3 snapshot (checkout from trunk) and
i'm still getting:
java.lang.ClassCastException: org.apache.wicket.response.StringResponse
cannot be cast to org.apache.wicket.protocol.http.WebResponse
Jean-Baptiste Quenot-3 wrote:
It's not your fault. I didn't mention that you need to upgrade to
the latest beta2 for this to work, as there is a nasty cast to
WebResponse in WebPage.java that I removed.
Hi Jean,
i just tried the shown snippet with 1.3 snapshot (checkout from
Great, thanks. This is pretty much all set.
http://issues.apache.org/jira/browse/WICKET-795
Eelco Hillenius wrote:
http://issues.apache.org/jira/browse/WICKET
then look for a way to register.
Eelco
--
View this message in context:
I'm not familiar with JIRA, where should I go to sign up or post a bug?
http://issues.apache.org/jira/browse/WICKET
then look for a way to register.
Eelco
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping
For some reason, after my custom WebRequestProcessorCycle.respond() fires,
RquestCycle.get() returns null...I can't seem to escape that...
I'm not familiar with JIRA, where should I go to sign up or post a bug?
Eelco Hillenius wrote:
It seems to be such a recurring issue (and tbh, I
Okay, well. It works, but not if you try and instigate the rendering from a
Wicket page. Because the RequestCycle is all kinds of threadlocal, and it's
used by WicketTester, the rendering of page from which you make the
rendering call blows up with a null error because RequestCycle.current.get()
Is there another example somewhere besides the one that extends
WebApplication? I'd like to encapsulate all of this into a simple object
that took a Page and some params, and I imagine WicketTester is the way to
get that done. I just can't seem to get rendered HTML into the
StringResponse...
I can get it to fire from within my app's main WebApplication, but how can I
get at the render String of HTML from outside of WebApplication. ie, in a
Page or Panel that doesn't have access to the mounted
URIRequestTargetUrlCodingStrategy? This is where I thought WicketTester
would come into
* Tremelune:
I'm having a great deal of trouble getting this to fire. How does one
accomplish this in the middle of, say, some run-of-the-mill Wicket page? If
I do something like this, I get an error that /pages has already been
mounted (which it has, during my app's initialization). I also
There we go. I've pretty much got this, thanks to everyone. Here's a helper
class I drummed up--It's not fully tested, doesn't handle both HTML text,
and doesn't take parameters yet. I'll try and post a new thread (maybe even
on the wiki?) when I get those details hashed out. For now, this is a
On 7/11/07, Tremelune [EMAIL PROTECTED] wrote:
There we go. I've pretty much got this, thanks to everyone. Here's a helper
class I drummed up--It's not fully tested, doesn't handle both HTML text,
and doesn't take parameters yet. I'll try and post a new thread (maybe even
on the wiki?) when
I'm having a great deal of trouble getting this to fire. How does one
accomplish this in the middle of, say, some run-of-the-mill Wicket page? If
I do something like this, I get an error that /pages has already been
mounted (which it has, during my app's initialization). I also tried to do
all
Why do you mount in the WebPage and not in the Application.init() ?
I'm new to wicket. A problem, I see is that each time the Welcome page is
instantiated, then you try to mount (re add the rules).
(You copy from the staticpage examples but you don't paste in Application like
in the examples.)
So here's a junit test:
public void testThisThing() {
System.out.println(Testing...);
WicketTester tester = new WicketTester(new TestApp());
System.out.println(Testing page thing);
tester.startPage(TestEmail.class);
}
private class TestApp extends WebApplication {
the email isn't displayed because : your rule is associated to the mount point
/pages and you don't call it.
You need to call /pages with a parameter (queryString) email not null. (I
don't know how to simulate this with WicketTester)
Tremelune wrote:
So here's a junit test:
public void
That's true, but the real problem is that decode() isn't firing at all.
the email isn't displayed because : your rule is associated to the mount
point /pages and you don't call it.
You need to call /pages with a parameter (queryString) email not null. (I
don't know how to simulate this with
decode() is fired when you call /pages url. In the init() you only define
the method.
Tremelune wrote:
That's true, but the real problem is that decode() isn't firing at all.
the email isn't displayed because : your rule is associated to the mount
point /pages and you don't call it.
Ah, hm. How do I call a /pages URL? I think this may be the missing link. I
thought tester.startPage() would hit that and call all those methods.
Simplified version of test:
public void testThisThing() {
WicketTester tester = new WicketTester(new TestApp());
* Jeremy Thomerson:
I hope someone can give me a hand. I'm trying to do something similar, and
seemingly stumped.
I have a form that I want to have the user fill out, and then I just want to
email the completed form to someone on our team. So, I created subclasses
of form components that
I hope someone can give me a hand. I'm trying to do something similar, and
seemingly stumped.
I have a form that I want to have the user fill out, and then I just want to
email the completed form to someone on our team. So, I created subclasses
of form components that can be switched from edit
OK, so WicketTester is the way to go. JBQ's response implied that there
was a more direct way to do it, but I'll give WicketTester a try.
Thanks,
jk
On Sat, Jun 23, 2007 at 08:05:58PM -0700, Igor Vaynberg wrote:
see our tests. all the mock setup is done for you. our tests simply call a
* John Krasnay:
OK, so WicketTester is the way to go. JBQ's response implied that there
was a more direct way to do it, but I'll give WicketTester a try.
Yes there is a more direct way. I'm sorry I made an error, I
meant StringResponse, not StringRequestTarget. I spent a few
minutes writing
Ah, that makes more sense. Thanks for the clarification and example.
jk
On Sun, Jun 24, 2007 at 05:15:14PM +0200, Jean-Baptiste Quenot wrote:
Yes there is a more direct way. I'm sorry I made an error, I
meant StringResponse, not StringRequestTarget. I spent a few
minutes writing the
Hi - I am trying to get the HTML source code of a web page with in the program
(so that I can send this in an email). Can some one tell me how can I get the
HTML source.
Thank you,
-Srini
-
Choose the right car based on your needs. Check out Yahoo!
* Srinu Sunkara:
Hi - I am trying to get the HTML source code of a web page with
in the program (so that I can send this in an email). Can some
one tell me how can I get the HTML source.
Sure. Processing a Wicket page and sending the result to a buffer
can be achieved through
Thanks for the tip, but could you give us a little more of a clue? For
example, from where should we get the RequestCycle? Using
RequestCycle.get() doesn't sound right, since that's for the response
we're sending to the browser, not for the HTML we want to render into
the email.
I looked into the
On 6/23/07, John Krasnay [EMAIL PROTECTED] wrote:
Thanks for the tip, but could you give us a little more of a clue? For
example, from where should we get the RequestCycle? Using
RequestCycle.get() doesn't sound right, since that's for the response
we're sending to the browser, not for the HTML
29 matches
Mail list logo