[TYPO3-mvc] reconstruction of form field values
Claus Fassing
claus at fassing.eu
Fri Sep 24 20:51:51 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
as I could read, all field values of a form will be reconstructed by
extbase after a form error. This work fine for primitive attributes like
string, but attributes of object type remain empty.
class Tx_Myext_Domain_Model_Foo extends
Tx_Extbase_DomainObject_AbstractEntity {
/**
* title
* @var string
*/
protected $title;
/**
* foobar
* @cascade remove
* @var Tx_Myext_Domain_Model_Foobar
*/
protected $foobar;
$this->view->assign('foo', $foo);
<f:form method="post" action="create" name="foo" object={foo}">
<f:form.textbox property="title" />
<f:form.textbox property="foobar.anyitem" />
Anything wrote in title field get back, but not foobar.anyitem
Saving work fine.
What am I doing wrong ?
Regards Claus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJMnPNHAAoJELsIv+audObfOMgH/1OyILJiGGUUaJGb+F4PSMV9
nnBJ0+NarNo7OBNeD9wW09AKKkYsxaiQDNGKSRJ6FG66+NYTXovFbEetaFr74REi
oOgDPITxECTiOfZGqa/KwxDUfHUoZ9gnCT8MbpRsy1zywdLKByOtS2oB+tE9fdGD
nLGmsMloUBpQOrFGOgWEmAxyG60krdk8B0Runsy1sNs20eF0XZ3fWDXzx/ph1JLR
ea+z8HqQ3EiL2c5bxtzdrhpcizUlmtVIXqvnt6rIVxL86akPSeJOEaCSsIyhishz
R4L3abdVUaFQ9987WSof9QN7dIivYV3gB4EQVwXy4gpX+NFiO95koFua/vwX+B4=
=n8eF
-----END PGP SIGNATURE-----
More information about the TYPO3-project-typo3v4mvc
mailing list