8 Replies Latest reply on Mar 31, 2010 4:12 PM by Arno Hernach

    login-required="true" for all pages damages layout

    Robert Grampp Newbie
      Hi!

      I want all my pages only accessible if logged in.
      If I add

      <page view-id="/*" login-required="true">

      to my pages.xml I get the effect that the GUI layout is damaged/incomplete some way, e. g. the panel borders are missing, the GUI element positions are distorted - although the CSS file references are still in the HTML. Seems, rendering the webpage is interrupted.

      Any idea how I can accomplish what I want?

      The whole pages.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

             no-conversation-view-id="/home.xhtml"
             login-view-id="/login.xhtml">

          <page view-id="/*"
                login-required="true">

              <navigation>
                  <rule if-outcome="home">
                      <redirect view-id="/home.xhtml"/>
                  </rule>
              </navigation>
          </page>

          ... exceptions ...   
      </pages>

      Thanks!
      Regards, Robert