How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread huberc
Hi all, I am pretty new to Wicket (using 1.4.10) and have some hard time to figure out how the interaction between components and models exactly works. So I was hopeing that someone here could enlighten me or tell me where I should look (WARNING: Rather lengthy post). My particular problem

Re: Original page cloned after popup dialog closes

2011-05-28 Thread andrea del bene
Hi, sorry but I don't understand where is the model you are trying to modify. Are you sharing a model instance between modal window and RadioListFilterDialog? What does refreshRadioListAreaResponse method do? Andre, Line 41 opens the dialog. The object ID of the page is the same there, on

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread andrea del bene
Hi, Have you called setType(Calendar.class) in your custom form component? Does its model remain 'null'? Hi all, I am pretty new to Wicket (using 1.4.10) and have some hard time to figure out how the interaction between components and models exactly works. So I was hopeing that someone here

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread James Carman
Please list your constructors of your custom component. I believe the auto-resolving of models from a parent CPM is done during the constructor (the one with just the component id). On Sat, May 28, 2011 at 8:27 AM, andrea del bene andrea.on@libero.it wrote: Hi, Have you called

Re: Original page cloned after popup dialog closes

2011-05-28 Thread Scott Reed
Hi, Let's work with the example I sent you last night since it's complete and there's nothing to explain. Thanks, Scott On 5/28/2011 3:49 AM, andrea del bene wrote: Hi, sorry but I don't understand where is the model you are trying to modify. Are you sharing a model instance between

Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread jbrookover
Hey all, First off, apologies for a potential dual post - I used nabble and posted to a super-level to this list. We've been using Wicket 1.4 + Hibernate 3.3 + Databinder 1.3.0 for quite some time now. I wanted to update to a more recent version of Hibernate, but Databinder was incompatible and

Re: Original page cloned after popup dialog closes

2011-05-28 Thread Scott Reed
Wicket creates a new version of the page after a popup Modal Window closes. This means any changes made to the original page from the popup are lost once the popup is closed. I suppose I could store the data for the change in the session and change the new page version after the popup closes

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread James Carman
You could check out Wicketopia. It has support for Hibernate. You can run the example application to see how it works. On Sat, May 28, 2011 at 11:48 AM, jbrookover jbrooko...@cast.org wrote: Hey all, First off, apologies for a potential dual post - I used nabble and posted to a super-level

Re: Original page cloned after popup dialog closes

2011-05-28 Thread andrea del bene
Store data and sharing them across pages/components should be Wicket model's purpose. In your code you create a RadioListFilterDialog as modal window content. Do you pass it the original model of RadioListPage? Wicket creates a new version of the page after a popup Modal Window closes. This

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread Daniel Toffetti
jbrookover wrote: We've been using Wicket 1.4 + Hibernate 3.3 + Databinder 1.3.0 for quite some time now. I wanted to update to a more recent version of Hibernate, but Databinder was incompatible and seems pretty dead. My question is what do people use for their bridge between Wicket and

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread jbrookover
James Carman wrote: You could check out Wicketopia. It has support for Hibernate. You can run the example application to see how it works. I've been doing some searching and found many of your replies to this statement, but I was thinking without Spring involvement. I don't have any

Re: Original page cloned after popup dialog closes

2011-05-28 Thread Scott Reed
Yes. I pass the original page and the model is accessed by a getter. When the modal window closes and the onClose() callback is called, the page and the model have been replaced by clones. On 5/28/2011 2:03 PM, andrea del bene wrote: Store data and sharing them across pages/components should

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread James Carman
Wicketopia doesn't require spring. On May 28, 2011 3:13 PM, jbrookover jbrooko...@cast.org wrote: James Carman wrote: You could check out Wicketopia. It has support for Hibernate. You can run the example application to see how it works. I've been doing some searching and found many of your

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread Rodolfo Hansen
I also have a bit of code we have been working on.. I was sorta procrastinating with it on my local box. Things have been rather overwhelming lately. If you would like to make a pull request, I will gladly review it, and merge it into my branch. I actually have some work regarding integration