Jan 06, 2014, 12:49 PM
[CLOSED] Best practice: Form Textarea / textfield with HTML or XML data using DirectMethod
Hi guys,
I was wondering what's the best way to submit xml or html code from a formfield into the database (through DirectMethod).
At this moment I create a copy of the fieldvalue (encoded) into a Hidden field before submitting the form and use that hidden field as my source:
Martin
I was wondering what's the best way to submit xml or html code from a formfield into the database (through DirectMethod).
At this moment I create a copy of the fieldvalue (encoded) into a Hidden field before submitting the form and use that hidden field as my source:
#{hdnCommentaarEncoded}.setValue(Ext.util.Format.htmlEncode(#{taCommentaar}.getValue()))
Is there a simpler or cleaner way to do this ? An attribute on the object itself would be fine (Encoded="true") :) Martin
Last edited by Daniil; Jan 07, 2014 at 11:00 AM.
Reason: [CLOSED]