Hi,

On Sun, Apr 13, 2014 at 7:44 PM, Sven Meier <[email protected]> wrote:

> >If the hierarchy is correct then the 1.4 logic is very confusing to me.
>
> Same way here ;).
>
> You know that Wicket 1.4 is no longer actively developed, so we won't
> improve this, even if it is a bug.
>

I've read this thread very quickly so I may miss something but Border has
been improved in Wicket 1.5.
Now there are two methods:
1) #add() - adds children to the body container (same for #remove,
#replace, #addOrReplace, etc.)
2) #addToBorder() - adds to the Border itself

This way it is more transparent for the application code.


>
> Regards
> Sven
>
>
>
> On 04/11/2014 11:07 PM, Craig L wrote:
>
>> Hi Sven, just a follow-up.  If I am reading the debugger correctly I
>> believe
>> everything is layered correctly without adding the form directly to the
>> border.bodycontainer.
>>
>> I stopped the debugger at the first instance of visitComponentsPostOrder
>> in
>> Form.class internalUpdateFormComponentModels() after Submit.
>>
>> 'this' is showing as the Form<T>
>>    Form's parent is GenericFormPanel
>>       GenericFormPanel's parent is Border$BorderBodyContainer
>>            Border$BorderBodyContainer's parent is our custom border
>> SpinnBorder
>>                 SpinnBorder's parent is GenericFormPage
>>                       GenericFormPage's parent is null
>>
>> After the ensuing findParent call the SpinnBorder becomes the first
>> argument
>> into the next visitComponentsPostOrder call and it starts marching down
>> the
>> children chain.
>>
>> If the hierarchy is correct then the 1.4 logic is very confusing to me.
>>  As
>> I read it as long as the Form lives anywhere underneath a Border.class
>> object, whether its in the BodyContainer or not, it's setObjects will get
>> called twice. Unless there is some way I need to detach the Form from the
>> Border during this submit process?
>>
>> Thanks in advance for enlightening me.
>> Craig
>>
>>
>>
>> --
>> View this message in context: http://apache-wicket.1842946.
>> n4.nabble.com/Form-component-s-model-setObject-getting-
>> called-twice-per-submit-when-inside-a-Border-tp4665278p4665375.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> 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