9757 + Spring 2.5 + JSF 1.2

If the faces-config.xml is like this
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"


and the applicationContext.xml is like this
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"

    <bean id="kService" scope="session"/>
then we can use the Spring bean in the EL like this
where KServiceImpl is
public class KohlsServiceImpl {
    public Date getTime() {
        return new Date(System.currentTimeMillis());

But Idea 9757 doesn't understand kService in ELs.

Comment actions Permalink

It must work, is your applicationContext.xml added in fileset?

Comment actions Permalink

thank you. You're the man!

And sorry for taking your time for a stupid question.


Please sign in to leave a comment.