Portlet Factory, Version 6.1.2


 

Dojo Enable builder

The Dojo Enable builder allows you to add Dojo capabilities to a page in your model.

This builder provides the low level functionality of adding the proper JavaScript to bring in the dojo.js, and any specified dojo.require(...) packages on the target page. This builder is useful if you plan on manually adding Dojo functionality (for example, widgets, I/O, or events) to a page in your model, or if you are creating your own Dojo builder.

The following is an example of the JavaScript code that this builder adds to the page.

<script name="DojoEnable_script" language="JavaScript"
        src='<%= webAppAccess.getURLMapper().getStaticContentURL("/factory/dojo/dojo.js",
                                                        request.getScheme()) %>'></script>
<script name="DojoEnable_requires" language="JavaScript">
  dojo.require("dojo.event.*");
  dojo.require("dojo.io.*");
  dojo.require("dojo.widget.*");
</script>

Parent topic: Builder help


Library | Support |