I'm Having trouble getting Fragments to work. Here is my markup
<span wicket:id="border" class="mark">
<span wicket:id="showAllergies" />
</span>
<wicket:fragment wicket:id="noAllergies" >
DUDE you are lucky!
</wicket:fragment>
If I add a fragment like this
getBorder().add(new Fragment("showAllergies", "noAllergies", this));
I get this Error..
Unable to find component with id 'showAllergies' in [MarkupContainer
[Component id = _body]]. This means that you declared
wicket:id=showAllergies in your markup, but that you either did not add
the component to your page at all, or that the hierarchy does not match.
But if I do something like this, it finds the component.
getBorder().add(new AllergiesFragment("showAllergies", "noAllergies"));
private class AllergiesFragment extends Fragment {
public AllergiesFragment(String id, String markupId) {
super(id, markupId);
}
}
Can someone tell me what what I'm missing?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]