could someone please lend me a hand with the following:
I'm embedding the jenia calendar inside the tabbed pane component and when
clicking on the calendar image get a javascript error saying:
document.forms.ltinc2:calendarForm.elements is null or not an object. This
prevent the calendar popup.
Here are the relevant excerpts from my pages:
tabbedPane.jsp----------------
<t:panelTab label="#{toplevel_messages['LCWTab']}"
rendered="#{tabbedPaneHandler.lcwTabVisible}">
<h:outputText value="from the second
tab" />
<f:subview id="ltinc2">
<jsp:include
page="calendar.jsp" />
</f:subview>
</t:panelTab>
calendar.jsp ~~~~~~~~~~~~~~~~~~~~~~~~~~~
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://www.jenia.org/jsf/popup" prefix="jp"%>
<html>
<head>
<link rel="STYLESHEET" type="text/css"
href="../css/riskITStyles.css" />
<link rel="stylesheet" type="text/css"
href="../css/jscookmenu.css" />
<title>Calendar</title>
</head>
<body>
<f:view>
<h:form id="calendarForm">
<h:inputText
value="#{dateBean.longFormattedCob}" id="cobDate"
required="true">
<f:convertDateTime pattern="dd/MM/yyyy"
/>
</h:inputText>
<jp:popupCalendar for="cobDate"
format="dd/MM/yyyy" />
</h:form>
</f:view>
</body>
</html>
Could anyone offer any ideas on what I am doing wrong or what steps I am
missing.
TIA.
Simeon Leyzerzon
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================