Author
Need Help for t:inputCalendar
nandish chitalia
Greenhorn
Joined: Apr 11, 2006
Posts: 7
posted Jun 28, 2007 04:37:00
0
Hi, I am trying to use the valueChangeListener for t:inputCalendar. But, it is not getting invoked. I get a SocketException whenever i click on the calendar button. I tried to use the validator attribute as well and also tried for a custom validator. But, it does not seem to work. Listed below is my JSF code. <h:form id="dummyForm"> <h:panelGrid columns="3"> <t:inputCalendar id="RedemDateCldr" popupDateFormat="dd/MM/yyyy" renderAsPopup="true" required="true" value="#{dateSelector.date}" size="10" renderPopupButtonAsImage="true" valueChangeListener="#{dateSelection.validate}" immediate="false"> </t:inputCalendar> </h:panelGrid> </h:form> I have added the tomahawk 1.1.5 jar and the ExtensionFilter to web.xml. Please help me to resolve this issue. Thanks in advance, Nandish
nandish chitalia
Greenhorn
Joined: Apr 11, 2006
Posts: 7
posted Jun 28, 2007 06:49:00
0
<t:inputCalendar id="calendar1" immediate="true" renderAsPopup="false" valueChangeListener="#{dateSelector.calendar1_processValueChange}"/> This code works. The method is in backing bean given below public void calendar1_processValueChange(ValueChangeEvent vce) { try{ System.out.println("Hi"); System.out.println(vce.getNewValue()); } catch (Exception e) { System.out.println("Exception" + e); } } But, if I specify renderAsPopup="true", then it throws the SocketException and does not proces further.
nandish chitalia
Greenhorn
Joined: Apr 11, 2006
Posts: 7
posted Jun 28, 2007 09:47:00
0
Hi ALL, Request your help please. Thanks, Nandish
nandish chitalia
Greenhorn
Joined: Apr 11, 2006
Posts: 7
posted Jun 29, 2007 07:32:00
0
guys please help
subject: Need Help for t:inputCalendar