Cross-framework bean/variable resolving
Hi,
I'm trying the latest IDEA with a project using both JSF and Spring, having the JSF context configured to access Spring configured beans with :
org.springframework.web.jsf.DelegatingVariableResolver
Having this setup, IDEA fails to resolve the Spring beans used on JSF pages and marks them as unknown, although the application works perfectly fine. Like in the following code :
]]>
the loginBean is not resolved ("Cannot resolve variable loginBean ...") as it is defined in the Spring context config. Of course, this causes no auto-complete etc. etc.
My question is : Is it possible and do you plan to implement sort of cross-framework bean/variable resolving, that would fix this issue ?
Please sign in to leave a comment.
Which build of IDEA?
Do you have JSF and Spring facets added to the module?
I haven't really tried this combination, but I would expect it to be working ;)
If the project setup is correct and it still doesn't work, you should
probably file a Jira issue, preferably with a dummy project that shows the problem.
Georgi Georgiev wrote:
Idea version : the latest - 8769.
Facets added : yes
Working : no :)
Dummy project + JIRA : yes, probably a good idea, but I wanted a confirmation that I'm doing it right first.
Have you configured fileset for your Spring facet?
No, I'm not. I was looking at it as a possible problem, but honestly, I can't get the idea of the filesets exactly (I might be just too stupid, but still - can't get it), so any help on it would be appreciated.
Edited by: Georgi Georgiev on Sep 15, 2008 1:58 PM
Go to your facet configuration and create a fileset containing your spring
configs.
Yes, that's obvious, but the question is - what's the idea behind it ! I created a fileset for the spring config and included ONLY spring-config.xml in it ... and it worked. So, the fileset does not create any additional links between the spring and JSF config, still - this did the trick and the question "why" is still a mystery for me.
Oh ... and of course - thanks for your help, guys :)
Edited by: Georgi Georgiev on Sep 17, 2008 11:47 AM
Fashion in the Makin
http://www.replicahandbagss.com/replica-handbags/indy.html Fashion in the Makin http://www.replicahandbagss.com/handbags/gucci-189898-fciig-9775-tote-handbag-3260-2181.html Fashion in the Makin http://www.replicahandbagss.com/replica-handbags/new-2009-chanel-handbag.html Fashion in the Makin http://www.replicahandbagss.com/replica-handbags/burberry-handbags.html
---
Original message URL: http://devnet.jetbrains.net/message/5269790#5269790