You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2012/05/19 09:00:12 UTC

[jira] [Closed] (OFBIZ-2959) Can not add "Question Options" within the Survey section of the Content application.

     [ https://issues.apache.org/jira/browse/OFBIZ-2959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-2959.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 12.04
                   SVN trunk
                   Release Branch 11.04
                   Release Branch 10.04
         Assignee: Jacques Le Roux

Thanks Harsha and Sumit,

Harsha your patch is in
trunk r1340357
R12.04 r1340358
R11.04 r1340359
R10.04 r1340360
R09.04 simle GenericDelegator vs Delegator conflicts, I gave up

Great collaboration :)
                
> Can not add "Question Options" within the Survey section of the Content application.
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2959
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2959
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Brant Levinson
>            Assignee: Jacques Le Roux
>             Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04
>
>         Attachments: OFBIZ-2959.patch, screen-error.GIF, screen-solution.GIF
>
>
> When editing a question in Content --> Survey which has a "Selected Option" Question Type, the page does not allow for the creation of a Question Option. 
> Live URL: https://demo.ofbiz.org/content/control/EditSurveyQuestions?surveyId=1002&surveyQuestionId=1033#edit
> A stack trace is shown:
> Method public java.io.StringWriter org.ofbiz.widget.html.HtmlFormWrapper.renderFormString() throws java.io.IOException threw an exception when invoked on org.ofbiz.widget.html.HtmlFormWrapper@1f304b8 with arguments of types [] The problematic instruction: ---------- ==> ${createSurveyOptionWrapper.renderFormString()} [on line 306, column 5 in component://content/webapp/content/survey/EditSurveyQuestions.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.io.StringWriter org.ofbiz.widget.html.HtmlFormWrapper.renderFormString() throws java.io.IOException threw an exception when invoked on org.ofbiz.widget.html.HtmlFormWrapper@1f304b8 with arguments of types [] at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134) at fr
> ...
> Caused by: java.lang.NullPointerException at org.ofbiz.widget.form.ModelFormField$EntityOptions.addOptionValues(ModelFormField.java:1722) at org.ofbiz.widget.form.ModelFormField$FieldInfoWithOptions.getAllOptionValues(ModelFormField.java:1526) at org.ofbiz.widget.html.HtmlFormRenderer.renderDropDownField(HtmlFormRenderer.java:697

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira