Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
FYI, you are awesome. Always obvious what the problem is after its fixed hey ;) igor.vaynberg wrote: > > then just"model.object" will do :) > > -igor > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
>> >> String.format("model.object.%s", id))); >> >> > > -- > View this message in context: > http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20709911.html > Sent from the Wicket - User mailing list archive at Nabble.co

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
ned for class: class java.lang.String expression: name Rgds Ned igor.vaynberg wrote: > > String.format("model.object.%s", id))); > > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20709911.html Sent from

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
ragment.add(label); > >add(componentFragment); > >setRenderBodyOnly(true); >} > >protected void convertInput() { >setConvertedInput(editor.getConvertedInput()); &

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
ahhh, didnt catch that you were doing that.. Ned Collyer wrote: I'm going to be sourcing the labelText from a properties file relatve to the class of the modelObject (in this case it will be the User - eg, user.properties). If I use the binding, then I need to have scope to the CPM in java worl

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
l("labelText", CPM.bind("propertyname")); > > You can also do this for your property models btw... > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20699724.html Sent from

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
Hi Ned you can call bind on the compound property model.. labelText = new Label("labelText", CPM.bind("propertyname")); You can also do this for your property models btw... Ned Collyer wrote: I'm trying to throw together some components for easily creating accessible forms. I'm a fair bit al

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm not sure how to get the textfield "editor" working on the property "name" of the user object - I am aware the CPM is trying to look at the id "editor" which is wrong :). -- View this message in context: http://www.nabble.com/Using-CompoundPr

Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
setRenderBodyOnly(true); } protected void convertInput() { setConvertedInput(editor.getConvertedInput()); } public String getInput() { return editor.getInput(); } } -- View this message in context: http://www.nabble.com/Us