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 ?

0
7 comments
Avatar
Permanently deleted user

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:

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 :

<application>
<variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
</application>

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 :

<h:outputFormat value="#{msg.welcomeText}">
<f:param value="#{loginBean.userName}"/>
</h:outputFormat>

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 ?

0
Avatar
Permanently deleted user

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.

0

Have you configured fileset for your Spring facet?

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.



0
Avatar
Permanently deleted user

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

0

Go to your facet configuration and create a fileset containing your spring
configs.


0
Avatar
Permanently deleted user

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

0

Please sign in to leave a comment.