> When I do this :
>      new Model<Questionnaire>(q)
> it creates an IModel for Questionnaire, doesn't it?

I think he means to make a more dynamic model, e.g.

public class QuestionnaireModel extends LoadableDetachabeModel<Questionnaire> {

        private String theKey;

        public QuestionnaireModel(String key) { theKey = key; }

        public Questionnaire load() { /* Get Hibernate session and load based 
on key */ }
}

This serializes the minimum amount of state to "recreate" the complex object.

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to