Follow-UP:
I solved the problem I had with the listView; it works as expected if
you do a
.setReuseItems(true); to the ListView
However, the problem with the wicket enclose to a feedBackPanel still
exists... this one wont work;
Korbinian Bachl - privat schrieb:
Hello,
Ive got 2 problems,
1st;
I tried the FactoryPattern with form components like TextField and now
have the problem, that due to the recreation of the FormFields by the
Factory the inserted value into the model gets lost in case of a invalid
form submit (e.g: error in one field = all entered value is lost). I
think this is because the Factory always generates a new one;
code is this (just 1 example):
ListIRapidFormPanelFactory flist = new
ArrayListIRapidFormPanelFactory();
flist.add(new IRapidFormPanelFactory() {
public RapidFormBasePanel getFormPanel(String id) {
return new TextFieldRapidFormPanel(id, LABEL,
NOTE, model.bind(field));
}
});
The model itself is a final one - how can I make sure that these
formfields behave like they should (not loosing their input in case of
valid errors)?
2nd;
how can I bind an wicket:enclosure to a feedbackform? I tried to
override the isVisible()
of the feedback by
isVisibel() {
return anyError();
}
but that didnt work; What would the optimal code be to use it?
Best,
Korbinian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]