Announcement Announcement Module
No announcement yet.
Is dojox.form.YearTextBox missing? (Webflow 2.2.1 js dojox widgets) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is dojox.form.YearTextBox missing? (Webflow 2.2.1 js dojox widgets)

    I tried to use the dojox.form.YearTextBox.
    Nothing is happeninng.

    (Check the YearTextBox in action at

    uzipped org.springframework.js.resources-2.2.1.RELEASE.jar and checked for anything as YearTextBox and got nothing.

    Then checked a dojo 1.5.0 distribution and there also nothing for YearTextBox

    But has this widget documented for Dojo 1.5.0!

    What gives? What am I missing? Can someone throw some light on this?

    (This is how I am trying use it just in case someone wants to see..
    <script type="text/javascript">
        Spring.addDecoration(new Spring.ElementDecoration({
        	elementId: "year",
        	widgetType: "dojox.form.YearTextBox"  }));

    posted this at also
    Last edited by GSiri; Dec 27th, 2010, 06:08 AM. Reason: Link of this post in another forum

  • #2
    YearTextBox is defined in dojox.form.DateTextBox. Try:

    <script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
    elementId: "year",
    widgetModule: "dojox.form.DateTextBox",
    widgetType: "dojox.form.YearTextBox" }));

    "Something happens" but it's not 100% working. You get an error when the input element receives the focus for the 2nd time.


    • #3
      Hi pcaetano,
      Just thought of posting my observations.

      Your code does make something happen, but it looks pretty broken. I guess this indeed is broken and have to give up using it..