Author: rfelden
Date: Wed Oct 17 11:28:02 2007
New Revision: 815

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D815&repname=
=3Dcorporate_portal_templates_v2
Log:
Form generator :
- bug concerning unset CC recipients fixed (mail can now be sent)
- declaration correction

TODO : new implementation (each container is included in a different POST, =
so every field before any unfilled mandatory field will always be posted, r=
egardless of any check -> WRONG)

Modified:
    branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/definitions.inc
    branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/process_post.inc

Modified: branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/definitions.i=
nc
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/src/jsp/form_generator/definitions.inc&rev=3D815&repname=3Dcorporat=
e_portal_templates_v2
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/definitions.inc (or=
iginal)
+++ branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/definitions.inc Wed=
 Oct 17 11:28:02 2007
@@ -60,8 +60,15 @@
                                        titleKey=3D"form.value" 
bundleKey=3D"<%=3DresBundleID%>"/>
                                        <content:declareField name=3D"id" 
title=3D"Id" type=3D"SharedS=
mallText" readOnly=3D"true"
                                        titleKey=3D"form.id" 
bundleKey=3D"<%=3DresBundleID%>"/>    =

+                       </content:declareContainer>
+        </content:declareContainerList>
+        <content:declareContainerList name=3D"fileValues" aliasNames=3D"fi=
leValues"
+                       title=3D"Values" 
containerListType=3D"<%=3DJahiaContainerDefinit=
ion.SINGLE_TYPE%>">
+                       <content:declareContainer>
                                        <content:declareField 
name=3D"fileValue" title=3D"Value" type=
=3D"File"
                                        titleKey=3D"form.value" 
bundleKey=3D"<%=3DresBundleID%>"/>
+                                       <content:declareField name=3D"id" 
title=3D"Id" type=3D"SharedS=
mallText" readOnly=3D"true"
+                                       titleKey=3D"form.id" 
bundleKey=3D"<%=3DresBundleID%>"/>    =

                        </content:declareContainer>
         </content:declareContainerList>
     </content:declareContainer>

Modified: branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/process_post.=
inc
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/src/jsp/form_generator/process_post.inc&rev=3D815&repname=3Dcorpora=
te_portal_templates_v2
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/process_post.inc (o=
riginal)
+++ branches/JAHIA-5-0-SP-BRANCH/src/jsp/form_generator/process_post.inc We=
d Oct 17 11:28:02 2007
@@ -166,6 +166,7 @@
             sender =3D JahiaTools.html2text(sender);
             recipients =3D JahiaTools.html2text(recipients);
             recipientsCC =3D JahiaTools.html2text(recipientsCC);
+            if (recipientsCC.equals("")) recipientsCC =3D null ; // avoid =
exception if CC is an empty string
             subject =3D JahiaTools.html2text(subject);
             String body =3D JahiaTools.html2text(mailBody.toString());
             org.jahia.services.mail.MailService mailService =3D

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to