cancel
Showing results for 
Search instead for 
Did you mean: 

Creating new form widgets

et3rnul
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

pmonks
Star Contributor
Star Contributor
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