No, sorry, that doesn't make sense to me. But I'm glad to hear you worked
out the problem, and more importantly, understand the usage of detachable
models. :)
On Fri, Aug 5, 2011 at 1:52 AM, Mathilde Pellerin <
mathilde.pelle...@statlife.fr> wrote:
> Wonderful ! it works with "*InjectorHolder.get
Wonderful ! it works with "*InjectorHolder.getInjector().inject(this);*".
Thank to you all.
Can someone could explain to me why I need a specific
LoadableDetachableModel only when I add CSSPackageResource to my modal
window ?
public QuestionnaireModel(Long primaryKey) {
InjectorHolder.getInstance().inject(this);
id = primaryKey;
}
On Fri, Aug 5, 2011 at 11:27 AM, Mathilde Pellerin
wrote:
> Ok, so I try with your method. This is my model :
>
> public class QuestionnaireModel extends
Ok, so I try with your method. This is my model :
public class QuestionnaireModel extends
LoadableDetachableModel {
@SpringBean
private ServiceQuestionnaire serviceQuestionnaire;
private Long id;
public QuestionnaireModel(Long primaryKey) {
id = primaryKey;
}
@Ove
> When I do this :
> new Model(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 {
private String theKey;
public QuestionnaireModel(String key) { theKey
Hi Dan,
I followed your advise : I change Questionnaire so it is not serializable
and errors appeared in my page for this line :
item.add(new BoutonRemplirQuestionnaire("boutonQuestionnaire", new
Model(q)));
and it's coherent because it's when I click on this AjaxLink that I have the
first error
Hi Mathilde,
The story must be more complicated than your addition of a
HeaderContributor. Somehow you're serializing a Questionnaire into your
Wicket session, and when it's used in a subsequent request, the Hibernate
session associated with its lazy collection of questions has been closed.
One wa
Hi all,
I want to override some style of modal window, so I created a css file and I
added it on the modal window constructor :
public class ModalWindowE4N extends ModalWindow {
public ModalWindowE4N(String id, String titre) {
super(id);
add(CSSPackageResource.getHeaderContri