情况是这样的,我现在用的Icefaces框架,在后缀为jspx的文件里面导入了
selectInputDate空间.然后加了相应的属性(属性都是正确的),然后,启动程序后报
错,去掉那个控件,程序运行正常,页面也能出来.错误信息如下:2009-06-26 10:16:30 Failed to execute JSP lifecycle.
javax.servlet.jsp.JspException: java.util.MissingResourceException:
Can't find bundle for base name messages-override, locale en
at
com.icesoft.faces.component.selectinputdate.SelectInputDateTag.doEndTag(SelectInputDateTag.java:725)
at
com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:246)
at
com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
at
com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
at
com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
at
com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:162)
我页面的代码是这样的:
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"><ice:outputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" /><html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"></meta>
<title>Basic Calendar Tutorial</title>
<link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />
<link href="./css/selectInputDate.css" rel="stylesheet" type="text/css" />
</head><body><ice:form>
<!-- Popup Calendar -->
<ice:outputLabel id="popupSelectedDateTxt" value="Selected Date: " />
<ice:outputText value="#{dateSelect.date2}"
effect="#{dateSelect.valueChangeEffect2}">
<f:convertDateTime pattern="MM/dd/yyyy"
timeZone="#{dateSelect.timeZone}" />
</ice:outputText>
<!-- Calendar Component -->
<ice:messages /><ice:selectInputDate id="popupDatePttrn2" renderMonthAsDropdown="true"
renderYearAsDropdown="true"
value="#{dateSelect.date2}" rendered="true"
valueChangeListener="#{dateSelect.effect2ChangeListener}"renderAsPopup="true">
<f:convertDateTime pattern="MM/dd/yyyy HH:mm"
timeZone="#{dateSelect.timeZone}"/>
</ice:selectInputDate>
</ice:form></body>
</html>
</f:view>
请各位看到本贴并指导如何解决问题的好友帮忙指教下.谢谢了

解决方案 »

  1.   


    <f:convertDateTime pattern="MM/dd/yyyy HH:mm" 
    timeZone="#{dateSelect.timeZone}"/> 是不是少一个
    <h:message for="date2"></h:message>
    convertDateTime 是验证用的 要提示错误
    你试试看
    做jsf好像挺少了 我也才用了1个月
      

  2.   

    <ice:selectInputDate id="stime" value="#{vschedulebean.voyage.voyageStartTime}">
    <f:convertDateTime dateStyle="short"
    pattern="yyyy-MM-dd HH:mm"></f:convertDateTime>
    </ice:selectInputDate>
    <ice:message for="stime" />
    这样依然没有用,我想应该是这个控件有问题...不加该控件什么都好.一加该控件就报上面写的错误了... 
      

  3.   

    不是for id 是for  bean里的字段voyageStartTime
      

  4.   

    急呀...在线等解决方案...谁能帮我立即解决.我立即给分,哪位JSF开发高手...支个主义啊...
      

  5.   

    没用过 ICEFaces 的控件,我都用 RichFaces 的控件 rich:calendar,感觉挺好用的,呵呵
      

  6.   

    bao110908的回答让我看到了希望...请问在Icefaces中怎么用RichFaces的控件rich:calendar?能具体些吗?急....谢谢了
      

  7.   

    到 RichFaces 官方网站上下载 RichFaces 的包,应该有 richfaces-impl.jar, richfaces-ui.jar 两个 jar 包,放到 WEB-INF/lib 目录中。在命名空间中添加 xmlns:rich 就可以了:<f:view xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
          xmlns:ice="http://www.icesoft.com/icefaces/component"
         xmlns:rich="http://richfaces.org/rich">页面上这样用:<rich:calendar id="start" value="#{accountStatistics.date.fromDate}" style="width:275px;"
        datePattern="yyyy-MM-dd" styleClass="calendarWidth" locale="cn" />
      

  8.   

    还是不行....org.xml.sax.SAXParseException: Document is invalid: no grammar found.2009-06-29 12:02:05  Parse Error at line 39 column 14: Document root element "faces-config", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      

  9.   

    package connectJDBC;import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.util.Date;public class connectJDBC {
    public static final String DBDRIVER="oracle.jdbc.driver.OracleDriver";
    public static final String DBURL="jdbc:oracle:thin:@192.168.1.100:1521:orcl";
    public static final String DBUSER="system";
    public static final String DBPASS="sys";
    public static void main(String args[])throws Exception
    {
    Connection conn=null;
        PreparedStatement pstmt=null;
        InputData input =new InputData();
        String name =input.getString("请输入姓名:");
        int age=input.getInt("请输入年龄","年龄必须是数字");
        String date =input.getString("请输入生日:");
        float salary =input.getFLoat("请输入工资:","输入的工资必须是数字 ,");
        String sql="INSERT INTO person(pid,name,age,birthday,salary)VALUES(perseq.nextval,?,?,?,?)";
        System.out.println(sql);
    Class.forName(DBDRIVER);
    conn=DriverManager.getConnection(DBURL,DBUSER,DBPASS);
    pstmt.setString(1,name);
    pstmt.setInt(2,age);
    pstmt.setDate(3,new java.sql.Date(date.getTime()));
    pstmt.setFloat(4,salary);
    pstmt.executeUpdate();
    pstmt.close();
    conn.close();

    }}
      

  10.   

    InputDate是不是java 系统提供的