2009年3月26日星期四

Re: [fw-mvc] remove decorator

-- keith Pope <mute.pop3@googlemail.com> wrote
(on Thursday, 26 March 2009, 08:07 PM +0000):
> The reason the $submit->removeDecorator('DtDdWrapper'); does not work
> is because the DtDdWrapper is not registered on elements, the
> DtDdWrapper decorator is only used by DisplayGroups and Subforms.

That's actually not true. While most elements have the default
decorators you listed previously, several types are handled differently
-- image, submit, button, captcha, and hidden all behave slightly
differently, and some of these have the DtDdWrapper.

> All elements are built like this (in this order):
>
> 1. ViewHelper
> <input type="hidden" ../>
>
> 2. Errors
> <input type="hidden" ../>
> <ul><li>...</li></ul>
>
> 3. HtmlTag
> <dd>
> <input type="hidden" ../>
> <ul><li>...</li></ul>
> </dd>
>
> 4. Label
> <dt>Label</dt>
> <dd>
> <input type="hidden" ../>
> <ul><li>...</li></ul>
> </dd>
>
>
> 2009/3/26 Ed Lazor <edlazor@internetarchitects.biz>:
> > Thanks, Keith - that does help.  I'm still curious about the behavior
> > of the form and why it's not working as I expect, but it's very nice
> > to have work around solutions as well.
> >
> >
> >> I use a css class to hide the dd tag so that there is no gaps in the
> >> form visually, you could also do this for the dt as well.
> >>
> >> Hope this helps
> >
>
>
>
> --
> ----------------------------------------------------------------------
> [MuTe]
> ----------------------------------------------------------------------
>

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: