简体   繁体   中英

faces-config.xml not recognizing el expression

I am using Wildfly 14 with JSF 1.2. I'm not sure why the expression below in the from view id and to view id is not recognized/evaluated in my navigation. I already put the managed bean but still no luck:

    <managed-bean>
        <managed-bean-name>usersettings</managed-bean-name>
        <managed-bean-class>com.UserSettings</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    <navigation-rule>
        <from-view-id>#{usersettings.path}/main.jsp</from-view-id>
        <navigation-case>
            <from-action>#{mainbean.saveAction}</from-action>
            <to-view-id>#{usersettings.path}/confirm.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>

Is it because of the server version I am using? Please let me know the factors that I should check why the expression is not evaluated. Thank you.

I am using Wildfly 14 with JSF 1.2. I'm not sure why the expression below in the from view id and to view id is not recognized/evaluated in my navigation. I already put the managed bean but still no luck:

    <managed-bean>
        <managed-bean-name>usersettings</managed-bean-name>
        <managed-bean-class>com.UserSettings</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    <navigation-rule>
        <from-view-id>#{usersettings.path}/main.jsp</from-view-id>
        <navigation-case>
            <from-action>#{mainbean.saveAction}</from-action>
            <to-view-id>#{usersettings.path}/confirm.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>

Is it because of the server version I am using? Please let me know the factors that I should check why the expression is not evaluated. Thank you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM