Pseudo Code: CompoundPropertyModel<String> labelModel = new CompoundPropertyModel<String>(labelProps); panel.setDefaultModel(labelModel); /* Load labels at the PANEL level */ panel.add(new Label(label[1]));
form = new Form(new CompoundPropertyModel(myObj)) /* Load data at the form level */ panel.add(form); form.add(myObj.fieldName); ... Markup that will generate a error: panel.html: <form wicket:id="theform"> <div wicket:id="...someLabelFromPanelLevel" /> -- I want to access from the labelProps (this does not work) <input wicket:id="someFieldFromMyObjFormLevel" /> -- I want to access from myObj (this works) </form> ... With the current code, I can't access from the "someLabelFromPanelLevel" data or I will get a accessing outside of the hierarchy error message. I wish I could do the following (way to access higher up the hierarchy) Markup: panel.html: <form wicket:id="theform"> <div wicket:id="/PAGE:PANEL:someLabelFromPanelLevel" /> -- I want to access from the labelProps <input wicket:id="someFieldFromMyObjFormLevel" /> -- I want to access from myObj </form> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
