This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Selection tag in JSF

 
Palaninathan Arumugam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Palaninathan Arumugam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might depend on what implementation you are using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic