Announcement Announcement Module
Collapse
No announcement yet.
SpEL operators in JSF 2 el Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpEL operators in JSF 2 el

    Hi I was wondering if it was possible to use some of the SpEL operators in JSF pages. I'm trying to use both the null safe accessor and the T operator but I keep getting exceptions like:

    PHP Code:
    javax.el.ELException: Function ':T' not found 
    In the reference documentation I read that since Spring Webflow 2.1 the default el expression parser is SpEL but I suppose this only applies to expressions inside the flow definition file.
    So my question is: is it possible to use SpEL in JSF pages and if so how?


    here is my webflow config:

    PHP Code:
    <flow-executor id="flowExecutor">
        <
    flow-execution-listeners>
            <
    listener ref="securityListener" />
            <
    listener ref="facesContextListener" />                
            </
    flow-execution-listeners>
    </
    flow-executor>

        
    <
    flow-registry id="flowRegistry" parent="flowRegistryGenerated"
         
    flow-builder-services="flowBuilderServices" base-path="/WEB-INF/flows" >
            <
    flow-location-pattern value="/**/*-flow.xml" />
        </
    flow-registry>

        
        <
    flow-registry id="flowRegistryGenerated"
            
    flow-builder-services="flowBuilderServices" base-path="/WEB-INF/flows-generated" >
            <
    flow-location-pattern value="/**/*-flow.xml" />
        </
    flow-registry>


    <
    faces:flow-builder-services id="flowBuilderServices"     development="true"/>

    <
    beans:bean id="facesContextListener" class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener" />

    <
    beans:bean id="securityListener" class="org.springframework.webflow.security.SecurityFlowExecutionListener" /> 
    thanks in advance

    I'm using :

    Spring 3.0.5
    Spring Webflow 2.2.1-RELEASE
    JSF 2.0.4
Working...
X