it doesnt wrap itself.
there is no difference between these 2 impl in the
AttachedCompoundPropertyModel:

       public IWrapModel wrapOnAssignment(Component component)
       {
           return new AttachedCompoundPropertyModel(component);
       }

or

       public IWrapModel wrapOnAssignment(Component component)
       {
           return CompoundPropertyModel.this.wrapOnInheritance(component);
       }

it does exactly the same.
It just blows up the code.

johan



On 10/1/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:

The wrap model for the compound property model implements both
IInheritableModel and IAssignmentAware. The
AttachedCompoundPropertyModel wraps itself in both these models.
Shouldn't this be done with the nested compound propertymodel instead?

i.e.:

public IWrapModel wrapOnInheritance(Component component) {
        return CompoundPropertyModel.this.wrapOnInheritance(component);
};

public IWrapModel wrapOnAssignment(Component component) {
        return CompoundPropertyModel.this.wrapOnInheritance(component);
};

The latter is a bit strange as the compound property model itself is
not assignment aware.

Martijn

--
<a href="http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote</a>
for <a href="http://www.thebeststuffintheworld.com/stuff/wicket
">Wicket</a>
at the <a href="http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!</a>

Reply via email to