File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rich file upload browse button text displaying differently in Chrome browser

 
Srinivas Bonala
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,


In our application we are using <rich:fileUpload> component to uploading files. As of now its working properly.

We are using rich faces 4.1.0.Final version.

But the issue was, browse button text is displaying as Choose File in the Chrome browser, but in remaining browsers it was displaying as Browse.
And the view of the component is also displaying differently in the Chrome browser.

I tried to change the label using addLabel and addControlLabel attributes. But the issue was still reproducing.

Why this is happening. But i want to display a common text for the button across all the browsers. Am i missing anything?

Can anyone help me and have any idea about this issue?

thanks in advance.
 
Srinivas Bonala
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please anyone give me a reason for this.?
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide the XHTML please?
 
Srinivas Bonala
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is the code that we are used to file upload.




anything wrong in this code...! please let me know...
 
Srinivas Bonala
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody knows, Why this is happening in Chrome browser?
Am struggling with this issue. I googled for the solutions, but i didn't get the solutions.
Please replay me anyone. your help its really appreciated.
 
Srinivas Bonala
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi James Boswell,

I have posted the xhtml code as per your reply. Can you look at the code once and let me know if i missed any thing. Please reply me.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two seconds of Googling turned up this thread, which confirmed my belief that the label on that button cannot be changed on any browser, for security reasons.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic