Wicket does many big changes recently, and I think this is a good thing. However this also
introduces new bugs after each refactoring, and all new bugs I found are integration issue.
IMHO, Wicket needs a sample application and do some integration/regression test in real enviroment.
On 1/8/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:
i committed the fix to cvs.
Still have to see how we can test this right, Because how can we test in a mock application the redirect_to_buffer strategy?
johanOn 1/8/06, Johan Compagner <[EMAIL PROTECTED]> wrote:I am already on the problem. It was the latest change with the REDIRECT_TO_BUFFER changes
(so that we also keep header and cookie information for a request that does redirect to buffer)
Somehow the char conversion now is not ok. I will first try to make a testcase for this so the next time
we will catch this.
johanOn 1/8/06, Ingram Chen < [EMAIL PROTECTED]> wrote:I check my test case and test that contains non-ascii charators are all passed.
But the problem occurs when I test in a real web container (Tomcat 5.5.9)
The attatchment is a test page that contains some non-ascii word (copy from StringsTest)
These charactors doesn't encode correctly in Tomcat, either.--On 1/8/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:please see the wiki for the necessary migration from 1.1 to 1.2. We
basically reorganized/structured the settings. Character encoding has
not changed, I belief. We have junit tests which still work.
Unfortunately I don't speak chinese. Any test case you have prepared
which should work and which I can use for testing?
Juergen
On 1/8/06, Ingram Chen <[EMAIL PROTECTED] > wrote:
> Oh my god..... Latest HEAD breaks so many codes !
> and wicket-contribute-dojo no longer work ....
>
> After doing hard refactoring and removing some stuff, I finally get my codes
> work.
> And yes, InternalErrorPage's problem is fixed.
>
> But I found another critical bug -- all of non-ASCII charactors on page
> becomes ???
> Strangely, there is no such error for bookmarkable-page. It seems that
> somewhere
> does wrong encoding internally.
>
> note: My page's content type is UTF-8, and non-ASCII charactors are Chinese.
>
>
>
> On 1/8/06, Juergen Donnerstag < [EMAIL PROTECTED] > wrote:
> >
> > Would you please try it with the latest CVS HEAD. This is an area (url
> > strategy) where we made quite some changes.Thanks
> >
> > Juergen
> >
> > On 1/8/06, Ingram Chen <[EMAIL PROTECTED] > wrote:
> > > Hi all,
> > >
> > > I try a simple Page that always produces Exception:
> > >
> > > public class TestError extends WebPage {
> > > public TestError() {
> > > throw new NullPointerException();
> > > }
> > > }
> > >
> > > Then I add a link to TestError:
> > >
> > > public class FooPage extends MyBaseWebPage {
> > > public FooPage() {
> > > add(new PageLink("testpage", TestError.class ));
> > > }
> > > }
> > >
> > > Ideally, click link "testpage" should redirect to InternalErrorPage, But
> I
> > > only got a HTTP Status 500.
> > > Wicket responses that it can't do redirect because it already
> redirected,
> > > and :
> > >
> > > wicket.WicketRuntimeException: Already redirecting to
> > > '/myContext/myApp?path=9&bid=23453204'. Cannot redirect
> > > more than once
> > > at
> > > wicket.protocol.http.BufferedWebResponse.redirect
> (BufferedWebResponse.java:88)
> > > at
> > >
> wicket.protocol.http.WebRequestCycle.redirectTo (WebRequestCycle.java:192)
> > > at wicket.request.target.PageRequestTarget.respond
> > > (PageRequestTarget.java :64)
> > > ....
> > >
> > > If I change to BookmarkablePageLink:
> > >
> > > add(new BookmarkablePageLink("testpage",
> > > TestError.class));
> > >
> > > then InternalErrorPage rendered correctly.
> > >
> > > Do I miss something ?
> > >
> > > Thanks in advance.
> > >
> > > Note: my version of Wicket is CVS HEAD in mid December, not latest HEAD.
> > >
> > > --
> > > Ingram Chen
> > > Java [EMAIL PROTECTED]
> > > Institue of BioMedical Sciences Academia Sinica Taiwan
> > > blog:
> http://www.javaworld.com.tw/roller/page/ingramchen
> >
> >
> > -------------------------------------------------------
> > 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
> >
>
>
>
> --
>
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://www.javaworld.com.tw/roller/page/ingramchen
-------------------------------------------------------
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
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen