Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1515

f:ajax event not triggered inside t:calendar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.10-SNAPSHOT
    • 1.1.10
    • Calendar, JSF2
    • None
    • Win XP, JDK 1.6.0.20, Tomcat 6.0.24, MyFaces 2.0.1 - Snapshots (api + impl), Tomahawk20-1.1.10 Snapshot

    Description

      I've modified the tomahawk 2.0 example so that I have a birthday input field (t:calendar) and an age input field (t:inputText). If someone puts in a birthday date the ajax event should be triggered and calculate the age.

      If I use a calendar the ajax event isn't working whereas with a simple inputText it's working (see code snippets below).

      Not working example with t:calendar:
      <t:inputCalendar id="birthday"
      monthYearRowClass="yearMonthHeader"
      weekRowClass="weekHeader"
      popupButtonStyleClass="standard_bold"
      currentDayCellClass="currentDayCell"
      value="#

      {testBean.birthday}"
      renderAsPopup="true"
      popupTodayString="#{example_messages['popup_today_string']}"
      popupDateFormat="dd.MM.yyyy"
      popupWeekString="#{example_messages['popup_week_string']}"
      forceId="true">
      <f:ajax event="valueChange" render="age"/>
      </t:inputCalendar>
      <t:inputText id="age"
      value="#{testBean.age}"
      title="Age"
      />

      Working example with t:inputText:
      <t:inputText id="birthday"
      value="#{testBean.birthday}

      "
      title="#

      {lbl.edit_data_title_personal_birthday}

      ">
      <f:ajax event="valueChange" render="age"/>
      </t:inputText>
      <t:inputText id="age"
      value="#

      {testBean.age}

      "
      title="Age"
      />

      Is this a bug or am I misunderstanding the f:ajax use case?

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              oli Oliver Bayer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: