Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4282

DataTextField in ModalWindow for IE8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • None
    • None
    • wicket

    Description

      I have a ModalWindow and that M.W set a Panel. That Panel contains a Form that's add a DateTextField like this:
      final DateTextField activationDate = new DateTextField("activationDate",
      new PropertyModel(this,"card.activationDate"), "yyyy-MM-dd");
      DatePicker datePicker = new DatePicker() {
      private static final long serialVersionUID = 1L; // Default version ID

      // Override of Configure to force minimum date to be able to select for this calendar.
      // mindate = tomorrow - mm/dd/yyyy.
      @SuppressWarnings(

      { "unchecked", "deprecation" }

      )
      public void configure(Map widgetProperties)

      { super.configure(widgetProperties); GregorianCalendar gc = new GregorianCalendar(); //gc.add(Calendar.DAY_OF_MONTH, 1); SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy"); String mindate = df.format(gc.getTime()); widgetProperties.put("mindate", mindate); }

      };
      activationDate.add(datePicker);

      ....and that DateTextField is inside a tag in HTML like this:

      <tr wicket:id="activationDateRow">
      <th>Activation Date:</th>
      <td>
      <span class="snmcal"><input type="text" wicket:id="activationDate"></input></span>
      </td>
      </tr>

      ...In JAVA it is reference by this:

      final WebMarkupContainer activationDateRow = new WebMarkupContainer("activationDateRow");

      ...when I need to show the activationDate I put the activationDateRow.visible(true) or activationDateRow.visible(false) if I don't wanto to do that.

      The problem is: at the first time when I do click in some bottom to show the ModalWindow in firefox the DataPicker inside the DateTextField appears well but in IE8 at the fist click doesn't show well..seems like the DataPicker isn't created or something like that...If I do ckick on close buttom an then I repeat the previous steps I can see the DataPicker ok..The situation is: I'm not an expert in wicket..I need help with this..

      Attachments

        Activity

          People

            Unassigned Unassigned
            maribel Maribel Zapata
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified