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 Class | None |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
value | false | false | org.nuxeo.ecm.core.api.Blob | Value binding representing the blob |
filename | false | false | java.lang.String | Value 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. |
id | false | false | java.lang.String | The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
rendered | false | false | java.lang.String | Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. |
required | false | false | java.lang.String | Flag indicating that the user is required to provide a submitted value for the blob. |
editFilename | false | false | java.lang.String | Flag indicating whether or not this component should present an input area to set the blob filename. It is only presented on the "keep" option. |
iconRendered | false | false | java.lang.String | Boolean flag indicating whether or not the file icon should be rendered. Defaults to true. |
downloadLabel | false | false | java.lang.String | Value binding that will be used as the download link value, and will attempt to be translated. |
editFilenameLabel | false | false | java.lang.String | Value binding that will be rendered before the edit file name input text, and will attempt to be translated. |
onchange | false | false | java.lang.String | Javascript onchange event handler, set on the radio buttons |
onclick | false | false | java.lang.String | Javascript onclick event handler, set on the radio button |
onselect | false | false | java.lang.String | Javascript 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.