MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1577

t:inputCalendar disabled status is not working with f:ajax

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.11-SNAPSHOT
    • Fix Version/s: 1.1.11
    • Labels:
      None
    • Environment:
      Win XP, JDK 1.6.0.20, Tomcat 6.0.29, MyFaces 2.0.6 - Snapshots (built from trunk of 09-04-2011), Tomahawk20-1.1.11 Snapshot (built from trunk of 09-04-2011)

      Description

      I'm using a t:selectBooleanCheckbox with ajax functionality and the t:inputCalendar component. The calendar should be enabled if the checkbox is checked and vice versa. By default the checkbox is unchecked and the calendar disabled. The disabled calendar does not show the (disabled) button for the popup at all. If the checkbox is checked the calendar stays disabled.

      See demo source code below:

      <t:selectBooleanCheckbox id="aCheckbox" value="#

      {mybean.aCheckbox}

      ">
      <f:ajax event="valueChange" render="aDate" />
      </t:selectBooleanCheckbox>

      <t:inputCalendar id="aDate"
      monthYearRowClass="yearMonthHeader"
      weekRowClass="weekHeader"
      popupButtonStyleClass="standard_bold"
      currentDayCellClass="currentDayCell"
      value="#

      {mybean.aDate}

      "
      renderAsPopup="true"
      popupTodayString="today"
      popupDateFormat="dd.MM.yyyy"
      popupWeekString="week"
      forceId="true"
      disabled="#

      {mybean.aCheckbox == false}

      " />

      Maybe this ajax issue is related to this ticket: TOMAHAWK-1574

        Activity

        Oliver Bayer created issue -
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 1.1.11-SNAPSHOT [ 12315372 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.1.11 [ 12316480 ]
        Fix Version/s 1.1.11-SNAPSHOT [ 12315372 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Oliver Bayer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development