Hi
I have a wicket wizard with 5 steps and in the confirmation step, I have a
panel which contains 3 Fragments.
This panel will render one of these fragments based on the state of the Model.
The problem is the that this panel is getting cached wen the wizard model is
initialized .
Is it possible to force the wizard step which contains this panel to reload or
refresh.
// this is the wizard step
*/
public AlertQryConfirmationStep(final IModel<AlertBean> abModel) {
setDefaultModel(abModel);
setTitleModel(new ResourceModel("confirmation.title"));
add(new QryDisplayPanel("qryDisplayPanel", abModel));
}
// this is the pane code
public QryDisplayPanel(String idm, IModel<AlertBean> abModel) {
super(idm);
logger.info("QryDisplayPanel -- -- QryType : " +
abModel.getObject().getQryType());
setDefaultModel(abModel);
if (abModel.getObject().getQryType() == 1) {
add(new EasyQueryFragment("querySpan", "easyQueryFragment",
abModel));
} else if (abModel.getObject().getQryType() == 2) {
add(new AdvancedQueryFragment("querySpan", "advancedQueryFragment",
abModel));
} else if (abModel.getObject().getQryType() == 3) {
add(new LuQueryFragment("querySpan", "luQueryFragment", abModel));
} else {
add(new EmptyPanel("querySpan"));
}
}
Thanks for your hep
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]