Hi,

I spent several hours playing with x:inputCalendar and wondering
why this component does not work always under Firefox. I figured out 
that x:inputCalendar doesn't work if it's inside a html-body tag 
WITH A "onload" ATTRIBUTE.
Then I always got an ugly Javascript Error:

"jscalendarCrossobj has no properties"

This for example doesn't work until you remove the onload attribute 
of the body tag:

-------------------------------------------------------------------------
<%@ page session="false" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x" %>
<html>
<head>
  <script type="text/javascript">
        function test(){                    
          alert("test ALERT");
        }
  </script>     
  <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8">
  <title>__-- XXX --__</title>
  <link rel="stylesheet" type="text/css" href="css/basic.css">
</head>
<body onload="test();">

<f:view>
<h:form id="testForm" >
   <x:inputCalendar monthYearRowClass="yearMonthHeader"                     
                              weekRowClass="weekHeader"
     currentDayCellClass="currentDayCell" value="" renderAsPopup="true"
     title="CALTITLE" id="CAL" immediate="false" 
     style="width: 185"
   />
</h:form>
</f:view>

</body>
</html>
-------------------------------------------------------------------------

Any reasons for that??

Best Regards,

Christian

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

Reply via email to