title: why sometimes UI in my pages sometimes appears sometimes does not appear?
body: <p>i've little problem <br/></p>
  
  <p>why sometimes UI in page.jsf, appears sometimes does not appear... <br/>
  and i didn't get any error in there<br/></p>
  
  <p>i'm using : <br/></p>
  
  <p>netbeans 6.9.1 <br/>
  JSF 2.0 <br/>
  primefaces 3.1.1 <br/>
  springframework 3.0.2 <br/>
  glassfish server 3.0 <br/></p>
  
  <p>i means : i can't load my primefaces, javascript and css in jsf.page <br/>
  <strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
      &lt;param-value&gt;Production&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/app-config.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.FACELETS_LIBRARIES&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/springsecurity.taglib.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;filter&gt;
      &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
      &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/app-config.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;faces/index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>security.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;b:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:b="http://www.springframework.org/schema/beans"
  xmlns:s="http://www.springframework.org/schema/security"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/security
  http://www.springframework.org/schema/security/spring-security-3.0.xsd"&gt;
  
  &lt;http auto-config="true" use-expressions="true"&gt;
  
      &lt;intercept-url pattern="/assets/previews/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/assets/thumbs/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/css/**" access="permitAll"/&gt;
      &lt;intercept-url pattern="/design/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/images/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/js/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/pageAllNews/**" access="permitAll" /&gt;
  
      &lt;intercept-url pattern="/pageLogin/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/resources/css/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/resources/skins/tn3/**" access="permitAll" /&gt;
      &lt;intercept-url pattern="/templates/**" access="permitAll"/&gt;
      &lt;intercept-url pattern="/userPage/**" access="permitAll" /&gt;
  
      &lt;intercept-url pattern="/**" access="hasRole('ROLE_ADMIN')"/&gt;
      &lt;intercept-url pattern="/**" access="hasRole('ROLE_USER')"/&gt;
      &lt;intercept-url pattern="/**" access="hasAnyRole('ROLE_ADMIN','ROLE_USER')"/&gt;
  
      &lt;form-login login-processing-url="/j_spring_security_check"
                  default-target-url="/userPage/home.jsf"
                  login-page="/userPage/home.jsf"
                  authentication-failure-url="/userPage/test.jsf"/&gt;
      &lt;logout logout-success-url="/userPage/home.jsf"/&gt;
      &lt;remember-me /&gt;
  
  &lt;/http&gt;
  
  &lt;authentication-manager&gt;
      &lt;authentication-provider&gt;
          &lt;password-encoder hash="md5"/&gt;
          &lt;jdbc-user-service data-source-ref="dataSource" /&gt;
      &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  
  &lt;/b:beans&gt;
  </code></pre>
  
  <p>thx, need your help &amp; suggest <br/>
  agungdmt </p>