wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Meier <s...@meiers.net>
Subject Re: PropertyListView without inner component
Date Fri, 22 Sep 2017 08:16:20 GMT
Hi,

yes, you have to manage the list by yourself: override onConfigure(), 
remove all children and add labels add needed.

ListView does the same, just a little more convenient.

Have fun
Sven


Am 22.09.2017 um 09:28 schrieb Alberto Brosich:
> On Thu, 2017-09-21 at 21:06 +0200, Sven Meier wrote:
>> Hi,
>>
>> as an alternative you can use a RepeatingView, it allows you to
>> repeat
>> markup for children without additional Item containers.
> Yes, but it doesn't work with lists. I have to add items manually,
> isn't it?
>
> Thanks
>
> Alberto
>
>
>> Have fun
>> Sven
>>
>>
>> Am 21.09.2017 um 11:52 schrieb Alberto Brosich:
>>> Hello,
>>>
>>> I have a PropertyListView in a page with a CompoundPropertyModel on
>>> a
>>> JAXB generated class.
>>>
>>> I have simply to repeat a "<dd>" element.
>>>
>>> I found two solutions:
>>> - using an outer <wicket:container wicket:id="titles.title">
>>> element;
>>> - using an inner <span wicket:id="value"> element with
>>> setRenderBodyOnly(true).
>>>
>>> ex.
>>>
>>> queue(new PropertyListView<Title>("titles.title") {
>>>
>>> 	@Override
>>> 	protected void populateItem(ListItem<Title> item) {
>>> 		item.queue(new Label("value"));
>>> 	}
>>> });
>>>
>>> "value" is the property of the model but I would not have an inner
>>> tag
>>> with that wicket:id.
>>>
>>> Is it possible?
>>>
>>> Regards
>>>
>>> Alberto
>>>
>>>
>>>
>>> -----------------------------------------------------------------
>>> ----
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message