Hi,
I have some markup I am trying to repeat using a RepeatingView and if
the markup that I'm repeating binds to a Wicket Border, I get GPEs.
This seems like a bug to me.
Is it a bug or am I potentially doing something incorrect.
Here is the pertinent markup that is being repeated...
<div style="margin 10px;" wicket:id="optionRepeater">
<div wicket:id="outerGroupBox">
<input type="radio" wicket:id="radio"></input>
<span style="float: left;" wicket:id="title">[option
title]</span>
<hr/>
<span wicket:id="helpText">[item help text]</span>
</div>
</div>
Here is the pertinent code snippet for the above markup:
RepeatingView repeating = new
RepeatingView("optionRepeater");
group.add(repeating);
List<IQNWizardOption> wizardOptions = new
ArrayList<IQNWizardOption>(3);
wizardOptions.add(IQNWizardOption.TEMPORARY_WORKER);
wizardOptions.add(IQNWizardOption.COMPLIANCE_OR_PROFESSIONAL_CONSULTING_
WORKERS);
wizardOptions.add(IQNWizardOption.KNOWN_RESOURCE_INDEPENDENT_CONSULTANT)
;
for ( IQNWizardOption wizardOption :
wizardOptions )
{
WebMarkupContainer item = new
WebMarkupContainer(repeating.newChildId());
repeating.add(item);
OuterGroupBoxBorder
outerContainer = new OuterGroupBoxBorder("outerGroupBox");
item.add(outerContainer);
outerContainer.add(new
Radio<IQNWizardOption>("radio", new Model()));
outerContainer.add(new
Label("title", wizardOption.getTitle()));
outerContainer.add(new
Label("helpText", wizardOption.getHelpText()));
}
The GPE is on the outerContainer.add(new Label("title"), ...) and Wicket
states that the "title" wicket id already exist in the markup.
I am running Wicket 1.4.1.
Thoughts, Ideas?
J.D.
J.D. Corbin | IQNavigator, Inc. | Technology 6465 Greenwood Village
Blvd, Suite 800, Centennial, CO 80111 | Office 303.563.1503 | Mobile
303.912.0958 | www.iqnavigator.com | [email protected]