Creating new form widgets
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2008 08:37 PM
Are there any examples on how to implement a new form widget into a form? Perhaps how to click a simple widget such as s button. I'm interested in how types defined in the xsd (normalizedString,anyURI) are mapped to entries in web-client-config-wcm.xml. For example, anyURI is mapped to a filepicker. is there a way to change it so anyURI points to another widget?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2008 10:46 PM
This is documented at http://wiki.alfresco.com/wiki/Forms_Authoring_Guide, although I don't believe there are any examples posted up there yet. Basically the way it works is that XML Schema annotations (specifically the <alf:appearance> annotation) are used by the developer to tell Alfresco which widget to use for each element, using a symbolic widget name. If you implement a custom widget (as documented at http://wiki.alfresco.com/wiki/Creating_XForms_Widgets) one of the steps is to define a symbolic name for it, which can then be used in this annotation to select that widget for a given element.
If the annotation isn't included in a schema, Alfresco falls back to a default based on the data type of the element; these defaults are listed at http://wiki.alfresco.com/wiki/Forms_Authoring_Guide#Supported_XML_Schema_Data_Types_in_Alfresco_2.0_....
Cheers,
Peter
If the annotation isn't included in a schema, Alfresco falls back to a default based on the data type of the element; these defaults are listed at http://wiki.alfresco.com/wiki/Forms_Authoring_Guide#Supported_XML_Schema_Data_Types_in_Alfresco_2.0_....
Cheers,
Peter
