You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Ivan Furdi <iv...@uniplus.hr> on 2011/11/07 14:56:27 UTC

Reusing controls on fieldsets

Hello again,

I would like to know how to reuse a control on multiple fieldset and if 
that is even possible?

Example :

I have a tabbed panel with 2 tabs with forms on each tab. Each form 
contains one fieldset with some fields.
One query select field is common for both fieldsets and I add it during 
onInit() method to the first fieldset but i
cannot add it to the second one too - if I do such a thing it just 
changes the parent and its not added on first one.

Any suggestions?

Ivan

Re: Reusing controls on fieldsets

Posted by Ivan Furdi <iv...@uniplus.hr>.
Yeah , I've done that already but wanted to check if there is some way 
to reuse controls without declaring new ones.

Anyway, thank you for your reply !

On 7.11.2011 15:24, Bob Schellink wrote:
> Hi Ivan,
>
> No you cannot reuse the same instance on the same page. Click controls
> form a tree view, one parent, multiple children. Children cannot have
> multiple parents like in a graph.
>
> Why not create another select field for the second fieldset?
>
> regards
>
> Bob
>
> 2011/11/7 Ivan Furdi<iv...@uniplus.hr>:
>> Hello again,
>>
>> I would like to know how to reuse a control on multiple fieldset and if that
>> is even possible?
>>
>> Example :
>>
>> I have a tabbed panel with 2 tabs with forms on each tab. Each form contains
>> one fieldset with some fields.
>> One query select field is common for both fieldsets and I add it during
>> onInit() method to the first fieldset but i
>> cannot add it to the second one too - if I do such a thing it just changes
>> the parent and its not added on first one.
>>
>> Any suggestions?
>>
>> Ivan
>>
>


-- 
Srdac(an pozdrav,

Ivan Furdi



Re: Reusing controls on fieldsets

Posted by Bob Schellink <sa...@gmail.com>.
Hi Ivan,

No you cannot reuse the same instance on the same page. Click controls
form a tree view, one parent, multiple children. Children cannot have
multiple parents like in a graph.

Why not create another select field for the second fieldset?

regards

Bob

2011/11/7 Ivan Furdi <iv...@uniplus.hr>:
> Hello again,
>
> I would like to know how to reuse a control on multiple fieldset and if that
> is even possible?
>
> Example :
>
> I have a tabbed panel with 2 tabs with forms on each tab. Each form contains
> one fieldset with some fields.
> One query select field is common for both fieldsets and I add it during
> onInit() method to the first fieldset but i
> cannot add it to the second one too - if I do such a thing it just changes
> the parent and its not added on first one.
>
> Any suggestions?
>
> Ivan
>