<!ATTLIST FILE id ID #REQUIRED attachmentDirectory CDATA "files" attachmentHandler CDATA #IMPLIED> |
Attribute | Mand. | Description | Default |
id | yes | This is the identifier of this field. | |
attachmentDirectory | no | This attribute specifies the directory where files are stored on server. | files |
attachmentHandler | no | This attribute specifies a class to manage file submission in forms. When this parameter is set, the form does not send only the file name, but also the content of the file and the specified class stores it on server side. (thin client only implementation) Default value is null, which means that this feature is deactivated. Possible values are 'default for generic file encoder, which is equivalent to leon.view.web.LyFileAttachmentHandler, or a specific implementation. |
<!ELEMENT FILE (%FIELD_BEGIN;, NROWS?, NCOLS?, %FIELD_END;)> |
Element | Mand. | Mult. | Description |
FIELD_BEGIN |
yes | no | Begin of a field description. |
NROWS | no | no | Width of the image in number of pixels. |
NCOLS | no | no | Height of the image in number of pixels. |
FIELD_END |
yes | no | End of a field description. |
<FILE id="user_photo" mimeType='image' directory="$MY_IMAGES_DIR" filter="*.gif"> <F_BIND value="PHOTO"/> <NAME value="USER_PHOTO"/> <NROWS value="100"/> <NCOLS value="100"/> <F_MARKS create='true' set='true'/> </FILE> |