O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File management

Working with files is another common scenario for web developers. Many web applications and content management systems enable users to upload files from their desktop to a remote server. HTML includes support for file transfer through the use of a form tag with an enctype attribute set to multipart/form-data. By properly setting the encoding of our HTML forms, this enables the browser to send file data to a web server. The JSF HtmlForm component also supports this behavior, and when combined with the Tomahawk HtmlInputFileUpload component, we can add file management capabilities to our web application fairly easily.

To enable file upload with the Tomahawk library, we need to declare the MyFaces Extension Filter in our web application's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required