The com.ibm.egl.rui.dojo.widgets project depends on the com.ibm.egl.rui project, which is created by default when you create a Rich UI project. Before you import the Dojo project into a clean workspace, create a Rich UI project.
To create a Rich UI handler, click
. Use the Rich UI Handler wizard to complete the creation of the Rich UI Handler part.After the Rich UI Handler part is created, you can start to code your application by using the Rich UI editor. The following example shows a simple application that contains a button:
import dojo.widgets.DojoLib; Handler DojoButtonSample Type RUIHandler { initialUI = [ MyFirstButton ], onConstructionFunction = init } MyFirstButton dojo.widgets.DojoButton { text = "Button" }; function init() DojoLib.setTheme("tundra"); end end