-
Notifications
You must be signed in to change notification settings - Fork 38.5k
problem with integrating JSF with Spring [SPR-2262] #6951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
mohammad commented This is the related project of this issue |
mohammad commented this is the complete error message that is thrown: 2006-07-10 10:14:44,203 DEBUG - com.sun.faces.el.ValueBindingImpl.getValue(152) | getValue(ref=numControls.num |
Rob Harrop commented Mohammad, Can you post the web.xml configuration - the part that shows ContextLoaderListener/Servlet is most important. Rob |
mohammad commented Hi Rob I attached the whole project namely springNumControls.rar to this issue. <?xml version="1.0" encoding="UTF-8"?>
</web-app> |
Rob Harrop commented Mohammad, I managed to get the application you supplied running using Spring 2.0 RC3, Tomcat 5.5.16 and the JSF 1.1_01 RI. I was able to run everything successfully - the only change I made was to the NumControls class to add the setter back in. If you are not using JSF 1.1_01 I recommend you update to this and give that a go. If that fails - please attach the exact WAR file that doesn't run for you. Cheers, Rob |
Mark Holster commented true, according to jsf spec chapter 5.3.1.3 a managed property needs a setter method to be initialized. |
Rob Harrop commented Closed until more feedback. |
mohammad commented Hello Thank you very much indeed for spending your valuable times. Regards |
bansi commented Hi All As suggested by Rob and Mark , the managed property has a setter method initialized Wondering whether its the problem with spring 1.2 . Do i need to have Spring 2.0 or is it something else Any pointers/suggestions at [email protected] will be highly appreciated Regards |
mohammad opened SPR-2262 and commented
Hi
I have a simple project with JSF, but problem is the Spring bean is not recognized by JSF.
here is the faces-config.xml
and this is applicationContext.xml
...
aop:spring-configured/
...
this is JSF backing bean:
public class NumControls {
private int numOfControls = 0;
private HtmlPanelGrid controlPanel;
private HtmlOutputText out;
private NumService numService; // <-- Spring bean
.....
when I run the application an NullPointerException has been occured.
any idea?
Affects: 2.0 RC1
Attachments:
The text was updated successfully, but these errors were encountered: