Yesterday you pasted code with class User which is nowhere in the today's
paste.
We are not oracles. We cannot help you if you give us wrong information.

On Wed, Apr 20, 2011 at 4:28 PM, cablepuff <[email protected]> wrote:

> 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]
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to