#303: Add ability to have validation field error messages inserted into the
document by FormPopulationFilter
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: enhancement | Status: assigned
Priority: normal | Milestone: 0.11
Component: filter | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by david):
(In [2101]) Refactored FPF error insertion a bit, now uses
${errorMessage}?\194?\160instead of %s as placeholder for the message.
Each parameter with xpath expression as key can now either be just the
message markup, or have child parameters "markup", "location" (one of
"before", "after", "replace" and "child", default is "after") and
"container", which can have markup for a container to wrap all messages.
It is inserted at the given (or default) location instead of the
indidivual elements, and can have a ${errorMessages} placeholder for all
error messages combined into a string. As with the main or "markup"
parameter, a callback is possible, which in case of the container receives
an array of error messages as the second arg instead of just the message
(erroneous element node is the first one), in case you'd like to do
something more advanced. Refs #303.
--
Ticket URL: <http://trac.agavi.org/ticket/303#comment:11>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets