This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

rich file upload browse button text displaying differently in Chrome browser

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please anyone give me a reason for this.?
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you provide the XHTML please?
 
Srinivas Bonala
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic