Hello!

We're struggling with working around the final modifier for the 
MarkupContainer#add(Component ...) method.
We have the following scenario:
1. We'd like to use a repeater to add some components to the form.
2. We'd like these components to work with CompoundPropertyModel, thus we need 
these to have meaningful wicket ids
3. We'd like not to find ourselves backstabbed by the non-numeric ids in the 
RepeatingView's children.

This brings us to a suggested "wrapping" of the children in 
WebMarkupContainers, but we'd like to hide it to get rid of the 

webmarkupcontainer item=new webmarkupcontainer(rv.newchildid());

part. To do this, it seems logical to extend the RepeatingView overriding the 
add() method to be wrapping every component, however the add() method is final 
:(

Could anyone suggest some other way to resolve this situation? Or, perhaps, it 
could be acceptable to "officially" remove the final modifier from the add() 
method?

Thanks in advance!

Ilya German.

Reply via email to