Igor Vaynberg <igor.vaynberg <at> gmail.com> writes: > > > are you using the constructor with markupProvider to construct the fragment? the markupprovider should point to the component in whose markup the fragment is defined. so if a fragment is defined in some panel's markup that panel instance is the markup provider. > -Igor > > On 5/31/06, Renaut, Jonathan E CTR DISA GIG-CS <Jonathan.Renaut.ctr <at> disa.mil> wrote: > > > > > > > > > > I am trying to use fragments to decorate a column in a DefaultDataTable to either build an external link, or display text. I followed the Wicket QuickTour: Using Fragments example, although in a more complicated setting, and I keep getting a "Markup does not contain fragment with id:" error message. > > I fear this is because the DefaultDataTable is inside a panel on the page, and the fragment is defined in a class that extends PropertyColumn and somehow the parent-child relationship has gotten confused. > Any suggestions? > > > > > > > > Yes. The markupProvider id that's passed into the fragment constructor points to the DefaultDataTable cell id - I'm using a class extending PropertyColumn and implementing populateItem(Item item, String componentId, IModel model). I then call item.add(new Fragment(componentId, fragmentId) where fragmentId is the wicket:id from the wicket:fragment that I want to use.
------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
