Announcement Announcement Module
Collapse
No announcement yet.
dijit.form.DateTextBox is not visible when the page is loaded Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • dijit.form.DateTextBox is not visible when the page is loaded

    When my page is loaded I cannot see calendar:
    Attachment

    When I click on the date field of the form it appears, but it does not look as I expect:
    Attachment

    The code I use to display in jsp file:
    <label for="birthday">Birthday<br/> </label>
    <sf:input path="birthday" id="birthday"
    pattern="(0[1-9]|1[0-9]|2[0-9]|3[01])-(0[1-9]|1[012])-[0-9]{4}"/><br/>
    <script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
    elementId:"birthday",
    widgetType:"dijit.form.DateTextBox",
    widgetAttrs:{ datePattern:"dd-MM-yyyy", required:true }}));
    </script>
    So my questions are:
    1. How to make it visible when the form is loaded?
    2. How can I manage with its css, so I could set backgournd and other properties?

    Thanks.
    Attached Files

  • #2
    None can help me with the issue? Cannot believe

    Comment

    Working...
    X