Hello Craig,
if you want to repopulate your form in the ErrorView, with the already
posted data, you can do this:
// repopulate the form
$this->getContext()->getRequest()->setAttribute('populate', true,
'org.agavi.filter.FormPopulationFilter');
If your aim is to pre fill the Form you can do those:
$data = array ( "<name_of_input_field>" => "<value>");
$this->getContext()->getRequest()->setAttribute('populate', $data,
'org.agavi.filter.FormPopulationFilter');
OR
$data = new AgaviRequestDataHolder();
$data->setParameter('<name_of_input_field>', '<value>');
$this->getContext()->getRequest()->setAttribute('populate', $data,
'org.agavi.filter.FormPopulationFilter');
Hope I could help.
Cheers
Benjamin
Am 11.12.2008 um 12:06 schrieb Craig Fairhurst:
Hi
Looking for a suitable Agavi method of generating and populating
forms.
Thanks
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users