Why don't you just make your outermost tag the repeater (it looks like an H3 in your example)?
-- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 21, 2009 at 7:24 PM, Jason Novotny <[email protected]>wrote: > > Hi, > > I have some markup I wish to repeat like so: > > ... > > <h3><a href="#"><span wicket:id="workoutCategory">Blah Blah > Blah</span></a></h3> > <div wicket:id="activeGroup"> > <p> > <ol wicket:id="workoutList" class="workoutList"> > <li wicket:id="item"><span wicket:id="label"><strong>Workout > Name.</strong></span></li> > </ol> > </p> > </div> > > > ... > > So I wrapped the whole thing inside a <div wicket:id="container"> like so: > > <div wicket:id="container"> > <h3><a href="#"><span wicket:id="workoutCategory">Blah Blah > Blah</span></a></h3> > <div wicket:id="activeGroup"> > .... </div> > </div> > > and use a RepeatingView rv = new RepeatingView("container"); > > This works fine except the resulting HTML still contains the outer div to > appear which causes the markup to break since it relies on Jquery to attach > some classes, etc and is not expecting the outer div's. > I've tried rv.setRenderBody(false) which works for wicket Label's if you > don't want to display the span tag but doesn't work here. Does anyone have > any idea of how to not display the RepeatingView markup of div tags? > > Thanks a bunch. Jason > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
