AnsweredAssumed Answered

New field for the contact request form

Question asked by apolci on Nov 17, 2011
Latest reply on Nov 18, 2011 by apolci
I'm trying to add a field (Last Name) to the contact request form.

I've successfully modified the model and the form, and I modified the UgcService to add a new argument to the postFeedback method, but I get this error in the log while posting the contact request:

org.mozilla.javascript.EvaluatorException: Can't find method org.alfresco.wcm.client.impl.UgcServiceCmisImpl.postFeedback(java.lang.String,string,string,string,string,string,string,string,number). (/WEB-INF/webscripts/contact/
   at org.mozilla.javascript.DefaultErrorReporter.runtimeError(
   at org.mozilla.javascript.Context.reportRuntimeError(
   at org.mozilla.javascript.Context.reportRuntimeError(
   at org.mozilla.javascript.Context.reportRuntimeError1(

This is the new metod I've added to the UgcServiceCmisImpl (the old one now delegate to this one):

   public String postFeedback(String assetId, String visitorName,
         String visitorLastName, String visitorEmailAddress,
         String visitorWebsite, String type, String subject,
         String comment, int rating) {
        VisitorFeedback feedback = buildFeedbackObject(assetId, visitorName, visitorLastName, visitorEmailAddress,
                visitorWebsite, type, subject, comment, false, rating);
        return postFeedback(feedback);

This is the section of that is causing the error:

      webSite.ugcService.postFeedback(assetId, name, lastName, email, website, type, subject, comment, 0);

Anyone has some suggestion of what is wrong here? Did I missed something else that need to be modified?