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
>>
>> 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
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
ragment.add(label);
>
>add(componentFragment);
>
>setRenderBodyOnly(true);
>}
>
>protected void convertInput() {
>setConvertedInput(editor.getConvertedInput());
&
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
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
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
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
setRenderBodyOnly(true);
}
protected void convertInput() {
setConvertedInput(editor.getConvertedInput());
}
public String getInput() {
return editor.getInput();
}
}
--
View this message in context:
http://www.nabble.com/Us