error with popup <t: inputCalendar> (tomahawk/myfaces)
Hi,
I have a problem with the inputCalendar. I successfully integrated it into my page and it also works if renderedAsPopup is set to false. I tried to set it to true but in that way after the click on the "..." Button nothing happens.
Would be great if anyone could help me.
Cheers Kevin
[314 byte] By [
Koeva] at [2007-10-2 8:53:33]

This may sound too basic, but I have overlooked <h:form> tags before. Be sure that the component is in a form.
Also, I'm not certain if the Apache Extensions Filter is required for this component. I have it in my web.xml for other myFaces components that definately require it, perhaps it will help you (it certainly won't hurt). It looks like this:
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>10m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Make sure you have that mapping included in your web.xml (bold).
For some reason the Calendar requires the /faces/* pattern.
Hi, I am having the same problem and cannot get it fixed. Are there any other settings I may need. I couldn't get the popup component to work either.
I am using the Sun RI 1.1.01 with the Tomahawk nightly build from 20051030.
Here is the relevant code from my web.xml
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
...
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<description>
Set the size limit for uploaded files. Format: 10 - 10
bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<description>
Set the threshold size - files below this limit are
stored in memory, files above this limit are stored on
disk.
Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
And here is my jsf snippet
<h:form>
<t:inputCalendar value="#{Perspective.currentSettings.documentSet.startDate}"
renderPopupButtonAsImage="false" renderAsPopup="true"
popupTodayString="Today is" popupWeekString="Wk"
monthYearRowClass="warning" weekRowClass="warning" currentDayCellClass="warning" />
<h:commandLink styleClass="document-search-button" >
<h:outputText value="Search" />
</h:commandLink>
</h:form>
I can see the button, but nothing happens when I click it. The non-popup version works fine.
Thanks!