• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

File Upload

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to upload the file using jsf component can any body post the code of custom component. Thanking you in advance.


Bhaskar.G.r
9900924608.
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bhaskar,

I am using myFaces with tomahawk.

I use the tomahawk <t:inputFileUpload tag for this.

cheers
Darryl
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need a custom component. Just look around for existing component libraries first. Tomahawk for example has a t:inputFileUpload component, as mentioned before. You can find here an useful article about how to integrate and use it in a Sun JSF Mojarra environment: http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html It is actually relatively simple.
 
reply
    Bookmark Topic Watch Topic
  • New Topic