Michal Charemza wrote:
no errors are shown in the form (and no class="error" is shown on any
of the input elements).
Looking at your global_filters.xml, you will need to add the
"field_error_messages" parameter, see attached for an example
<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://agavi.org/agavi/1.0/config">
<configuration>
<filters>
<filter name="FormPopulationFilter" class="AgaviFormPopulationFilter">
<parameter name="methods">
<parameter>write</parameter>
</parameter>
<!-- for all field error messages. errors that yield no match and those that have no corresponding field are inserted using rules defined in "error_messages". errors that belong to more than one field (e.g. date validator) can be handled using "multi_field_error_messages" -->
<parameter name="field_error_messages">
<parameter name="parent::${htmlnsPrefix}label">
<!-- can be any of "before", "after" or "child" (to insert as prev, next sibling or last child) -->
<parameter name="location">after</parameter>
<!-- a container groups all errors for one element -->
<parameter name="container"><![CDATA[<div class="error">${errorMessages}</div>]]></parameter>
<parameter name="markup"><![CDATA[<p class="error">${errorMessage}</p>]]></parameter>
</parameter>
<!-- you could have more rules above, e.g. ${htmlnsprefix}inp...@type="checkbox"]... to have a rule that only applies to checkbox elements. first match is used. -->
</parameter>
</filter>
<!-- <filter name="TidyFilter" class="AgaviTidyFilter">
<parameter name="tidy_options">
<parameter name="output-xhtml">true</parameter>
<parameter name="numeric-entities">true</parameter>
</parameter>
<parameter name="tidy_encoding">utf8</parameter>
</filter> -->
</filters>
</configuration>
</configurations>_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users