File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Renamae browse button of inputFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Renamae browse button of inputFile" Watch "Renamae browse button of inputFile" New topic

Renamae browse button of inputFile

lee chan

Joined: Jun 14, 2011
Posts: 15

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="#{}" />.

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

Joined: Jun 25, 2001
Posts: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Renamae browse button of inputFile
It's not a secret anymore!