[email protected] wrote:
> Hi all
> 
> I have a strange problem. I have a search form which is submitting
> data via GET. When submitted with invalid data, the validator error
> messages don't appear. However, when i change the method to POST and
> the Action's executeRead to executeWrite, the messages show up. Can
> someone advise why this is happening and how to correct it?
> 

Error messages are injected by the FormPopulationFilter (commonly known 
as FPF) but by default FPF is ran only on write requests. So you need to 
tell FPF to run even if it is a read request. Like this (in the error view):

$this->getContext()->getRequest()
   ->setAttribute('populate', true, 
'org.agavi.filter.FormPopulationFilter');

You can also change FPF's settings in global_filters.xml but usually you 
don't want to run it on every read request.


-veikko

-- 
Veikko Mäkinen
[email protected]
044 5910 413
http://blog.veikko.fi


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to