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 6834977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:10:38+00:00 2026-05-26T23:10:38+00:00

I am using a dojo widget that in roo generated .jspx files. Where following

  • 0

I am using a dojo widget that in roo generated .jspx files. Where following is my code parts

<form:select name="halfOrFulDay" id="_monitoringType_id${rowCounter.count}" Style="width:120px" onchange="someProcess()">
   <form:option value="--Select--" selected="selected">--Select--</option>
   <form:option value="Half Day" >Half Day</option>
   <form:option value="Full Day" >Full Day</option>
   <form:option value="None" >None</option>
</form:select>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_monitoringType_id${rowCounter.count}', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {promptMessage: 'In Complete Data',hasDownArrow : true}})); </script>

My problem is, I am not able to fire onchange event as soon as I applied Spring.addDecoration(). Is there any attribute that i can set within widgetAttrs ? Something like:

widgetAttrs : {onchange : someProcess ,promptMessage: ‘In Complete Data’,hasDownArrow : true}

  • 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-05-26T23:10:39+00:00Added an answer on May 26, 2026 at 11:10 pm

    dijit.form.FilteringSelect is not a regular dom node. It’s a dijit widget…
    Its onchange event is attached to a particular dom node of the widget template, and it’s attached to the widget’s extension point called “onChange” (mind the capital C).

    Your example should be :

    <script type="text/javascript">
        Spring.addDecoration(new Spring.ElementDecoration({
            elementId : '_monitoringType_id${rowCounter.count}', 
            widgetType: 'dijit.form.FilteringSelect', 
            widgetAttrs : {
                promptMessage: 'In Complete Data',
                hasDownArrow : true,
                onChange : function(evt) {
                   // Your event code here
                }
            }
        })); 
    </script>
    

    You should read about this here : http://dojotoolkit.org/reference-guide/quickstart/writingWidgets.html#creating-extension-points

    For any widgets you use through spring, you will find the corresponding documentation here : http://dojotoolkit.org/api/

    Just expand the “dijit” tree node, then select your widget, then have a look at the list of custom events it supports in the “Event summary” section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dijit.form.Select widget. It's tied to a data store, if that matters.
Using Dojo verions 1.3.2. The following code is working fine in FF and Chrome,
I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore.
I am using Dojo ValidationTextBox through Zend Framework in the following way: $form->addElement('ValidationTextBox', 'procedureName',
I am currently working on a project that is using Dojo as the js
I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script
I'm using dojo and dijit and have an inlineEditBox widget. I'm trying to capture
When using the dijit.form.NumberSpinner widget, the arrow buttons don't show up on IE6, unless
I'm using git to test out a dojo widget I'm developing. I am developing
I am attempting to put together a fairly complex form using dojo and dijit

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.