Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8471565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:49:52+00:00 2026-06-10T16:49:52+00:00

I am learning Dojo And trying to create a iWidget on WebShere Application server.

  • 0

I am learning Dojo
And trying to create a iWidget on WebShere Application server.

I first tried to create Helloworld widget.
Which got deployed.

Now i want to add template.

I create a LoginCmis.html in Template folder this template is gui for asking Username and password.

in CustomerInteraction.js i have created a template String . How to add this on onLoad.

 <div class = LoginCmis>
        <div dojotype="dijit.layout.BorderContainer" id="BorderContainer"
        design="headline" style="height: 250px; width: 400px" align="center">

            <div preload="true" dojotype="dijit.layout.ContentPane" 
                region="top">Login CMIS
            </div>
            <div preload="true" dojotype="dijit.layout.ContentPane" region="centre">

                <table class="form">
                    <tr>
                        <td>UserName</td>
                        <td><input type="text" dojotype="dijit.form.ValidationTextBox"
                            name="username" required="true" maxLength=64 trim="true"
                            style="width: 200px; text-align: left" 
                            dojoattachpoint="username"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Password</td>
                        <td><input type="password" name="password" value=""
                            dojotype="dijit.form.ValidationTextBox" 
                            style="width: 200px; text-align: left"
                            dojoattachpoint="password"/>
                        </td>
                    </tr>
            </table>
        </div>
        </div>
    </div>

in my CustomerInteraction.xml (this was for Hello world do i have to make any changes here) fot the content

<iw:content mode="view">
        <![CDATA[
              <div id ="helloWorld" > Hello World ! </div>
       ]]>
 </iw:content>

In customerInteraction.js

    dojo.provide("helloWorldScope");
    dojo.require("dijit._Widget");
    dojo.require("dijit._Templated");
    dojo.declare("",[ dijit._Widget, dijit._Templated ],{

        templateString : dojo["cache"]("iWidget/widgets/CustomerInteraction", "Template/LoginCmis.html");


        msg1: "Hello World Class Loaded",
        msg2: "Hello World, again",


    onLoad:function() {
            alert(this.msg1);
        }
});

What are the change i have to make to view this template??

the folder design look this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:49:54+00:00Added an answer on June 10, 2026 at 4:49 pm

    Add this mixin _WidgetsInTemplateMixin to youre declaration.

    A widget has no default onLoad function to call / bind. It will however as final stage of constructing itself, call startup

    Make sure dojo knows where to look for youre module and make a div with type so that dojo.parser can reckognize it as a widget.

    CustomerInteraction.xml:

     <script>
          dojo.registerModulePath("iWidgets", "/iWidget");
          dojo.require("iWidget.widgets.customerInteraction");
     </script>
     <div dojoType="iWidget.widgets.customerInteraction"></div> ... </body>
    

    WebContent/iWidget/widgets/customerInteraction.js

    dojo.declare("iWidget.widgets.customerInteraction",[ dijit._Widget, dijit._Templated, dijit._WidgetsInTemplateMixin ],{
         ....
         buildRendering: function() {
              // pre-parser point in flow of construction
              // add you code here
              this.inherited(arguments);
         },
         startup: function() {
              // 'post create' point in flow of construction
              // add you code here
              this.inherited(arguments);
         }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Learning java server technologies, trying to clarify some things. There are few technologies that
(learning c#) I have a C# WPF application which when a certain form is
Learning how to use Phonegap to create an Android application I am still experimenting
Learning about Explicit Cursors and trying to create my frst one.: SET SERVEROUTPUT ON
Learning Jenkins, and trying to get it to build a project for which my
Learning some VBA. So far, I've constructed this piece of code which should allow
Learning asp.net mvc and whenever I worked we had to localize our application. Looked
Learning how to do a master page in asp.net. Trying to figure out how
learning about loops (still a beginner) in VB.net. I have got the below code
Learning php! I have a sql database which contains a table called 'images' which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.