[
https://issues.apache.org/jira/browse/OFBIZ-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497383
]
K Sharad Bhushan commented on OFBIZ-1002:
-----------------------------------------
Hi,
Thank's for the response.The patch only solves the first problem i
described.But the second one it does not.
FlexibleStringExpander.java was parsing the freemarker objects where the second
problems occur's.
Regards
Sharad
> Content Updation - with textarea,freemarker objects problem ..
> --------------------------------------------------------------
>
> Key: OFBIZ-1002
> URL: https://issues.apache.org/jira/browse/OFBIZ-1002
> Project: OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Components: content
> Reporter: K Sharad Bhushan
> Priority: Minor
> Attachments: formwidget.patch
>
>
> Hi,
> We are using ofbiz for developing our ecommerce websites.We found a problem
> with Content creation part.
> Let me tell the problem.The problem is related to backend Content and
> DataResource creation part.Not with view.
> Posting it here so that the changes are used(in case) as we found it to be
> genric to all.
> 1.Content has a data resource where we can write our text. if we include
> <textarea></textarea> within the text area provided under text tab of
> DataResource and later when we try to update the content it was not showing
> up as we put the content. <textarea></textarea> the end tag of text area was
> closing the start tag and the content that follows after the textarea was
> getting rendered as html instead of going into the textarea .
> 2.If we try to inlude freemarker template object(i mean ${catalog} ,
> something like this) in textarea provided then because of the FORMS.XML(i
> mean any forms.xml) parser code it was trying to interpret freemarker objects
> as context ojbects and was not showing them up when we try to update or clik
> on text in DataResource tab.
> So we Just changed the form i.e
> <include-form name="EditElectronicText"
> location="component://content/webapp/content/data/DataResourceForms.xml"/> in
> DataResourceScreens.xml to a ftl i.e
> <platform-specific><html><html-template
> location="component://content/webapp/content/data/EditDataResourceTexts.ftl"/></html></platform-specific>
> the ftl now look like this
> <#assign
> eText=delegator.findByPrimaryKey("ElectronicText",Static["org.ofbiz.base.util.UtilMisc"].toMap("dataResourceId",parameters.dataResourceId))>
> <form method="post" action="/content/control/updateElectronicText"
> name="EditElectronicText" style="margin: 0;">
> <!--auto-fields-service service-name="updateElectronicText"/-->
> <input type="hidden" name="dataResourceId" class="buttontext"
> value="${parameters.dataResourceId}"/>
> <table border="0" cellpadding="2" cellspacing="0">
> <tr>
> <td width="20%" align="right">
> </td>
> <td> </td>
> <td width="80%" align="left">
> <span
> class="buttontext">${parameters.dataResourceId}</span>
> </td>
> </tr>
> <tr>
> <td width="20%" align="right">
> <span class="tableheadtext">Text</span>
> </td>
> <td> </td>
> <td width="80%" align="left">
> <textarea name="textData" cols="120" rows="24">
> ${eText.textData?html}
> </textarea>
> </td>
> </tr>
> <tr>
> <td width="20%" align="right"> </td>
> <td> </td>
> <td width="80%" align="left" colspan="4">
> <input type="submit" class="smallSubmit"
> name="submitButton" value="${uiLabelMap.CommonUpdate}" onClick="javascript:
> return submitFormDisableButton(this)" />
> </td>
> </tr>
> </table>
> </form>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.