Util tag to perform a complex file upload dealing with edition and deletion.
It only deals with Nuxeo Core 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.content.filename}" editFilename="true" />
Info | Value |
---|---|
Component Type | org.nuxeo.ecm.platform.ui.web.component.file.UIInputFile |
Handler Class | com.sun.faces.facelets.tag.jsf.html.HtmlComponentHandler |
Renderer Type | None |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
value | false | javax.el.ValueExpression
(must evaluate to org.nuxeo.ecm.core.api.Blob )
| Value binding representing the blob |
filename | false | javax.el.ValueExpression
(must evaluate to 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 | javax.el.ValueExpression
(must evaluate to 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 | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. |
required | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| Flag indicating that the user is required to provide a submitted value for the blob. |
editFilename | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| 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 | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| Boolean flag indicating whether or not the file icon should be rendered. Defaults to true. |
downloadLabel | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Value binding that will be used as the download link value, and will attempt to be translated. |
editFilenameLabel | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Value binding that will be rendered before the edit file name input text, and will attempt to be translated. |
onchange |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript onchange event handler, set on the radio buttons |
onclick |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript onclick event handler, set on the radio button |
onselect |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript onselect event handler, set on the radio button |
Output generated by Vdldoc View Declaration Language Documentation Generator.