[Wicket-user] Passing model to panel

2006-05-03 Thread RĂ¼diger Schulz
Hello fellow Wicket users, I have a general question regarding models and using them with forms and custom panels. In my example I have a form with a CompoundPropertyModel and several standard TextFields etc., each one therefore being mapped to a Property of the Bean passed to the CPM. So far so

Re: [Wicket-user] Passing model to panel

2006-05-03 Thread Johan Compagner
what does the panel have to do with the property in a CPM?It is the things that are in the panel that want to use the CPM that needs the right properties.But are you saying you want to make a somwhat generic FormPanel with textfields that must map on specific properties on a random CPM?You could

Re: [Wicket-user] Passing model to panel

2006-05-03 Thread RĂ¼diger Schulz
Hello Johan, yes, I'd like to make a generic Panel, which Model is updated (somehow) by a combination or some other computation of the Models of its included FormComponents. So the Panel shall map on a single property, but consists of several sub-components. I see that Palette from extensions

Re: [Wicket-user] Passing model to panel

2006-05-03 Thread Johan Compagner
But what you want is a specialized FormComponentbut give the panel the id you want to get out of the compound modelbut do give the compound model to the panel:class MyPanel extends Panel {public MyPanel(String id, Model parentCompoundModel, String[] textFieldIds) { super(id); setModel(new