Hi,

I need to render data tables in my form with the layout

   +-------+-------+-------+
   | Label | Label | Label |
   +-------+-------+-------+
   | Value | Value | Value |
   +-------+-------+-------+

I tested all kinds of methods like rendering with

   - composite decorator
   - standard decorators
   - view script decorator
   - view script

but none of the solutions looks really nice - they are all cluttered
with too many lines of code - and I simply fear that I will be unable to
refactor / build new functionalities in a few weeks of time, when the
focus of development is somewhere else.

The best solution would be theoretically to generate all the form data
as XML and to build the whole form utilizing XSLT - but I neither want
to override all decorators and view facilities in order to produce the
whole site as XML, nor do I think that this is the way that ZF was
designed to work, thus I prefer to stick with what is there.

I also tried to use definition lists and to display them in table layout
using CSS, but that solution is also suboptimal - and eventually the
table environment is there for exactly this purpose, isn't it? :P

As the forms are parameter driven and the data is dynamically generated,
I also cannot specify forms for each purpose. And passing the parameters
to view scripts just shifts the problem from the form to the view script
code.

Stop yawning. :)

As I already spent two months on refactoring my whole form over and over
again, I really would like to hear your professional opinion on how to
implement a parameter and database driven form, which will render a
(theoretically) unlimited amount of form elements, where some of them
represent table data while sticking as much as possible to the design
ideas of ZF.

Thx a lot in advance!

-- 
Cheers,                        \\|//
Vince                          (o o)
----------------------------ooO-(_)-Ooo-------------------------
 '''   (o)_(o)                                        [ ][0][ ]
 ô¿ô   (=°o°=)   World Domination by Copy and Paste   [ ][ ][0]
  -    (")_(")                                        [0][0][0]

 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments
                                   Ooo.
---------------------------.ooO----(  )-------------------------
                           (  )    (_/
                            \_)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to