CarWise
Jan 06, 2014, 1:49 PM
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:
#{hdnCommentaarEncoded}.setValue(Ext.util.Format.h tmlEncode(#{taCommentaar}.getValue()))
Is there a simpler or cleaner way to do this ? An attribute on the object itself would be fine (Encoded="true") :)
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.h tmlEncode(#{taCommentaar}.getValue()))
Is there a simpler or cleaner way to do this ? An attribute on the object itself would be fine (Encoded="true") :)
Martin