html.form.field.BaseEditableField | +-- html.form.field.FileField
A file field.
In view mode, this field displays a filename, possibily clickable.
.In edit mode, it is an upload field.
Attributes | ||
optional
int
|
Cols |
Used in edit mode (upload). Number of text columns (in chars). Default: 20. |
optional
boolean
|
Mandatory |
Used in edit mode (upload). Defines whether this field is mandatory. Default: true. |
optional
String
|
FileBeanName |
The name of the file upload contextual bean. This bean may be used in the 'OnUpload' expression to retrieve the input file information and process the upload action. It implements the interface org.ow2.opensuit.core.impl.multiparts.IFileUploadPart. Default: $file. |
Named Children Elements | ||
mandatory
binding.Expression |
Label |
The displayed field label. |
optional
binding.Expression |
Tip |
A tip (information) associated to the field. |
optional
binding.Expression |
Visible |
Determines whether this field is visible. Default: true. |
optional
binding.Expression |
Editable |
Determines whether this field is editable. Default: true. |
0 - unbounded
html.menu.IMenuItem[] |
FieldButtons |
Buttons displayed right next to the form field. |
optional
binding.Expression |
FileName |
Expression to get and/or set the filename (String). |
optional
action.IAction |
OnClick |
Used in view mode, to turn the filename into an hyperlink. |
optional
binding.Expression |
OnUpload |
Expression that processes the file upload (in edition mode). The file data (information and stream) can be retrieve through file contextual bean, of type org.ow2.opensuit.core.impl.multiparts.IFileUploadPart. Supported contextual beans: $file |