You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Tim Hooper <th...@gmail.com> on 2009/09/10 21:36:22 UTC
Tabbed Form Question
Is there a way to dynamically add new Tabs to the Tabbed Form example?
I've tried many approaches, and can't get it to work.
Also, i'd like to dynamically add fields to each tab sheet but
haven't gotten that to work either.
Thanks.
Tim
Re: Tabbed Form Question
Posted by Malcolm Edgar <ma...@gmail.com>.
Hi Tim,
I haven't tried this myself. Its actually quite difficult to
dynamically create controls in pages, because typically you need all
the controls to process the request. Adding controls after the process
stage means that the added controls don't participate in the
processing.
I have built quite a few pages which have a TabbedPanel and inside a
Panel is a dynamic form which has different controls depending upon
some context. I have been using stateful pages to make this easier to
do, but it introduces other problems when you try add a new control to
a stateful page, but it has already been added. Fixing up these bugs
and can be a real pain.
regards Malcolm Edgar
On Fri, Sep 11, 2009 at 5:36 AM, Tim Hooper <th...@gmail.com> wrote:
> Is there a way to dynamically add new Tabs to the Tabbed Form example?
> I've tried many approaches, and can't get it to work.
> Also, i'd like to dynamically add fields to each tab sheet but
> haven't gotten that to work either.
>
> Thanks.
>
> Tim
>
>