|
|
| JSF Date picker error |
Expert:arun
hi friend
thanks for your reply.i tried it already those codes. But those are not working .i don't know what is the error on my code.here i have placed my code. Please kindly send me if there any mistakes happened.and i saw one error in my tomcat console. That error is
The import org.apache.myfaces.renderkit.html cannot be resolved
but i check out this package available in my ref.lib.Please send me if there any error in this file.here my codes,
simple.jsp:
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %> <html> <head> <title>t:inputFileUpload example</title> </head> <body> <f:view> <h:form> <t:inputCalendar id="secondOne" value="#{date.inputdate}" renderAsPopup="true" popupDateFormat="MM/dd/yyyy" popupTodayDateFormat="dd-MMM-yyyy" popupWeekString="Week" popupTodayString="The date today is :" renderPopupButtonAsImage="true" popupButtonImageUrl="../images/add.gif" helpText="MM/DD/YYYY" forceId="true"/> <h:commandButton value="clickhere" action="#{date.action}"/> </h:form> </f:view> </body> </html>
Sampledate.java /** * */ package org.apache.myfaces.blank;
/** * * */ public class Sampledate { private String inputdate; /** * @return the inputdate */ public String getInputdate() { return inputdate; }
/** * @param inputdate the inputdate to set */ public void setInputdate(String inputdate) { this.inputdate = inputdate; }
public void action() { System.out.println("this is testing"); }
}
regards,
Arun |
| Answers |
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|