在seam-gen生成的應用程序中,我添加了登錄需要的屬性,以強制用戶登錄。之後,richfaces中的CSS樣式不會在成功驗證後在登錄頁面本身或其他頁面中加載。 (應用程序無法使用)在pages.xml中添加登錄需要樣式不再加載
<page view-id="*" login-required="true">
<navigation>
<rule if-outcome="home">
<redirect view-id="/home.xhtml" />
</rule>
</navigation>
</page>
我在遇到此問題後返回了components.xml中的標準設置。
<drools:rule-base name="securityRules">
<drools:rule-files>
<value>/security.drl</value>
</drools:rule-files>
</drools:rule-base>
<security:rule-based-permission-resolver security-rules="#{securityRules}"/>
<security:identity authenticate-method="#{authenticator.authenticate}" />
縫版本2.1.2
任何想法我可以做的就是樣式背面或替代強制用戶登錄的所有網頁上?謝謝
感謝您的回覆。我知道這種行爲,但爲什麼成功驗證後不提供樣式? – stacker 2010-10-26 16:16:46
嘗試強制瀏覽器登錄後重新加載完整? – 2010-10-26 16:19:50