Details
-
Task
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
easy-forms-2.12.14
-
None
-
None
Description
We are using EasyForms in our Hippo project to easily create a contact form similar to the "Contact us" page in Hippo GoGreen demo site. Although we configured everything according to the Easy Forms HST installation page (http://easy-forms.forge.onehippo.org/install_hst.html), the form wasn't displayed correctly (all fields were missing).
When debugging the HST source, we discovered that we missed to append the site servlet init param "hst-beans-annotated-classes" in the site web.xml with the value of the hippo forge plugins namespace:
<context-param>
<param-name>hst-beans-annotated-classes</param-name>
<param-value>...some other namespace..., classpath*:org/onehippo/forge/*/.class
</param-value>
</context-param>
If this one is missing, the FormBean type isn't resolved for ef:form nodes and then HST uses the fallback value of HippoDocument, which obviously doesn't work with the EasyForms component.
It would be nice if you could add a note to the EasyForms HST install page (http://easy-forms.forge.onehippo.org/install_hst.html) that the "hst-beans-annotated-classes" servlet init param should contain the Hippo Forge namespace mentioned above so that the EasyForms component works as expected (and possibly other Hippo Forge plugins too that rely on class annotation scanning). Thanks.