I am writing a component that will be a mix between list and form. And would
like to render that kind of HTML structure:


FORM
  TABLE
    COLGROUP
      COL
      ...
    /COLGROUP
    THEAD
      TR
        TD Column1Label
        TD Column2Label
        TD Column3Label
      /TR
      TR
        TD INPUT
        TD (no input)
        TD INPUT
      /TR
    /THEAD
    TBODY
      (data)
    /TBODY
  /TABLE
/FORM


I would like to use filtering and validating mechanisms that already exist
in Zend_Form (or Zend_Dojo_Form) not reinventing the wheel. One can find an
input field in the head of each column but some columns may lack of input
field (here, column 2).

The problem is: the form and the grid do really intricate each other in
terms of HTML. The FORM is OUTSIDE the table and INSIDE it at the same time.

What is the best way to do it?

-----
Guillaume ORIOL
Sofware architect
Technema
-- 
View this message in context: 
http://www.nabble.com/best-way-to-mix-a-form-and-a-grid-tp19858283p19858283.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to