*
The moose likes JSF and the fly likes File Selection tag in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "File Selection tag in JSF" Watch "File Selection tag in JSF" New topic
Author

File Selection tag in JSF

Palaninathan Arumugam
Greenhorn

Joined: Apr 25, 2005
Posts: 4
Hi

I am looking for a JSF tag to choose the file from the system.
In HTML we have <input type="file"> tag which will show the file selection with browse button , whether the user can select the file.
I am wondering whether is there any tag similar to that in JSF.If there is
no standard tag , how can I do that ?
Please help me.

Regards
palani
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

It looks like Sun left that out of it's implementation. MyFaces provides a component h:inputFileUpload. I am sure most other implementations do as well.


GenRocket - Experts at Building Test Data
Palaninathan Arumugam
Greenhorn

Joined: Apr 25, 2005
Posts: 4
Thanks for the reply.
It would be helpful for me if you can share a example for the same.
I am new to JSF.
Thanks again
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

It might depend on what implementation you are using.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Selection tag in JSF
 
Similar Threads
File upload filter for displaying files
How can I integrate htmlDesigner with Eclipse.
How to show a panel or any other GUI object in OpenFaces 3.00 Datatable upon row selection?
restricting the length of a display string in a page
File select with restictions