Re: Page content sends twice in response to GET when redirecting after POST

2011-01-09 Thread Marcin Zajączkowski
On 2011-01-09 22:00, Marcin Zajączkowski wrote: Hi, Following some problems with page rendering in my application after post a form I've noticed that when redirect after post strategy is used (both REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in a response to GET

Re: Truncated page when using Sitemesh with redirect after post (Was: Re: Page content sends twice in response to GET when redirecting after POST)

2011-01-10 Thread Marcin Zajączkowski
compatible with Wicket? Maybe there is a better workaround than switch to ONE_PASS_RENDER? Regards Marcin 2011/1/9 Marcin Zajączkowski msz...@wp.pl: On 2011-01-09 22:00, Marcin Zajączkowski wrote: Hi, Following some problems with page rendering in my application after post a form I've noticed

Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
Hi, In the application I need to have an util page which reloads application configuration. No markup is required, page implementation calls reload from service layer, set info message in a session and redirect to a homepage. I did it by creating EmptyMarkup class and returning it from

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
On 2011-02-12 23:26, Igor Vaynberg wrote: class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } I knew there is a way :). Thanks Igor. Marcin 2011/2/12 Marcin

Problem with testing text field auto completion with WicketTester

2012-10-06 Thread Marcin Zajączkowski
Hi, I try to test auto complete feature implemented with DefaultCssAutoCompleteTextField. I'm able to call it from a test using WicketTesterHelper.findBehavior: AbstractAutoCompleteBehavior behavior = (AbstractAutoCompleteBehavior)

Re: Problem with testing text field auto completion with WicketTester

2012-10-06 Thread Marcin Zajączkowski
On 2012-10-07 02:14, Marcin Zajączkowski wrote: Hi, I try to test auto complete feature implemented with DefaultCssAutoCompleteTextField. I'm able to call it from a test using WicketTesterHelper.findBehavior: AbstractAutoCompleteBehavior behavior = (AbstractAutoCompleteBehavior

Re: Problem with testing text field auto completion with WicketTester

2012-10-08 Thread Marcin Zajączkowski
On 2012-10-08 10:06, Martin Grigorov wrote: Hi, You need to do: tester.getRequest().setParameter(the:respective:name:of:the:input, some value); tester.executeBehavior() It did a trick. Thanks! Marcin On Sun, Oct 7, 2012 at 3:26 AM, Marcin Zajączkowski msz...@wp.pl wrote: On 2012

Ability to simply enable jQuery.noConflict() globally for an application in Wicket 6

2012-11-11 Thread Marcin Zajączkowski
Hi, I have an application which internally uses prototype. After migration from Wicket 1.5 to 6 I had problems with conflicts. It helped to enable non conflict mode in jQuery, but to do this globally I had to do a few things: - an one line script - a corresponding JavaScriptResourceReference -

Re: Ability to simply enable jQuery.noConflict() globally for an application in Wicket 6

2012-11-20 Thread Marcin Zajączkowski
in a real use case like yours. On Mon, Nov 12, 2012 at 2:58 AM, Marcin Zajączkowski msz...@wp.pl wrote: Hi, I have an application which internally uses prototype. After migration from Wicket 1.5 to 6 I had problems with conflicts. It helped to enable non conflict mode in jQuery, but to do

Generated drop down list of countries in Wicket - any better way?

2013-11-18 Thread Marcin Zajączkowski
Hi, Working on Wicket frontend for AppFuse I had to implement a drop down choice of countries. I did it, but don't like the solution and I wonder if it could be done easier/prettier? Issues: 1. In domain model there is a country represented as a String field (a country code) in an address class.

Re: Generated drop down list of countries in Wicket - any better way?

2013-11-19 Thread Marcin Zajączkowski
service returning country name by ID/code. One thing is not clear for me. How can I get a current locale in CountryChoiceRenderer (without pass it from my DropDownChoice component)? Marcin On Tue, Nov 19, 2013 at 12:51 AM, Marcin Zajączkowski msz...@wp.pl wrote: Hi, Working on Wicket frontend

Re: Generated drop down list of countries in Wicket - any better way?

2013-11-20 Thread Marcin Zajączkowski
On 2013-11-20 09:28, Martin Grigorov wrote: Hi, On Wed, Nov 20, 2013 at 1:30 AM, Marcin Zajączkowski msz...@wp.pl wrote: On 2013-11-19 08:44, Martin Grigorov wrote: Hi, I think you can use IModelString for the dropdown. This will be the country code. The transformation from id to name

Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
Hi, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session locale and it works fine. Nevertheless I wonder if it is a proper place

Re: Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
On Mon, Nov 25, 2013 at 6:31 PM, Marcin Zajączkowski msz...@wp.pl wrote: Hi, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session