Typically used attributes
All attributes are
General attributes are
Binding to server side method that processes the events coming from this component.
The attribute value must be an expression.
#{methodBinding} | Method binding |
Special binding to componet adapter object instance on server side.
The attribute value must be an expression.
#{tobedefined} | Binding to IComponentAdapter instance |
Name of macro that is used for generating certain attributes of this component. Please pay attention: the value of this attribute is read one time for each control and cannot be changed afterwards.
The attribute value must not be changed once the component is created.
Comment that can be asigned to any component. The comment is not operationally used.
Any text | Any text |
Configuration information that is attached to this component. This information is not functionally used by CaptainCasa, but may be used for any application specific purpose.
If directories referenced within the component are not available then this flag controls if directories will be created automatically.
true | Yes, created directories |
false | No, do not create (default) |
If set to true then no messages about uploads will be shown to the user.
true | No upload messages. |
false | With upload messages (default) |
Semicolon separated list of file extensions which is used as filter within the file selection dialog.
Default - all files. | |
txt | Only files with extension .txt |
jpg;png;gif | Only image files |
Images (png,gif,jpg) can be reduced before being uploaded. This parameter defines the reduction. The definition is a semicolon separated string out of the width, the height and the quality of conversion.
400;300;90 | Reduced to 400x300, 90% Quality |
600;400;85 | Reduced to 600x400, 85% Quality |
If multiple files are uploaded then by default all request are uploaded in one http request to the server. If setting this attribute to true, then an own http request is opened for each file that is uploaded. You may set to true if you e.g. have restrictions about the maximal request size within the network definitions.
false | All files in one request (default) |
true | One requets per file |
Reference to an outside object that is the content behind the component. E.g. a field is representing a certain field of a database table: in this case you could define the value table;column. The reference plays a siginficant role within the attributemacro management.
The attribute value must not be changed once the component is created.
ref | One reference |
ref1;ref2 | Two references |
ref1;ref2;ref3 | Three references |
Flag that indicated if this component is rendered at all. If set to false then the component is not rendered - there is no component data sent to the client.
The attribute value must be an expression.
true | Component is rendered (default) |
false | Component is not rendered |
Duration in milliseconds after which the client file system is checked for new files.
0 | Deactivated |
1000 | 1000 milliseconds |
2000 | 2000 milliseconds |
If set to true then per file upload one separate backup directory will be created.
true | Each file transfer is saved within an own directory |
false | No creation of separate backup directories (default) |
In CaptainCasa you can define styles definitions for components. A style definition is a definition of a set of default attribute values that are applied to the component. In case you want to differenciate between different usage types of the component you can apply multiple styles - and use the stylevariant attribute to select between.
Client directory that will be scanned for files to be transferred to the server.