Mengonfigurasi Aliran Web untuk digunakan dengan JSF

Saya mencoba melakukan Konfigurasi Aliran Web untuk digunakan dengan JSF. dari situs berikut

http://static.springsource.org/spring-webflow/docs/2.3.x/reference/html/ch13s04.html

tapi saya mendapatkan kesalahan berikut:

Description Resource    Path    Location    Type
The prefix "si" for attribute "si:schemaLocation" associated with an element type "beans" is not bound. flowwithjsf.xml /WebFlowWithJSFIntegration/src/main/webapp/WEB-INF/spring   line 12 XML Problem

Ini XML saya, tampilannya seperti situsnya:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:webflow="http://www.springframework.org/schema/webflow-config"
    xmlns:faces="http://www.springframework.org/schema/faces"
    si:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/webflow-config
        http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd
        http://www.springframework.org/schema/faces
        http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">

    <!-- Executes flows: the central entry point into the Spring Web Flow system -->
    <webflow:flow-executor id="flowExecutor">
        <webflow:flow-execution-listeners>
            <webflow:listener ref="facesContextListener"/>
        </webflow:flow-execution-listeners>
    </webflow:flow-executor>

    <!-- The registry of executable flow definitions -->
    <webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices" base-path="/WEB-INF">
        <webflow:flow-location-pattern value="**/*-flow.xml" />
    </webflow:flow-registry>

    <!-- Configures the Spring Web Flow JSF integration -->
    <faces:flow-builder-services id="flowBuilderServices" />

    <!-- A listener maintain one FacesContext instance per Web Flow request. -->
    <bean id="facesContextListener" 
        class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener" />  

</beans>

person techsjs2012    schedule 22.10.2012    source sumber


Jawaban (2)


coba ubah si:schemaLocation="... menjadi xsi:schemaLocation="...
Saya rasa itulah sebabnya Anda mengalami kesalahan ini

person rptmat57    schedule 22.10.2012
comment
itu tidak membantu.. Saya membuat perubahan tetapi sekarang saya mendapatkan kesalahan ini. stackoverflow.com/questions/13050584/ - person techsjs2012; 24.10.2012

"Untuk menggunakan skema ini, sertakan dalam salah satu file kacang lapisan infrastruktur Anda" 10.2 Dokumen musim semi

person Aleksander Lewicki    schedule 22.09.2014