Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-11-01 Thread Igor Vaynberg
yes -igor On Sat, Nov 1, 2008 at 11:25 AM, Adriano dos Santos Fernandes <[EMAIL PROTECTED]> wrote: > Yes. Do you want a quickstart demonstrating the problem? > > > Adriano > > > Igor Vaynberg wrote: >> >> does it work if you do not use ajax? >> >> -igor >> >> On Fri, Oct 31, 2008 at 6:38 AM, Adri

Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-11-01 Thread Adriano dos Santos Fernandes
Yes. Do you want a quickstart demonstrating the problem? Adriano Igor Vaynberg wrote: does it work if you do not use ajax? -igor On Fri, Oct 31, 2008 at 6:38 AM, Adriano dos Santos Fernandes <[EMAIL PROTECTED]> wrote: Francisco Diaz Trepat - gmail escreveu: Hi Adriano, maybe looki

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-01 Thread Matej Knopp
Sure this is valid but i can't imagine why this would be a bottleneck. Unless the webserver does something very weird while retrieving the header. -Matej On Sat, Nov 1, 2008 at 6:01 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > looks good, please create a jira issue. > > -igor > > On Sat, Nov 1,

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-01 Thread Igor Vaynberg
looks good, please create a jira issue. -igor On Sat, Nov 1, 2008 at 5:11 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > I was profiling my Wicket application and noticed that Jetty's > getHeader method was hit quite often. > > It turns out the ServletWebRequest.isAjax method is hit quit

Re: AW: wicket hangman

2008-11-01 Thread Nino Saturnino Martinez Vazquez Wael
Good to hear:) Axel Leucht wrote: Nino, you're me hero! After staring at the code for too long I didn't see the wood for the trees, but now it works like a charm. And time to make a break ;-) /Axel -Ursprüngliche Nachricht- Von: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTE

AW: wicket hangman

2008-11-01 Thread Axel Leucht
Nino, you're me hero! After staring at the code for too long I didn't see the wood for the trees, but now it works like a charm. And time to make a break ;-) /Axel -Ursprüngliche Nachricht- Von: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 1. November

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Marat Radchenko
Cbuttic bug in locale-specifics handling. I think it is a candidate for a bugreport. 2008/11/1 Artur W. <[EMAIL PROTECTED]> > > The problem is in tester.assertErrorMessages at: > msgs.add(iterator.next().toString()); > > The .toString() returns string with iso-8859-1 encoding. > > > The workaroun

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Artur W.
Hi Martin! Martin Makundi wrote: > > Have you tried in your WicketApplication.init to set encoding: > > > getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); > I tried both of this: tester.getApplication().getMarkupSettings().setDefaultMarkupEncoding("ISO-8859-1");

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Artur W.
The problem is in tester.assertErrorMessages at: msgs.add(iterator.next().toString()); The .toString() returns string with iso-8859-1 encoding. The workaround is to create your own assertErrorMessages like this: List actualMessages = tester.getMessages(FeedbackMessage.ERROR);

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Martin Makundi
Hi! Have you tried in your WicketApplication.init to set encoding: getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); ** Martin 2008/11/1 Artur W. <[EMAIL PROTECTED]>: > > Hi! > > My test failed becouse Wicket returns FeedbackMessages in different encoding > (?) than

Re: wicket hangman

2008-11-01 Thread Nino Saturnino Martinez Vazquez Wael
compiling against wrong version of wicket? Axel Leucht wrote: I'm currently trying to compile the hangman sample with Eclipse 3.4 (Ganymede). I'd copied the sources from my apache-wicket-1.4-m3 directory and setup a new project in Eclipse. Then I stripped down the WicketExample page to make i

wicket hangman

2008-11-01 Thread Axel Leucht
I'm currently trying to compile the hangman sample with Eclipse 3.4 (Ganymede). I'd copied the sources from my apache-wicket-1.4-m3 directory and setup a new project in Eclipse. Then I stripped down the WicketExample page to make its dependencies a little bit smaller. Unfortunately, the softwar

WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Artur W.
Hi! My test failed becouse Wicket returns FeedbackMessages in different encoding (?) than the expected messages. Example: tester.assertErrorMessages(new String[] { "Pole 'domena' musi zawierać od 3 do 32 znaków." }; gives: junit.framework.AssertionFailedError: expect (1): Pole 'domena' musi

Should/Could ServletWebRequest.isAjax be cached?

2008-11-01 Thread Martin Makundi
Hi! I was profiling my Wicket application and noticed that Jetty's getHeader method was hit quite often. It turns out the ServletWebRequest.isAjax method is hit quite often by each of the page elements (I am generating a large HTML report page). Since the Servlet container may not have optimal de

Re: set the feedback message to js function

2008-11-01 Thread Nino Saturnino Martinez Vazquez Wael
theres a scriptaculous contrib on wicketstuff (currently down, but I think svn are up), in that theres a toaster so you could check that out for reference. checkout this : *https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-scriptaculous-examples* And the toaster