Re: Wicket 6 Session issue

2014-11-06 Thread Wayne W
Hi Martin, I think this might have solved it . Many thanks :-) On Wed, Nov 5, 2014 at 1:49 PM, Martin Grigorov wrote: > Thanks ! It is more clear now ! > > > On Wed, Nov 5, 2014 at 3:44 PM, Wayne W > wrote: > > > Sorry Martin its not clear enough. This any better? > > > > > >1. Tomcat1 / S

ResourceModel with default *key*

2014-11-06 Thread Guillaume Smet
Hi all, Maybe we are missing something but we haven't found an elegant way to have a ResourceModel with a default *key* if the current key doesn't exist. There is a mechanism for a default *string* but it's not sufficient for us (we want to be able to specialize the key if needed but have an inte

Re: ResourceModel with default *key*

2014-11-06 Thread Tom Götz
You could try something like this: https://gist.github.com/tgoetz/0735b05d47b16acf2fd7 Cheers, -Tom > On 06.11.2014, at 11:53, Guillaume Smet wrote: > > Hi all, > > Maybe we are missing something but we haven't found an elegant way to

Re: How to use CSVDataExporter

2014-11-06 Thread suvojit168
Francois Meillet wrote > try > List> columns = new > ArrayList>(); Hi François, Thanks for reply. I am using wicket 6.16. As per this Link

AjaxFormChoiceComponentUpdatingBehavior for custom CheckGroup and CheckGroupSelector

2014-11-06 Thread lucast
Dear Forum, Based on wicket examples, I built a custom CheckGroup with added CheckGroupSelector. I also want to add an AjaxFormChoiceComponentUpdatingBehavior() instance to the CheckGroup to update the items selected. And this is where the problem lies. I have extended CheckGroup class to make us

Re: ResourceModel with default *key*

2014-11-06 Thread Guillaume Smet
Hi Tom, Thanks for your suggestion! That's the kind of thing I had in mind if we haven't missed anything in the API but I was hoping we have missed something as it seems generally useful! On Thu, Nov 6, 2014 at 12:49 PM, Tom Götz wrote: > You could try something like this: > https://gist.githu

Re: How to use CSVDataExporter

2014-11-06 Thread Francois Meillet
Hi Suvojit, I don't know CSVDataExporter but I noticed that the second bounded type parameter was a wildcard and not a defined type. I use Wicket 7 where there are only 2 parameters. See some examples: http://www.7thweb.net/wicket-jquery-ui/kendo/datatable/CommandsDataTablePage;jsessionid=2926

Re: How to use CSVDataExporter

2014-11-06 Thread Sebastien
Hi François, Suvojit Actually the Wicket Kendo UI's DataTable (first example) is using a custom CSVDataExporter (largely inspired - not to say copy/paste - from the original). But it can still itself be used for inspiration... Source: https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-

PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Patrick Davids
Hi all, the javadoc of PropertyResolver says, map or list access is possible via keys or index. Accessing an map via key is no problem, but I dont get it working for lists and index. for instance: MyPage extends Page{ private IModel> list; public MyPage(IModel> list){ super();

Re: PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Paul Bors
I think that should have worked as per: http://wicket.apache.org/guide/guide/modelsforms.html#modelsforms_2 Label label = new Label("firstChildName", new PropertyModel(person, "children.0.name")); What version of Wicket are you using? On Thu, Nov 6, 2014 at 11:03 AM, Patrick Davids < patrick.d

Re: PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Patrick Davids
Hi Paul, v6.17.0. Maybe, I made a too reduced example. My property navigates further... its more like this: "list[1].anyProperty[key]" Is such a combination allowed? Patrick Am 06.11.2014 17:24, schrieb Paul Bors: > I think that should have worked as per: > http://wicket.apache.org/guide/guide

Re: PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Paul Bors
Create a quick-start, open a Jira ticket and provide a push request fixing it :) On Thu, Nov 6, 2014 at 11:38 AM, Patrick Davids < patrick.dav...@nubologic.com> wrote: > Hi Paul, > v6.17.0. > > Maybe, I made a too reduced example. > My property navigates further... its more like this: > "list[1].

Re: PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Sven Meier
Hi, you're telling PropertyModel to look up property "list" from MyPage, but "list" is not a list, it's a model, models don't have a property "1". Use this instead: new Label("myLabel", new PropertyModel(list, "[1],anyProperty")) ... or: new Label("myLabel", new PropertyModel(MyPage.thi

Re: AjaxFormChoiceComponentUpdatingBehavior for custom CheckGroup and CheckGroupSelector

2014-11-06 Thread Andrea Del Bene
I haven't used this js library, but isn't enough to trigger a click event on checkboxes? Like: $('#'+checkbox.id).iCheck('check'); $('#'+checkbox.id).trigger("click"); Dear Forum, Based on wicket examples, I built a custom CheckGroup with added CheckGroupSelector. I also want to add an AjaxFor