Announcement Announcement Module
Collapse
No announcement yet.
Is dojox.form.YearTextBox missing? (Webflow 2.2.1 js dojox widgets) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 http://archive.dojotoolkit.org/night...teTextBox.html)

    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 http://dojotoolkit.org/api/ 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..
    Code:
    <script type="text/javascript">
        Spring.addDecoration(new Spring.ElementDecoration({
        	elementId: "year",
        	widgetType: "dojox.form.YearTextBox"  }));
    </script>
    )

    posted this at http://www.coderanch.com/t/521658/Sp...ebflow#2362840 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" }));
    </script>

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

    Comment


    • #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..

      Comment

      Working...
      X