Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-09 Thread Marco van de Haar

wicket-contribute-dojo no longer work. 

wicket contrib dojo 0.31 does not work with wicket HEAD. However, you 
could check out contrib-dojo from CVS and this should work with wicket 
head.
The only error should be in a class named FeedContainer.java, which is 
an expirimental Ajax RSS class of little importance. We will release a 
new version of contrib-dojo soon, which will work with wicket 1.2.


Marco


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] 
mailto:[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]
mailto:[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=9bid=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_idv37alloc_id865opclick
http://ads.osdn.com/?ad_idv37alloc_id%16865opclick
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto: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_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-09 Thread Ingram Chen
Thanks a lot ! I will try it again when it released.On 1/9/06, Marco van de Haar [EMAIL PROTECTED]
 wrote:wicket-contribute-dojo no longer work. wicket contrib dojo 
0.31 does not work with wicket HEAD. However, youcould check out contrib-dojo from CVS and this should work with wickethead.The only error should be in a class named FeedContainer.java, which isan expirimental Ajax RSS class of little importance. We will release a
new version of contrib-dojo soon, which will work with wicket 1.2.Marco 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] mailto:[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] mailto:
[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=9bid=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 theweb.DOWNLOAD SPLUNK! 
http://ads.osdn.com/?ad_idv37alloc_id865opclick http://ads.osdn.com/?ad_idv37alloc_id%16865opclick
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:
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 filesfor problems?Stop!Download the new AJAX search engine that makes
searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Juergen Donnerstag
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=9bid=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_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Ingram Chen
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 somewheredoes 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 (urlstrategy) where we made quite some changes.ThanksJuergenOn 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=9bid=23453204'. Cannot redirect more than onceat 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 filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- 
Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Juergen Donnerstag
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=9bid=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_idv37alloc_id865opclick
  ___
  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_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Ingram Chen
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. Webasically reorganized/structured the settings. Character encoding hasnot 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?JuergenOn 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=9bid=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 theweb.DOWNLOAD SPLUNK!  
http://ads.osdn.com/?ad_idv37alloc_id865opclick  ___  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 filesfor problems?Stop!Download the new AJAX search engine that makes
searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37alloc_id865opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen





Çüéâäàåçêë




TestError.java
Description: Binary data


Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Johan Compagner
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. Webasically reorganized/structured the settings. Character encoding hasnot 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?JuergenOn 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=9bid=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 theweb.DOWNLOAD SPLUNK!  

http://ads.osdn.com/?ad_idv37alloc_id865opclick  ___  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 filesfor problems?Stop!Download the new AJAX search engine that makes
searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 

http://www.javaworld.com.tw/roller/page/ingramchen




Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Johan Compagner
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. Webasically reorganized/structured the settings. Character encoding hasnot 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?JuergenOn 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=9bid=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 theweb.DOWNLOAD SPLUNK!  


http://ads.osdn.com/?ad_idv37alloc_id865opclick  ___  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 filesfor problems?Stop!Download the new AJAX search engine that makes
searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!

http://ads.osdn.com/?ad_idv37alloc_id865opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 

http://www.javaworld.com.tw/roller/page/ingramchen






Re: [Wicket-user] Cound not render InternalErrorPage

2006-01-08 Thread Ingram Chen
How about setup an in-container integration test ?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. Webasically reorganized/structured the settings. Character encoding hasnot 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?JuergenOn 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=9bid=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 theweb.DOWNLOAD SPLUNK!  



http://ads.osdn.com/?ad_idv37alloc_id865opclick  ___  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 filesfor problems?Stop!Download the new AJAX search engine that makes
searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!


http://ads.osdn.com/?ad_idv37alloc_id865opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue