1 Reply Latest reply on Feb 19, 2008 8:08 PM by x y

    calendar question

    x y Newbie

      hi -

      i couldn't find this anywhere.. how can i get calendar work as a h:commandbutton?

      the situation is as follows: the application is in phonebook "mode" so it is showing phonebook.seam. there is a calendar with popup false on the screen as well. when the user clicks (and therefore selects) a date, it should call an action that will return "/calendar.xhtml" (with selected date) and therefore switch to calendar "mode".


        • 1. Re: calendar question
          x y Newbie

          code below worked..

          my mistake was using <form.. as opposed to <h:form..

          <h:form id="calendarForm">

          datePattern="MMM d, yyyy"

          <a4j:support event="ondateselected" action="#{calendar.submit}"/>