This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 15292
    
    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: 15292
    
    6

It might depend on what implementation you are using.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Selection tag in JSF
 
Similar Threads
How can I integrate htmlDesigner with Eclipse.
File select with restictions
How to show a panel or any other GUI object in OpenFaces 3.00 Datatable upon row selection?
File upload filter for displaying files
restricting the length of a display string in a page