no need, just attach it to a wicket:container

[wicket:container][h3]..[/h3][div]..[/div][/wicket:container]

alternatively you can attach it to any tag and call setrenderbodyonly
on the component that is direct child of repeatingview

-igor

On Tue, Apr 21, 2009 at 5:48 PM, Jeremy Thomerson
<[email protected]> wrote:
> Sorry - poor formatting in my client made it hard to notice the closing H3.
>
> Looking at RV code - it really doesn't seem to work for this.  I'd suggest
> opening a JIRA and then adjusting your jquery script to expect the div.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Tue, Apr 21, 2009 at 7:35 PM, Jason Novotny <[email protected]>wrote:
>
>>
>> Ah but the h3 doesn't wrap the whole thing (or does it need to?) Basically
>> I'm trying to repeat the following structure:
>>
>> <h3>some stuff</h3>
>> <div>some div</div>
>> ....
>> <h3>more stuff</h3>
>> <div>more div</div>
>> ....
>> <h3>more more stuff</h3>
>> <div>more more div</div>
>>
>> Thanks Jeremy!
>>
>>
>> Jeremy Thomerson wrote:
>>
>>> 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]
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to