I have a simple text input field where i have to set default value from one object and save its final value in other. The following code is not working.
<
It has 2 possible solutions:
1) You can set it in the view by javascript... (not recomended)
2) Or the better solution is to set the value in the model, that you attach to the view in GET operation by a controller. You can also change the value in the controller, just make a Java object from $client.name and call setClientName.
public class FormControllModel {
...
private String clientName = "default";
public String getClientName () {
return clientName;
}
public void setClientName (String value) {
clientName = value;
}
...
}
I hope it helps.