Continuing to Use Dojo Widgets for DSPs

DSP logical widgets are mapped to native HTML5 controls.

Important: If you are still using the Dojo widgets (which were the default before Uniface 9.7), we strongly urge you to switch to the normal HTML5 widgets. The Dojo widget library is outdated and support for Dojo is being phased out.

The Dojo widgets files are still provided in the Uniface 10.3.02 installation, but as of 10.3.02.025, the widget definitions are no longer be provided in the uweb.def file.

If you still want to use the Dojo widgets, create a file called called web.ini in uniface\adm directory, with the following content:

[dojocheckbox]
widget=UNIFACE.dijit.checkbox
ulayout=TAG=input;HTMLATTRIBUTES=type=checkbox!;id=ubinding
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:style_notextwidget
property-defaults=datatype=string

[dojocommandbutton]
widget=UNIFACE.dijit.button
ulayout=TAG=input;HTMLATTRIBUTES=type=button!;id=ubinding!;value=Button
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js
properties=grp:html_common;grp:style_textwidget;grp:style_box1;grp:style_table;grp:style_visibletext;grp:uniface_all
; Background Color      # Only if background image is off.
; Text Decoration       # 'blink' not supported under IE
; Bottom Offset         # Percentages not supported
; Height                # Percentages not supported under IE
; Max-height            # Percentages not supported under IE
; Max-width             # Percentages not supported under IE
; Min-height            # Percentages not supported under IE
; Min-width             # Percentages not supported under IE
; Top Offset            # Percentages not supported
; Width                 # Percentages not supported under IE
property-defaults=datatype=string

[dojodatepicker]
widget=UNIFACE.dijit.datepicker
ulayout=TAG=select;HTMLATTRIBUTES=id=ubinding!;size=1;ELEMENTS=TAG=option!!;CHARACTERS=Datepicker
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:style_textwidget;grp:style_box1;grp:style_listandmarker;grp:style_visibletext
; Text Alignment        # 'justify' not supported
; Text Decoration       # 'blink' not supported under IE
; Direction             # 'rtl' not supported
property-defaults=datatype=string

[dojodropdownlist]
widget=UNIFACE.dijit.dropdown
ulayout=TAG=input;HTMLATTRIBUTES=type=text!;id=ubinding!;value=DropdownList
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:style_textwidget;grp:style_visibletext;grp:style_box1;grp:style_textbase;grp:uniface_all;valrep
; Text Alignment        # 'justify' not supported
; Text Decoration       # 'blink' not supported under IE
; Direction             # 'rtl' not supported
property-defaults=datatype=string

[dojoeditbox]
widget=UNIFACE.dijit.editbox
ulayout=TAG=input;HTMLATTRIBUTES=type=text!;id=ubinding!;value=Editbox
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:style_textwidget;grp:style_box1;grp:style_listandmarker;grp:style_visibletext;grp:uniface_all
; Text Alignment        # 'justify' not supported
; Text Decoration       # 'blink' not supported under IE
property-defaults=datatype=string

[dojolistbox]
widget=UNIFACE.dijit.listbox
ulayout=TAG=select;HTMLATTRIBUTES=id=ubinding!;size=3;ELEMENTS=TAG=option!!;CHARACTERS=Listbox
javascript= ;$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;html:size;html:multiple;grp:css_all;grp:uniface_all;valrep
property-defaults=datatype=string

[dojopassword]
widget=UNIFACE.dijit.password
ulayout=TAG=input;HTMLATTRIBUTES=type=text!;id=ubinding!;value=Password
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:style_textwidget;grp:style_box1;grp:style_listandmarker;grp:style_text;grp:uniface_all
; Text Alignment        # 'justify' not supported
; Text Decoration       # 'blink' not supported under IE
property-defaults=datatype=string

[dojoradiogroup]
widget=UNIFACE.dijit.radiogroup
ulayout=TAG=input;HTMLATTRIBUTES=type=radio!;id=ubinding
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js
;$LIBURL/css/udojo.css
properties=grp:html_common;grp:css_all;grp:uniface_all;rows;columns;verticalorder;align;valrep
; Padding               # No effect on IE6
property-defaults=datatype=string

[dojotextarea]
widget=UNIFACE.dijit.textarea
ulayout=TAG=textarea;HTMLATTRIBUTES=id=ubinding!;cols=20!;rows=2;CHARACTERS=Textarea
javascript=$LIBURL/dojo/dojo.js;$LIBURL/dojo/dojo-for-uniface.js;$LIBURL/udojo.js

properties=grp:html_common;grp:html_textarea;grp:style_textwidget;grp:style_box1;grp:style_visibletext;grp:uniface_all
; Text Alignment        # 'justify' not supported
; Text Decoration       # 'blink' not supported under IE
; Height                # percentages not supported under IE
; Max-height            # percentages not supported under IE
; Min-height            # percentages not supported under IE
property-defaults=datatype=string