情况是这样的,我现在用的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>
请各位看到本贴并指导如何解决问题的好友帮忙指教下.谢谢了
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>
请各位看到本贴并指导如何解决问题的好友帮忙指教下.谢谢了
解决方案 »
- struts零配置
- jxls的标签<jx:forEach>只能放在第一个单元格的问题
- httpClient如何利用会话继续访问
- 中心点构架是说,程序得所有模块都连接在中心点上,任何一个模块只和中心点有关系,其他不再有任何关系,任何一个模块必须要在中心点上,注册后,可以被中心点托管。
- 我写的程序在查询域名注册和没注册的时候出现下面异常
- 请问有谁知道Java里的Double.doubleToRawLongBits?
- Struts的问题
- 我想做一个SPRING+Hibernate+Struts+ajax+ORACLE的网站
- 用struts1.2的帮帮忙
- 技术团队中的人际斗争,请各位帮帮我!
- setId([Ljava.lang.String;)] 还是这个该死的异常
- com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'data' 登录失败。
<f:convertDateTime pattern="MM/dd/yyyy HH:mm"
timeZone="#{dateSelect.timeZone}"/> 是不是少一个
<h:message for="date2"></h:message>
convertDateTime 是验证用的 要提示错误
你试试看
做jsf好像挺少了 我也才用了1个月
<f:convertDateTime dateStyle="short"
pattern="yyyy-MM-dd HH:mm"></f:convertDateTime>
</ice:selectInputDate>
<ice:message for="stime" />
这样依然没有用,我想应该是这个控件有问题...不加该控件什么都好.一加该控件就报上面写的错误了...
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" />
org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
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();
}}