[CLOSED] Best practice: Form Textarea / textfield with HTML or XML data using DirectMethod

  1. #1

    [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:

         #{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 12:00 PM. Reason: [CLOSED]
  2. #2
    Hi Martin,

    You could send the values via ExtraParams instead of using additional Hidden fields. Although, it doesn't look much simpler and cleaner.

    Anyway, I don't see any built-in possibility to do it. Your solution is quite good.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi Martin,

    You could send the values via ExtraParams instead of using additional Hidden fields. Although, it doesn't look much simpler and cleaner.

    Anyway, I don't see any built-in possibility to do it. Your solution is quite good.
    Okay Daniil... I will keep it this way. Thanks for the info.

    Martin

Similar Threads

  1. Replies: 2
    Last Post: Oct 24, 2012, 3:27 PM
  2. How to content <%=Html.TextArea()%>
    By qch2006qch in forum 1.x Help
    Replies: 0
    Last Post: Jan 19, 2012, 3:54 AM
  3. [CLOSED] TextArea.Html missing
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2011, 9:11 AM
  4. Replies: 1
    Last Post: May 28, 2010, 2:13 PM
  5. html decode textarea
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jan 22, 2010, 4:54 AM

Posting Permissions