2010年3月3日星期三

Re: [fw-mvc] Form DisplayGroup inside tabs

Hi,

If you need it to be reusable, I think you could write a tabcontainer and
contentpanel that inherit from displaygroup and just change the decorators
used (never tried but it seems that you can add a displaygroup to an
existing displaygroup). From there, you can choose to add submit and rest
button to all contentpanels or keep it in the form.

Another solution is to use a viewhelper to display your form and handwrite
the html but you lose reusability.

There could be other/better solutions

Ludwig


--------------------------------------------------
From: "Emanuele Deserti" <emanuele.deserti@netwing.it>
Sent: Wednesday, March 03, 2010 10:37 AM
To: "Zend Framework MVC" <fw-mvc@lists.zend.com>
Subject: [fw-mvc] Form DisplayGroup inside tabs

> Hi to all,
>
> it's possible to configure a Zend_Form object for display all
> displaygroup inside different tabs (using tabContainer and contentPane of
> Zend_Dojo)?
>
> One displaygroup = one tabs
> Submit and Reset button = OUTSIDE the TabContainer OR in ALL tabs...
>
> There is a "simple" way or I need custom decorators and custom code?
>
> Thanks in advance
>
> ---
> Emanuele Deserti
> Netwing S.r.l.
> <emanuele.deserti@netwing.it>
> Tel.: 0532 - 1912002
> http://www.netwing.it
>

没有评论: