Re: Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
ks Martin. Marcin > On Mon, Nov 25, 2013 at 6:31 PM, Marcin Zajączkowski 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 We

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 f

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 wrote: > >> On 2013-11-19 08:44, Martin Grigorov wrote: >>> Hi, >>> >>> I think you can use IModel for the dropdown. This will be the >&g

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

2013-11-19 Thread Marcin Zajączkowski
optimize/cache query in my 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 wrote: > >&g

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: Ability to simply enable jQuery.noConflict() globally for an application in Wicket 6

2012-11-20 Thread Marcin Zajączkowski
pt("jQuery.noConflict();")); >> } >> >> to the page that uses Prototype (EffectsPage.java). >> >> But it is quite simple demo so maybe more work is needed in a real use case >> like yours. >> >> >> On Mon, Nov 12, 2012 at 2:58 AM, Marc

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 - a

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 a

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 = (Ab

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) WicketTesterHelper.findBehavior(tester.getComponentFromLastRender

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

2011-02-12 Thread Marcin Zajączkowski
Marcin > 2011/2/12 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 sessi

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 getMarkup

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
m/browse/SIM-217 Is Sitemesh "compatible" with Wicket? Maybe there is a better workaround than switch to ONE_PASS_RENDER? Regards Marcin > 2011/1/9 Marcin Zajączkowski : >> On 2011-01-09 22:00, Marcin Zajączkowski wrote: >>> Hi, >>> >>> >>> Foll

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 dup