You can add it to an HTMLPanel.

Something like this: 

<g:HTMLPanel>
 <div>
    <input type="file" ui:field="file"></input>
 </div>
</g:HTMPanel>



On Saturday, August 1, 2015 at 7:29:34 PM UTC+2, Ali Akhtar wrote:
>
> Is there a way to use input element from a ui binder file, or add it to a 
> panel?
> On Aug 1, 2015 10:22 PM, "Jens" <[email protected] <javascript:>> 
> wrote:
>
>>
>> Thank you. By the way, how can you get an elemental.html.File or FileList 
>>> object from a gwt FileUpload widget or an <input type=file> widget? I.e if 
>>> the user selects a file to upload, how can I handle it using the Elemental 
>>> File api?
>>>
>>
>>  You need to access the "files" property of the input element. The 
>> InputElement of elemental has a getFiles() method for it. 
>>
>> -- J.
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/kpEZbSNO5zI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to