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-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20698456
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 along
(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 the Wicket - User mailing list archive at Nabble.com
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
://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20697019.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
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 the Wicket - User mailing list archive
-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20709911.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
FYI, you are awesome.
Always obvious what the problem is after its fixed hey ;)
igor.vaynberg wrote:
then justmodel.object will do :)
-igor
--
View this message in context:
http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20710669.html
Sent from