-
Bug
-
Resolution: Fixed
-
Major
-
2.1 Final
-
None
-
Any
I am using 2.1RC3 and I am highly suspicious that the example form does not work. (It does not work either on the online demo from the Magnolia site)
- the action attribute should be :
${pageContext.request.contextPath}${actpage.handle}.html
while at the moment it is:
${actpage.handle}.html
which leads to an unknow page ... (or - there is also a ClassCastException, the following code:
===========
Iterator it=Resource.getActivePage(request).getContentNode("mainColumnParagraphs").getChildren().iterator();
while (it.hasNext()) {
ContentNode node=(ContentNode) it.next();
===========
is casting objects retrieved form the iterator to (ContentNode) while the expected is actually 'info.magnolia.cms.core.Content' ...
Also, I would be for moving the class MailHandler to a proper class in the Magnolia code, and have it log the exception when mailing failed along with successfully logging sent emails ...
Acceptance criteria