I am currently writing a simple JSF 2 app for WAS 7. When I config-xx to the chain, everything works great
When I try to use the annotations below instead, the app fails.
package com.prototype.beans; Import javax.faces.bean.ManagedBean; Import javax.faces.bean.RequestScoped; @ManagedBean (name = "personBean") @RequestScoped public class PersonBean {....}
I have set the ClassLoder for Parent Lists, and confirmed in the log that Mojarra 2 .X Loading. [5/17/10 10: 46: 59: 399 CDT] 00000009 Config I is starting Moziera 2.0.2 (FCS B10) for reference '/ JSF Prototype'
However, when I try to use the app (which worked with XML based configs) I see the following
[5 / 17/10 10:48]: 08: 491 CDT 00000016 lifecycle w /pages/inputname.jsp(16,7) '# {personBean.personName}' target unchanging, tap identifier 'person bean' org.apache.jasper .el.JspPropertyNotFoundException: for pages / h Done /inputname.jsp (16,7) '# {personBean.personName}' target unchanging, resolved to solve identifier 'person bean'
Is anyone going wrong? ?
It seems that I have solved my problem (again) The problem looks like this That was due to an improper schema space / config on the structure of the face. Here's what I am using here, and it starts working.
& lt ;? XML version = "1.0"? & Gt; & Lt; Faces-config xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" XSI: Schema Location = "Http : //java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd "version =" 2.0 "& gt; & Lt; / Face-config & gt;
Comments
Post a Comment