Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1065

Calendar in popup mode doesn't work properly on FF when used within a facelet template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Richfaces 3.1.0 + Seam 2.0.0.CR1 + JSF 1.2 (Sun-RI) + JBoss 4.2.0

      Description

      When you use a calendar component in a facelet view using facelet templating (i.e. within a <ui:define> tag), the calendar component doesn't work propertly in popup mode. On FF 2.0.0.7, when you try to change month with << or >> links, the popup just closes ... It works on IE 6 (except that the popup opens at a wrong position). I could not test on IE 7 since I have not installed it.

      Everything works well when you use the calendar with popup=false
      There is no more problem when you don't use templates.

      For example :

      <!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:s="http://jboss.com/products/seam/taglib"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">

      <ui:composition template="/WEB-INF/templates/template.xhtml">
      <ui:define name="body">
      <f:view>
      <rich:messages />

      <h:form>
      <h:outputText value="#

      {messages['label.dateNaissance']}

      :"></h:outputText>
      <rich:calendar
      id="dateNaissance"
      value="#

      {employe.dateNaissance}

      "
      datePattern="#

      {messages['datePattern']}

      "
      popup="true"
      locale="#

      {locale}

      "
      enableManualInput="true"
      required="true" />
      <h:commandButton id="modifier" value="#

      {messages['label.modifier']}

      " action="#

      {employeCrud.update}

      " rendered="#

      {employe.id != null}" />
      <h:commandButton id="creer" value="#{messages['label.valider']}" action="#{employeCrud.create}" rendered="#{employe.id == null}" />
      <h:commandButton id="supprimer" value="#{messages['label.supprimer']}" action="#{employeCrud.delete}" rendered="#{employe.id != null}

      " />
      <h:commandButton id="annuler" value="#

      {messages['label.annuler']}

      " action="#

      {employeCrud.annuler}

      " immediate="true" />

      </h:form>
      </f:view>
      </ui:define>
      </ui:composition>
      </html>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                afrancuzov Alexander Francuzov
                Reporter:
                chawax Olivier Thierry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: