final LoadableDetachableModel<AccountCommand> accountCommand = new
AccountDetachableModel(userId, personId);


final AccountForm form = new AccountForm("accountForm", accountCommand);


My AccountCommand {
 private Integer userId;
    private Integer accountId;
    private String  accountName;
    private String  accountFN;
    private String  accountLN;
}

 it does not have userName field since the userName getters is on the User
domain object not Account command object. 

My AccountDetachableModel is just 

@Override
protected AccountCommand load() {
    AccountCommand accountCommand = new AccountCommand();  
    // query id and set the account command field. 
    return accountCommand;
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-No-get-method-defined-for-class-class-java-lang-String-expr-tp3459462p3462988.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to