[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:
Code:
#{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