• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help for t:inputCalendar

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ALL,

Request your help please.

Thanks,
Nandish
 
nandish chitalia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
guys please help
 
crispy bacon. crispy tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic