aspose file tools*
The moose likes JSF and the fly likes rich file upload browse button text displaying differently in Chrome browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "rich file upload browse button text displaying differently in Chrome browser" Watch "rich file upload browse button text displaying differently in Chrome browser" New topic
Author

rich file upload browse button text displaying differently in Chrome browser

Srinivas Bonala
Greenhorn

Joined: Feb 14, 2012
Posts: 15
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

Joined: Feb 14, 2012
Posts: 15
Can you please anyone give me a reason for this.?
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1031
    
    5

Can you provide the XHTML please?
Srinivas Bonala
Greenhorn

Joined: Feb 14, 2012
Posts: 15
The following is the code that we are used to file upload.




anything wrong in this code...! please let me know...
Srinivas Bonala
Greenhorn

Joined: Feb 14, 2012
Posts: 15
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

Joined: Feb 14, 2012
Posts: 15
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rich file upload browse button text displaying differently in Chrome browser