我想將一些變量值傳遞給pretty-config.xml配置文件中的view-id節點。對於樣本:如何將參數傳遞給Pretty-Faces中的view-id?
我想要做這樣的事情:
<url-mapping id="allReports">
<pattern value="/report/#{type}" />
<view-id value="/pages/report/#{type}.xhtml" />
</url-mapping>
但我得到的錯誤:
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in fragment at index 18: http://localhost/#{type}.xhtml
有人知道該怎麼做呢?
謝謝。
,但我不想查詢PARAM風格。路徑參數是。這是可能的 ? – abyteneverlie
更新後的回覆。 –