nxu
Tag inputFile


Util tag to perform a complex file upload dealing with edition and deletion.

It only deals with NXCoreAPI blobs.

This tag uses a component that will handle its rendering using other existing components. It will present a radio menu with existing choices: upload a file, keep it (eventually change its filename), delete it, or do nothing. Choices will be presented automatically given values and tag attributes (is there a blob set, is there a filename, is the blob required, etc...).

It uses the nxu:outputFile related component rendering for the "keep" option and the tomahwak t:inputFileUpload tag for the "upload" option.

It is possible to use a facet named "download" to override the default "keep" option rendering (e.g the document download presentation).


Example:
<nxu:inputFile value="#{document.file.content" filename="#{document.file.filename}" editFilename="true" />


Tag Information
Tag ClassNone
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsefalseorg.nuxeo.ecm.core.api.BlobValue binding representing the blob
filenamefalsefalsejava.lang.StringValue binding representing the blob filename. If set, will be set using the newly uploaded blob filename and will be presented as the download link value unless the downloadLabel attribute is provided.
idfalsefalsejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
renderedfalsefalsejava.lang.StringFlag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
requiredfalsefalsejava.lang.StringFlag indicating that the user is required to provide a submitted value for the blob.
editFilenamefalsefalsejava.lang.StringFlag indicating whether or not this component should present an input area to set the blob filename. It is only presented on the "keep" option.
iconRenderedfalsefalsejava.lang.StringBoolean flag indicating whether or not the file icon should be rendered. Defaults to true.
downloadLabelfalsefalsejava.lang.StringValue binding that will be used as the download link value, and will attempt to be translated.
editFilenameLabelfalsefalsejava.lang.StringValue binding that will be rendered before the edit file name input text, and will attempt to be translated.
onchangefalsefalsejava.lang.StringJavascript onchange event handler, set on the radio buttons
onclickfalsefalsejava.lang.StringJavascript onclick event handler, set on the radio button
onselectfalsefalsejava.lang.StringJavascript onselect event handler, set on the radio button

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.