4 Replies Latest reply on May 8, 2009 11:32 AM by Ilya Shaikovsky

    commandButton not working in facet

    Ray Fenetti Newbie

      Does anyone know why a commandButton does not activate when placed inside the rich:calendar header facet tag? Please see the following code. BTW, the managed bean is using session scope. The button on top works, the one in the header facet doesn't:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">


      Calendar Test



      <h:form>

      <a4j:commandButton action="#{myCalendarBean.doNextYear}" rerender="calendar" value="&lt;&lt;"/>

      <rich:calendar id="calendar" mode="ajax" popup="false" value="#{myCalendarBean.selectedDate}">
      <f:facet name="header">
      <a4j:commandButton action="#{myCalendarBean.doNextYear}" value="&lt;&lt;"/>
      </f:facet>
      </rich:calendar>
      <rich:messages/>
      </h:form>



      Thanks,
      R.