14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.10.1. Combining File Display Options<br />

If the file you uploaded was an audio file (this is possible with the ORDDOC and<br />

ORDAUDIO types), you will get something like this:<br />

Suggestion: By default there are limits on the size of the file that can be<br />

uploaded. If they are exceeded, you get a Java exception:<br />

java.io.EOFException: Per-request disk space limits exceeded.<br />

If you want to change the file size limitations, have a look at the Development<br />

<strong>Guide</strong>lines for <strong>Oracle</strong> ADF Faces Applications, chapter File Upload, section<br />

Configuration, at<br />

http://www.oracle.com/technology/products/jdev/htdocs/partners/addins<br />

/exchange/jsf/doc/devguide/fileupload.html - Configuration.<br />

For generating both file upload and file download (or image or audio player) for the<br />

same database column, create an extra item as follows:<br />

1. Open the Application Definition Editor.<br />

2. Add an extra item to the group.<br />

3. Copy all properties of the original file item (Photo).<br />

4. Change the Name of the new item (for example to ShowPhoto), and change the<br />

Display Type to fileDownload or image.<br />

5. Consider to change the prompt of one or both of the Photo items<br />

If you don’t change the prompts, you will get something like this:<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Generating User Interface Widgets 6- 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!