click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Lecheta" <rlech...@gmail.com>
Subject Re: This control's parent is already set to a Page
Date Mon, 29 Sep 2008 18:31:08 GMT
Hi Bob,

it worked.

On Mon, Sep 29, 2008 at 1:19 PM, Bob Schellink <sabob1@gmail.com> wrote:

> Ricardo Lecheta wrote:
>
>>
>> Noops, if you remove the Button from the page, it will be added to Form...
>> and it will be processed, right?
>>
>>
> Ah yes, it should.
>
> Perhaps you could patch Page and AbstractContainer and see if it works for
> you. In other words
> create a method Page#removeControl which reverses Page#addControl logic.
> And in AbstractContainer#insert
> instead of throwing exception, invoke Page#removeControl.
>
> Will that work in your case?
>
> regards
>
> bob
>
>
>


-- 
Ricardo Lecheta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message