on 2019 Feb 13 1:06 PM
We have a component.jsp that includes following code snippet:
<form:form action="thankyou" method="post" class="col-xs-12" commandName="lotteryData">
<formElement:formRadioButtons idKey="thankyouform.gender.title"
labelKey="survey.thankyouform.gender.title" selectCSSClass="form-control"
path="gender" mandatory="false" skipBlank="false"
skipBlankMessageKey="form.select.empty" items="${titles}"/>
When opening that component in SmartEdit an exception is thrown
javax.servlet.jsp.JspTagException: Neither BindingResult nor plain target object for bean name 'lotteryData' available as request attribute
also
WARN [hybrisHTTP30] [DefaultCMSComponentRendererRegistry] Error processing component tag. currentComponent [SurveyThankYouFormComponentModel (8796093065095@5)] exception: An exception occurred processing JSP page [/WEB-INF/views/responsive/cms/surveythankyouformcomponent.jsp] at line [16]
13: ${introductionText}
14: </div>
15: <form:form action="thankyou" method="post" class="col-xs-12" commandName="lotteryData">
16: <formElement:formRadioButtons idKey="thankyouform.gender.title"
17: labelKey="survey.thankyouform.gender.title" selectCSSClass="form-control"
18: path="gender" mandatory="false" skipBlank="false"
19: skipBlankMessageKey="form.select.empty" items="${titles}"/>
shows up.
When I comment out all parts where this lotteryData is used, the page loads in SmartEdit. I also found out, that the custom controller for this page is not used. Can we tell SmartEdit somehow what controller to use, so the bindings are there? Or how can we make this component work with SmartEdit?
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.