Categories

Main
Database
Java
Microsoft.NET
Adabas
DB2
Informix
Microsoft SQL Server
MySQL
Oracle
Pervasive.SQL
PostgreSQL
Sybase
Other
ASP
ColdFusion
Crystal Reports
Delphi, C etc
JAVA
Microsoft.NET
Perl and the DBI
PHP
ANSI SQL
Unix Shell Scripts
Visual Basic
XML & XSLT
Corel Paradox
FileMaker
Microsoft Access
Microsoft Excel
Other PC Databases
Applications & Tools
Database Concepts & Design
EJB programming & troubleshooting
EJB design
General J2EE
XML & Web services
Web tier: servlets, JSP, Web frameworks
Performance and scalability
Industry news
TSS feedback
Mobicents Contributors
Mobicents Users
JSLEE Resource Adaptor Types
Planning JavaOne 2008
Sun Tech Days
Other Java conferences
Binary Web Services and XML
Metro and JAXB
GlassFish
GlassFish Plugins
Project jMaki
GlassFish WebTier
Mural
Java Development Tools
Java WS & XML Community News
JAXP
Java SE
6uN Early Access
Java Quick Starter
Java SE Snapshots: Project Feedback
JCK Forum
Feedback and Suggestions
JDK Distros
JDK Open Source
General JSR Discussion
JCP 2.6
JXTA Community Forum
ME Interest
ME Cool Apps
ME General Help
ME Feedback & Suggestions
ME Application Developer Interest
Blu-ray Disc Java
ME Developer Days
Squawk
Mobile Developer Alliance
OpenCable
LWUIT
JavaFX Script Language Discussion
OpenJFX General Discussion
Scene Graph
General Performance Discussion
Your Java Career
NetBeans 6.0
Servlets
JSP
JSF
Portals and Portlets
EJB and Other Java EE Technologies
Distributed Java
Object Relational Mapping
JDBC
Web Services
Swing / AWT / SWT / JFace
JNLP and Web Start
Java Micro Edition
Sockets and Internet Protocols
Threads and Synchronization
Performance
Applets
I/O and Streams
Other Java APIs
Game Development
Java in General (beginner)
Java in General (intermediate)
Java in General (advanced)
Programmer Certification (SCJP)
Developer Certification (SCJD)
Associate Certification (SCJA)
Web Component Certification (SCWCD)
EJB Certification (SCBCD)
Mobile Application Certification (SCMAD)
Architect Certification (SCEA)
Web Services Certification (SCDJWS)
XML Certification
Product and Other Certifications
Mock Exam Errata
Sun Certification Results
Authors' Corral
Book Reviews
Events
Bunkhouse Porch
Teachers' Lounge
Testing
OO, Patterns, UML and Refactoring
IDEs, Version Control and other tools
Ant, Maven and Other Build Tools
Linux / UNIX
Mac OS
HTML and JavaScript
XML and Related Technologies
Agile and Other Processes
General Computing
Security
Groovy
Scala
Other Languages
Struts
Application Frameworks
Other Open Source Projects
BEA/Weblogic
IBM/Websphere
Oracle/OAS
Apache/Tomcat
JBoss
Other Java Products and Servers
JavaRanch
Cattle Drive (java college)
Moderators Only
Trash Can
Jobs Offered
Jobs Wanted
Jobs Discussion
Meaningless Drivel
Programming Diversions
Blatant Advertising
Java Announcements
New To Java
Advanced Java
Java Applets
Networking
Threads and Synchronization
Java 2D
AWT / Swing
SWT / JFace
CLDC and MIDP
CDC and Personal Profile
Sun Java Wireless Toolkit
Enterprise JavaBeans
JavaServer Pages (JSP) and JSTL
Java Servlet
JavaServer Faces
Web Frameworks
Database
XML
Lucene
NetBeans
Eclipse
IntelliJ IDEA
JCreator
Other IDEs
Java Tutorials
Java Tips
Jobs Discussion
Jobs Offered
Jobs Wanted
Professional Certification
Forum Lobby
Java Blogs
Introductions
Reviews / Advertising
Suggestions & Feedback

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

JSF

JavaServer Faces

PropertyNotFoundException: Can't set managed bean property


I try to seperate JSF view and controller. But I got error message.I set up a controller class which has page code. And button action will go to controller method.code:// controllerIndex indexPage; // match to Index.jspDetail detailPage;   // match to Detail.jsppublic void doAction(){//indexPage.getRequestScope().put("customer",c);//detailPage.setCustomer(c);indexPage.gotoPage("/detail.jsp"); // using IBM RAD 6.0}Faces-config.xmlcode:<managed-bean><managed-bean-name>pc_Index</managed-bean-name><managed-bean-class>pagecode.Index</managed-bean-class><managed-bean-scope>request</managed-bean-scope></managed-bean><managed-bean><managed-bean-name>pc_Detail</managed-bean-name><managed-bean-class>pagecode.Detail</managed-bean-class><managed-bean-scope>request</managed-bean-scope></managed-bean><managed-bean><managed-bean-name>pc_AppController</managed-bean-name><managed-bean-class>me.AppController</managed-bean-class><managed-bean-scope>request</managed-bean-scope><managed-property><property-name>indexPage</property-name ><value>#{pc_Index}</value></managed-property><managed-property><property-name>detailPage</property-name ><value>#{pc_Detail}</value></managed-property></managed-bean>the error message iscode:[5/11/06 9:51:22:781 EDT] 0000002b ServletWrappe E   SRVE0014E: Uncaught service() exception root cause Faces Servlet: javax.faces.FacesException: #{pc_AppController.doAction}: javax.faces.el.PropertyNotFoundException: Can't set managed bean property: 'detailPage'.at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)Caused by: javax.faces.el.PropertyNotFoundException: Can't set managed bean property: 'detailPage'.at com.sun.faces.application.ApplicationImpl.createAndMaybeStoreManagedBeans(ApplicationImpl.java:911)Caused by: javax.faces.FacesException: Can't set managed bean property: 'detailPage'.at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:582)Caused by: java.lang.NullPointerExceptionat com.sun.faces.config.ManagedBeanFactory.getScopeForSingleExpression(ManagedBeanFactory.java:988)I read this error, I guess it related to the bean scope. But interesting thing is, in the faces-config xml above,if I take out "detailPage" <managed-property>, it will work.Any advice? Thanks. BTW, I am using RAD6.0 and WAS 6.0 in this project.


Related Links

Show HashMap in Datatable. UIColumn with embedded Datatable. Help Needed
PDF in new Browser window
Problem in populating LIST of applications in JSF and . Do please suggest
calling my servlet when jsf jsp submitted
invoking face servlet
Returning JSF view from non JSF Request
DynaFaces
Getting null value in managed bean when readonly=true is given for h:inputText
how do I achieve below on the webPage
Good Tutorials for JSF
Datatable configuration
How to disable autocomplete in JSF?
Whay one cannot use ADF chooseDate and ADF selectInputDate in opera
State Maintainance in jsf
Launching dialogue from checkbox.
Problem with datatable