paco_online
11 Aug 2009, 11:10 AM
Hi all,
i have a BaseModel with some key-value pairs in the RcpMap (e.g. "firstName", "lastName", ...). Now i want to bind the keys from the BaseModel to the depending TextField<String> on my form ("firstName" to TextField<String> for the First-Name, and so on).
So if the user does an input the the TextField, the data for the key is also updated. E.g. the user does an input to First-Name, there is an "automatic" set("firstName") to my BaseModel.
Is this possible?
And if yes, can someone give me a working solution, maybe with a code-snippet?
Greetings
i have a BaseModel with some key-value pairs in the RcpMap (e.g. "firstName", "lastName", ...). Now i want to bind the keys from the BaseModel to the depending TextField<String> on my form ("firstName" to TextField<String> for the First-Name, and so on).
So if the user does an input the the TextField, the data for the key is also updated. E.g. the user does an input to First-Name, there is an "automatic" set("firstName") to my BaseModel.
Is this possible?
And if yes, can someone give me a working solution, maybe with a code-snippet?
Greetings