wood burning stoves 2.0*
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


JavaRanch » Java Forums » Java » JSF
Bookmark "Renamae browse button of inputFile" Watch "Renamae browse button of inputFile" New topic
Author

Renamae browse button of inputFile

lee chan
Greenhorn

Joined: Jun 14, 2011
Posts: 15
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

Joined: Jun 25, 2001
Posts: 16098
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Renamae browse button of inputFile