This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Need Help for t:inputCalendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Need Help for t:inputCalendar" Watch "Need Help for t:inputCalendar" New topic
Author

Need Help for t:inputCalendar

nandish chitalia
Greenhorn

Joined: Apr 11, 2006
Posts: 7
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
<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
Hi ALL,

Request your help please.

Thanks,
Nandish
nandish chitalia
Greenhorn

Joined: Apr 11, 2006
Posts: 7
guys please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help for t:inputCalendar
 
Similar Threads
Adding Calender Control
selectOneMenu ValueChangeListener not Firing
Problem with Tomahawk's schedule component
values in one form dissapearing when editing another
How to rendered a <tr:commandButton (trinidad) via ajax