Hello,

> as I just encountered this: is it desirable for anyone that a submit element 
> gets actually populated with the requested data?

To demonstrate what I think is unexpected behaviour, I've prepared a test right 
here, which fails, though:

https://gist.github.com/localheinz/ded9b52f8f6b381ddf4d

Can you take a look?

I believe it is undesirable behaviour to be able to fiddle with the label of a 
submit element.

I've encountered this issue when in one view, a button had to be rendered using 
a <button> tag (Zend\Form\Element\Button) because an icon was needed before the 
actual content, and in a different view an <input> tag is used for rendering 
the button (Zend\Form\Element\Submit). When submitting the form with the 
<button> in it, the label of the value of the submit element with the <input> 
tag is empty, since the <button> tag doesn't have any (but the same name).

Anyway, I don't think anyone would want to set the value of a submit element 
with posted data, no?


Best regards,

Andreas
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to