Hybrid View

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    mbatsis is on a distinguished road

      0  

    Default Multipart FormPanel unusable with files without accept-charset?

    Multipart FormPanel unusable with files without accept-charset?


    We are having a showstopper encoding issue with FormPanel when used to upload files. The HTML form is set to "multipart/form-data" but the API does not allow to change that to "multipart/form-data; charset=utf-8" or set the HTML form's accept-charset attribute to the desired charset.

    A subclass cannot help since the FormPanel's form member is private and no getters are provided. I tried JSNI but it did not seem to work.

    Am I missing something here or should a

    Code:
    public El getForm(){
       return this.form;
    }
    getter be added to the FormPanel class?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Almost - check out http://code.google.com/webtoolkit/do...methods-fields for more information on how to do this.

    Untested, but probably should look like
    Code:
    public El getForm(){
       return this.@com.extjs.gxt.ui.client.widget.form.FormPanel::form;
    }

Thread Participants: 1