Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help for t:inputCalendar

 
nandish chitalia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,

Request your help please.

Thanks,
Nandish
 
nandish chitalia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys please help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic