Thanks, yes, I'd been looking at RepeatingView and hadn't noticed
ListView, which was what I really needed, as I needed to have embedded
components, which RV doesn't do but LV does...

That and:
    listItem.setMarkupId(PREFIX + index);
    listItem.setOutputMarkupId(true);
pretty much sorted it...

/Gwyn

On Wed, May 21, 2008 at 5:37 AM, Martin Makundi
<[EMAIL PROTECTED]> wrote:
> You are being a bit ambiguous about your goals, but I will try.
>
> Think of repeaters like for-iterators, get started here:
> http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html
>
> **
> Martin
>
> 2008/5/21 Gwyn Evans <[EMAIL PROTECTED]>:
>> I've not got into the repeaters as yet, so wondering if anyone has any
>> pointers to help get started...
>>
>> Hopefully this will come through as understandable...
>>
>> I'm currently using something like the following markup:
>>
>> card id=A   p   select wicket:id="mycomponent"
>>    option
>> /select  /p  /card
>>
>> with my component based on the dropdown component (but cutdown), to
>> produce something like:
>>
>> card id=A   p  select
>>    option value=1 "a"
>>    option value=2 "b"
>>    option ...
>>    option value=9 "i"
>>  /select  /p  /card
>>
>> What I want, however, is to be able to produce something where rather
>> than getting a single select with 9 options, I can produce something
>> more like the following...
>>
>> card id="A"  p select
>>    option value=1 "a"
>>    option value=2 "b"
>>    option value=3 "c"
>>    option onpick="#A1" "more..."
>>  /select /p /card
>>
>> card id="A1"  p select
>>    option value=4 "d"
>>    option value=5 "e"
>>    option value=6 "f"
>>    option onpick="#A2" "more..."
>>  /select /p /card
>>
>> card id="A2"  p select
>>    option value=7 "g"
>>    option value=8 "h"
>>    option value=9 "i"
>>  /select /p /card
>>
>> Anyone fancy making suggestions as to the best approach?
>>
>> /Gwyn
>>
>> ---------------------------------------------------------------------
>> 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