2014-06-13 20 views
0

我正在使用Orbeon 4.5窗體。「Orbeon窗體找不到」打開Orbeon 4.5窗體時出錯

雖然我嘗試用隨機documentid如打開窗體:錯誤

http://localhost:8080/orbeon/fr/AppName/formName/edit/randomDocumentId 

我得到「未找到Orbeon形式」。我認爲它受到了document_id的影響。

如果我的理解是正確的,無論是上面的鏈接和:

http://localhost:8080/orbeon/fr/AppName/formName/edit 

應該給我同樣的結果。

而且我注意到它在4.4中的工作正常,屬性文件相同。

下面是我的財產,local.xml中

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema" 
     xmlns:oxf="http://www.orbeon.com/oxf/processors"> 
    <property as="xs:anyURI" name="oxf.fr.persistence.mysql.uri" value="/fr/service/mysql"/> 
    <property as="xs:string" name="oxf.fr.persistence.mysql.datasource" value="orbeonDS"/> 
    <property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="mysql"/> 
    <property as="xs:string" name="oxf.fr.detail.buttons.app1.*" value="close clear pdf email workflow-send"/> 
</properties> 

作爲一個新手到Orbeon網頁形式,所以我不知道我是否錯過了任何配置即可獲得這4.5

任何輸入修正來解決這個問題非常感謝。

+0

見下面我的答覆。 「在4.4中正常工作」是什麼意思?使用隨機ID或無ID訪問此URL時,您的預期行爲是什麼? – ebruchez

+0

感謝您的迴應,在4.4中,當我啓動'http:// localhost:8080/orbeon/fr/AppName/formName/edit'或任意隨機ID時,它以編輯模式打開表單,但後來不是發生在4.5(隨機ID)。 – stackuser

+0

同樣在4.4當我點擊保存按鈕時,它將使用網址中提供的隨機ID保存數據庫中的表格 – stackuser

回答

0

的URL看起來像:

http://localhost:8080/orbeon/fr/AppName/formName/edit/documentId 

是指從數據庫ID documentId加載表格數據。如果數據庫中沒有包含該ID的數據,則獲得「未找到頁面」錯誤是正確的行爲。

同樣,你永遠不應該能夠訪問:

http://localhost:8080/orbeon/fr/AppName/formName/edit 

沒有文件編號。獲得「未找到頁面」錯誤也是正確的。

打開窗體定義,而現有的數據,而不是使用:

http://localhost:8080/orbeon/fr/AppName/formName/new