1 Reply Latest reply on Feb 26, 2008 12:11 AM by ajohnson1200

    macroFieldErrors not found ?

      Hi,

       

        I re factored the create-profile.ftl page into two by removing following code and adding it to a new ftl file

       

         

        <#if (jiveContext.registrationManager.termsEnabled)>                      <tr>                         <td> </td>                         <td>                             <div>                                 <IFRAME src="${jiveContext.registrationManager.termsURL}"                                     frameborder="0" marginwidth="0" marginheight="0" width="600" height="200"                                     onfocus="this.select();" id="val02">                                     <A HREF="${jiveContext.registrationManager.termsURL}">                                         <@ww.text name="reg.terms_and_conditions.text" />                                     </A>                                 </IFRAME>                             </div>                              <input type="checkbox" name="agree" value="true" id="cb02" <@ww.if test="agree == true">checked="checked"</@ww.if>>                             <#-- Agree -->                             <label for="cb02"><@ww.text name="reg.i_agree_to_t_n_c.checkbox" /></label>                              <@macroFieldErrors name="agree"/>                          </td>                     </tr>                  </#if>              

       

      when i run the plugin im getting the  macroFieldErrors not found error. what is happening here?

       

      here is the error trace when i got the exception

       

      Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: on line 24, column 29 in plugins/userplugin/resources/TermsAndConditions.ftl macroFieldErrors not found.      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)      at freemarker.core.Environment.visit(Environment.java:196)      at freemarker.core.MixedContent.accept(MixedContent.java:92)      at freemarker.core.Environment.visit(Environment.java:196)      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)      at freemarker.core.Environment.visit(Environment.java:196)      at freemarker.core.MixedContent.accept(MixedContent.java:92)      at freemarker.core.Environment.visit(Environment.java:196)      at freemarker.core.Environment.process(Environment.java:176)      at freemarker.template.Template.process(Template.java:232)      at com.opensymphony.webwork.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:153)      at com.jivesoftware.community.web.webwork.FreemarkerResult.doExecute(FreemarkerResult.java:134)      at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143)      at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:313)      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:208)      at com.jivesoftware.community.web.webwork.JiveSecurityInterceptor.intercept(JiveSecurityInterceptor.java:32)      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)      at com.jivesoftware.community.web.webwork.FlashInterceptor.intercept(FlashInterceptor.java:40)      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)      at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:175)      at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)      at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)

       

      any possible help on this?

       

      Thank you,

      bala.