MyEclipse7.5.0中资源文件的编辑问题

最近新安装了MyEclipse7.5.0,在试验其中MyEclipse JSF Tutorial时,发现资源文件编辑功能有些问题。具体如下:
按照教程中的方法创建MessageBundle.properties资源文件时,通过在资源文件编辑器的Properties页签中添加三个属性,如下:
user_name_label=User Name:
user_password_label=Password:
login_button_label=Login
保存后,点击Source页签发现以上三行并没有按照惯例直接出现在Source页签中。
造成的结果是在教程后面的userLogin.jsp的创建过程通过#{bundle.user_name_label}、#{bundle.user_password_label}和#{bundle.login_button_label}中引用bundle的这三个属性时会报警:
user_name_label cannot be resolved as a member of bundle
user_password_label cannot be resolved as a member of bundle
login_button_label cannot be resolved as a member of bundle
通过在资源文件编辑器中手工加入以下三行后,报警消除!!!
user_name_label=User Name:
user_password_label=Password:
login_button_label=Login
 
费了将近一天的时间发现这个问题,希望对各位同仁有所帮助!
后面执行时还是有问题
2009-12-31 17:44:09 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-12-31 17:44:09 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
2009-12-31 17:44:11 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-9999
2009-12-31 17:44:11 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-12-31 17:44:11 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/32  config=null
2009-12-31 17:44:11 org.apache.catalina.startup.Catalina start
信息: Server startup in 2014 ms
2009-12-31 17:44:18 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
警告: Unable to find component with ID 'userName' in view.
2009-12-31 17:44:18 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
警告: Unable to find component with ID 'password' in view.
参考: http://onjava.com/pub/a/onjava/2004/06/09/jsf.html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

你可能感兴趣的:(java,职场,休闲)