How i can localize the FileUpload item in GWT

59 views
Skip to first unread message

Parasuraman

unread,
Nov 24, 2009, 8:03:30 AM11/24/09
to Google Web Toolkit
Hi All,

I want to change the browse.. button option available in the
FileUpload of GWT. Browse button option should be localized in the
FileUpload.. How do i localized??

Regards
Parasuraman

Thomas Broyer

unread,
Nov 24, 2009, 9:45:41 AM11/24/09
to Google Web Toolkit


On Nov 24, 2:03 pm, Parasuraman <parasuramankumaras...@gmail.com>
wrote:
> Hi All,
>
> I want to change the browse.. button option available in the
> FileUpload of GWT. Browse button option should be localized in the
> FileUpload.. How do i localized??

The same as you localize an <input type=file> in HTML; i.e. you just
can't (this is seen as a security feature: you can't mislead the user;
there's also the argument that not all browsers render an <input
type=file> as a textbox or label –to display the selected file's name
and/or path– and a "browse" button, a browser could actually –per
spec– render it the way it wants)

Eric

unread,
Nov 24, 2009, 12:56:02 PM11/24/09
to Google Web Toolkit
That's right. For example, Apple Safari provides only a "Choose File"
button. I have seen bizarre ways of overlapping <div>s and using
z-order to fake styling of file upload widgets, but you'll never get
GWT
do it. Probably, you should accept the widget as it is, and style the
page around it.
Reply all
Reply to author
Forward
0 new messages