2008年8月5日星期二

Re: [fw-mvc] Zend_Form_Element will be created twice

Matthew Weier O'Phinney-3 wrote:
>
>
> The issue is that display groups don't currently have support for adding
> elements _after_ creation. There is an issue asking for this, but I've
> postponed it for now as it's a non-trivial change that would require
> giving display groups knowledge of their owning form.
>
> (There's also an issue on file to group all hidden fields separately
> when rendering so that they don't create whitespace, but that's also on
> hold for similar reasons.)
>
> A better way to do this would be to aggregate the names of all hidden
> elements, and then at rendering time create your display group.
>
>

Thank you for pointing to this. I hope I will get to run my form inspite of
that.

<form .....>
<!-- not wrapped and separately ordered hidden element -->
<input type="hidden" name="ID" value="5">
<!-- starting the definition list -->
<dl>
<!-- a normaly decorated element -->
<dt><label for="DESCRIPTION">Description</label></dt>
<dd><textarea name="DESCRIPTION" id="DESCRIPTION" rows="5"
cols="50"></textarea></dd>
<!-- to elements in one dd tag with one label -->
<dt><label for="STARTDATETIME_DATEPART" >Start</label></dt>
<dd><input type="text" name="STARTDATETIME_DATEPART">
<input type="text" name="STARTDATETIME_TIMEPART" ></dd>
</dl></form>

thanks

Axel

--
View this message in context: http://www.nabble.com/Zend_Form_Element-will-be-created-twice-tp18838277p18839265.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: