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 mgrigo...@apache.org wrote: Thanks ! It is more clear now ! On Wed, Nov 5, 2014 at 3:44 PM, Wayne W waynemailingli...@gmail.com wrote: Sorry Martin its not clear enough. This

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

Re: ResourceModel with default *key*

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

Re: How to use CSVDataExporter

2014-11-06 Thread suvojit168
Francois Meillet wrote try Listlt;IExportableColumnlt;AffiliateModel, ?gt; columns = new ArrayListlt;IExportableColumnlt;AffiliateModel, ?gt;(); 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

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 t...@decoded.de wrote: You could try something like this:

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:

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:

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 IModelListAnything list; public MyPage(IModelListAnything

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

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:

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:

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.this,

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