การกำหนดค่า Web Flow เพื่อใช้กับ JSF

ฉันกำลังพยายามกำหนดค่า Web Flow เพื่อใช้กับ JSF จากเว็บไซต์ต่อไปนี้

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

แต่ฉันได้รับข้อผิดพลาดต่อไปนี้:

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

นี่คือ XML ของฉันซึ่งดูเหมือนกับไซต์:

<?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 แหล่งที่มา


คำตอบ (2)


ลองเปลี่ยน si:schemaLocation="... ด้วย xsi:schemaLocation="...
ฉันคิดว่านั่นเป็นสาเหตุที่คุณพบข้อผิดพลาดนี้

person rptmat57    schedule 22.10.2012
comment
มันไม่ได้ช่วยอะไร .. ฉันทำการเปลี่ยนแปลงแล้ว แต่ตอนนี้ฉันได้รับข้อผิดพลาดนี้ stackoverflow.com/questions/13050584/ - person techsjs2012; 24.10.2012

"หากต้องการใช้สคีมานี้ ให้รวมไว้ในไฟล์ bean ชั้นโครงสร้างพื้นฐานของคุณ" 10.2 เอกสาร Spring

person Aleksander Lewicki    schedule 22.09.2014