Re: Apache Wicket 1.5.8 is released

2012-09-04 Thread Maarten Bosteels
Congratulations with the new release. I guess it would be best if 1.5.8 was added to the dropdown box (and become the default option) on http://wicket.apache.org/start/quickstart.html regards Maarten On Fri, Aug 24, 2012 at 5:02 PM, Martin Grigorov wrote: > This is the eighth maintenance releas

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
you should declare your Select2Choice as Select2Choice since that is its model type. once you do this the compiler will tell you that your TextChoiceProvider should be TextChoiceProvider instead of -igor On Tue, Sep 4, 2012 at 1:42 PM, Sandor Feher wrote: > Okay. Just one more question. > > I h

Re: Wicket 1.5 migration questions

2012-09-04 Thread Martin Grigorov
On Tue, Sep 4, 2012 at 11:17 PM, Alec Swan wrote: > Well, mountPackage did not work for me either. > > Basically, what I want to do is access ALL resources in > com.myco.app.res package with "global" URL prefix. For example, access > a JavaScript file as global/events.js instead of > ../wicket/res

Migration to 1.5: 'X' is not a valid Serializable

2012-09-04 Thread Alec Swan
Hello, I ran into another problem while migrating to 1.5. I have a form with a TextField(new PropertyModel(obj, "value")). The test that fills and submitts the form in 1.4 worked just fine. In 1.5 I get an error "'X' is not a valid Serializable" where 'X' is what's returned from obj.getValue() met

RE: Wicket 1.5 migration questions

2012-09-04 Thread Paul Bors
In an older reply on this topic, Martijn Dashorst suggested to another user to mount the page using one of the strategies that already exist or implement your own. Older thread "urlFor and putClassAlias": http://apache-wicket.1842946.n4.nabble.com/urlFor-and-putClassAlias-tp186414 2p1864143.html

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
Well, mountPackage did not work for me either. Basically, what I want to do is access ALL resources in com.myco.app.res package with "global" URL prefix. For example, access a JavaScript file as global/events.js instead of ../wicket/resource/com.myco.app.res.GlobalResourceScope/events.js URL. In 1

Re: Jqwicket

2012-09-04 Thread mk
I've started Wicket 6 migration, check the SCM. Plan to release next JQWicket version after Wicket 6 final is available. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Jqwicket-tp4651665p4651754.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: select2 localization questions

2012-09-04 Thread Sandor Feher
Okay. Just one more question. I have a domain model (HrpBbheerk) which contains a Short column. I would like to fill this via Select2Choice. I read the select2-examples but not able to get rid it. So the steps I took. 1. Fill my hepar5list list from my domain model (HrpBbhepar5). This contains c

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
Thanks for the info. I hope there are plans to clean up WicketTester because the simplicity of testing Wicket components that it provides is a very important Wicket feature. Alec On Tue, Sep 4, 2012 at 1:46 PM, Igor Vaynberg wrote: > we migrated from 1.4.x to 1.5.x. but, we use selenium to test

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Igor Vaynberg
we migrated from 1.4.x to 1.5.x. but, we use selenium to test ui instead of wicket tester :) -igor On Tue, Sep 4, 2012 at 12:07 PM, Alec Swan wrote: > This makes me wonder how many big apps actually migrated from 1.4 to > 1.5 (instead of starting from scratch) if this problem has never been > di

RE: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Paul Bors
Not quite, pre 1.5.x you kinda had to handle the WicketTester in your own way anyhow as it was notorious for its "gotcha"'s. We've migrated from 1.3.7 to 1.5.7 and since we extended WicketTester our unit tests still behave as we expect them since we have our own API wrapping around Wicket's. Refac

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
This makes me wonder how many big apps actually migrated from 1.4 to 1.5 (instead of starting from scratch) if this problem has never been discovered. I also noticed that getComponentFromLastRenderedPage assumes that the id of the instantiated component is different from the id of it's first child

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Martin Grigorov
Hi, Even if there is a place for improvement it is too late now. There are many apps in production with 1.5 at that time and this change will break them. You can extend WicketTester and override the problematic method to behave as you need it. On Tue, Sep 4, 2012 at 8:11 PM, Alec Swan wrote: > H

Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
Hello, Now that most of my production code is migrated to 1.5 I started migrating my tests. The first problem I ran into is with BaseWicketTester#startPanel and BaseWicketTester#getComponentFromLastRenderedPage. In 1.4 I could use startPanel and then find components with getComponentFromLastRende

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
On Tue, Sep 4, 2012 at 10:14 AM, Sandor Feher wrote: > > Igor Vaynberg-2 wrote >> >> On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher wrote: >>> Hi, >>> >>> I successfuly created a Select2Choice item in my form. I fill it up from >>> a >>> model and everything works fine but the listed choic

Re: select2 localization questions

2012-09-04 Thread Sandor Feher
Igor Vaynberg-2 wrote > > On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher wrote: >> Hi, >> >> I successfuly created a Select2Choice item in my form. I fill it up from >> a >> model and everything works fine but the listed choices' display in wrong >> codepage. I use utf8 everywhere and hav

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
Tom, I have com.myco.app.res.GlobalResourceScope.class and events.js in the same package. So, putClassAlias(GlobalResourceScope.class, "global") in 1.4 would allow me to access http://../app/global/events.js in the browser. It seems like in 1.5 this is similar to mountPackage(String, Class) which

RE: Back button doesn't work with AjaxTabbedPanel

2012-09-04 Thread Paul Bors
Yes. It doesn't make sense to use Ajax to refresh a whole page anyhow unless your tab panel is really just a small panel but then you won't be asking about support for the browser's back button because you prob won't care :) ~ Thank you, Paul Bors -Original Message- From: Alec Swan [ma

Re: Back button doesn't work with AjaxTabbedPanel

2012-09-04 Thread Alec Swan
So, my conclusion from this discussion is that TabbedPanel should be used instead of AjaxTabbedPanel if browser Back button needs to be supported with a menu. Thanks, Alec On Tue, Sep 4, 2012 at 9:48 AM, Paul Bors wrote: > You must be talking about the browser's navigation Back button. > I thro

RE: Back button doesn't work with AjaxTabbedPanel

2012-09-04 Thread Paul Bors
You must be talking about the browser's navigation Back button. I through you had your own HTML button there for a second. In that case you're relying on Wicket to handle it and on its page map mechanism. As explained earlier, an entry is not pushed for Ajax responses unless you manually do so and

Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
I didn't get your usecase exactly yet, but maybe this will help you: http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ Cheers, -Tom On 04.09.2012, at 17:33, Alec Swan wrote: > I saw the link explaining how to migrate > "SharedResources#putClassAlias(GlobalResourceScope.class,

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher wrote: > Hi, > > I successfuly created a Select2Choice item in my form. I fill it up from a > model and everything works fine but the listed choices' display in wrong > codepage. I use utf8 everywhere and have no problems with cp. i believe this was fi

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
Thanks, Tom. I saw the link explaining how to migrate "SharedResources#putClassAlias(GlobalResourceScope.class, "global")" before but was found it confusing because "global" and "images" aliases 1.4 version were replaced with "imgres" in 1.5 example. All I need to do is use "global" in place of G

Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
Please see my inline comments. Cheers, -Tom >> On 04.09.2012, at 02:36, Alec Swan wrote: >>> >>> * How to implement HybridUrlCodingStrategy in 1.5? Please have a look at http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ >>> * I saw a ticket related to putClassAlias, but I co

select2 localization questions

2012-09-04 Thread Sandor Feher
Hi, I successfuly created a Select2Choice item in my form. I fill it up from a model and everything works fine but the listed choices' display in wrong codepage. I use utf8 everywhere and have no problems with cp. The second one is how to localize select2 messages from select2.js ? E.g. formatNoMa

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
I used that migration guide during the migration but none of the questions in my original post were answered there. Alec On Tue, Sep 4, 2012 at 12:44 AM, Thomas Götz wrote: > Take a look at the migration guide, this will answer some (if not all) of > your questions: > https://cwiki.apache.org/W

Re: exception handling (get cause page)

2012-09-04 Thread Alfonso Quiroga
It works perfectly thanks On Mon, Sep 3, 2012 at 3:11 PM, Martin Grigorov wrote: > Hi, > > See > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java > Register it, then use it: > PageRequestHandlerTracker.getLastHa

Re: Wicket Ajax and Session expiry

2012-09-04 Thread Martin Grigorov
Hi, The real problem is that IAuthorizationStrategy uses IComponentInstantiationListener (note: *instantiation*). This works OK for Page in your case because you use it for the check. When a non-Page component is being instantiated it still doesn't know about its immediate parent, nor the Page it