Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Renamae browse button of inputFile

 
lee chan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a button named "Select" when I click on it, should browse a file in from my local system.

I need to use icefaces. I used like <ice:inputFile id="select" width="600" value="#{abcDataBean.select}" />.

But its giving the output with an inbuilt textbox + browse button.

But, I want functionality of browse button when I click on "Select" button. I don't want browse button to be shown on the screen.

Please help me out as soon as possible.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For security reasons, no web server is ever allowed to browse a client computer's filesystem. Nor, for that matter, is a client computer allowed to browse the server's filesystem, except to the extent that the web application permits.

The file upload function that the inputFile tag supports instructs the client's web browser to open a local dialog box in order to select a file for uploading. The actual file data transfer is done by the browser using special form properties (MIME encoding). The server knows how to handle this data format (if it was properly configured), but the client is completely and totally responsible for everything else.

Anything beyond that would require client-side signed code in a special JavaScript or Java Applet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic