6 Replies Latest reply on Jun 8, 2009 7:08 AM by ilya_shaikovsky

    skin issue

    timbooo

      hi there,

      i'm having the following situation.

      jsf 1.2 + rf 3.3.1GA.
      when i login to my webclient i have one page. the main part on the right side is a a4j:include and gets rerendered with different pages.

      http://img40.imageshack.us/img40/5577/rfskin.png

      when i am there, it looks like in the first picture. only after a page refresh it looks like i should look.

      any ideas?


      thanks in advance
      tim

        • 1. Re: skin issue
          ilya_shaikovsky

          web.xml?

          • 2. Re: skin issue
            timbooo

             

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app id="Tiink-preview" xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
             version="2.4">
            
             <description>VA Admin</description>
            
             <display-name>VA Admin</display-name>
             <session-config>
             <session-timeout>30</session-timeout>
             </session-config>
            
             <context-param>
             <param-name>contextConfigLocation</param-name>
             <param-value>/WEB-INF/ldapContext.xml</param-value>
             </context-param>
            
             <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>server</param-value>
             </context-param>
            
             <context-param>
             <param-name>javax.faces.CONFIG_FILES</param-name>
             <param-value>/WEB-INF/faces-config.xml</param-value>
             </context-param>
            
             <context-param>
             <param-name>org.ajax4jsf.SKIN</param-name>
             <param-value>darkX</param-value>
             </context-param>
            
             <context-param>
             <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
             <param-value>.xhtml</param-value>
             </context-param>
            
             <filter>
             <filter-name>SecurityFilter</filter-name>
             <filter-class>com.filter.SecurityFilter</filter-class>
             </filter>
            
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
            
             <filter-mapping>
             <filter-name>SecurityFilter</filter-name>
             <url-pattern>/pages/*</url-pattern>
             </filter-mapping>
            
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             <dispatcher>ERROR</dispatcher>
             </filter-mapping>
            
             <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
             </servlet>
            
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.jsf</url-pattern>
             </servlet-mapping>
            
             <login-config>
             <auth-method>BASIC</auth-method>
             </login-config>
            
             <listener>
             <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
             </listener>
            
            </web-app>
            


            • 3. Re: skin issue
              timbooo

              no ideas?

              any hints will be appreciated.
              tim

              • 4. Re: skin issue
                ilya_shaikovsky

                RichFaces filter and mapping should be first declared.

                • 5. Re: skin issue
                  timbooo

                   

                  <?xml version="1.0" encoding="UTF-8"?>
                  <web-app id="Tiink-preview" xmlns="http://java.sun.com/xml/ns/j2ee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                   version="2.4">
                  
                   <display-name>VA Admin</display-name>
                  
                   <context-param>
                   <param-name>contextConfigLocation</param-name>
                   <param-value>/WEB-INF/ldapContext.xml</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                   <param-value>server</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>javax.faces.CONFIG_FILES</param-name>
                   <param-value>/WEB-INF/faces-config.xml</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>org.ajax4jsf.SKIN</param-name>
                   <param-value>darkX</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                   <param-value>.xhtml</param-value>
                   </context-param>
                  
                   <filter>
                   <display-name>RichFaces Filter</display-name>
                   <filter-name>richfaces</filter-name>
                   <filter-class>org.ajax4jsf.Filter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>richfaces</filter-name>
                   <servlet-name>Faces Servlet</servlet-name>
                   <dispatcher>FORWARD</dispatcher>
                   <dispatcher>REQUEST</dispatcher>
                   <dispatcher>INCLUDE</dispatcher>
                   <dispatcher>ERROR</dispatcher>
                   </filter-mapping>
                  
                   <filter>
                   <filter-name>SecurityFilter</filter-name>
                   <filter-class>com.filter.SecurityFilter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>SecurityFilter</filter-name>
                   <url-pattern>/pages/*</url-pattern>
                   </filter-mapping>
                  
                   <listener>
                   <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
                   </listener>
                  
                   <servlet>
                   <servlet-name>Faces Servlet</servlet-name>
                   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                   <load-on-startup>1</load-on-startup>
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>*.jsf</url-pattern>
                   </servlet-mapping>
                  
                   <session-config>
                   <session-timeout>30</session-timeout>
                   </session-config>
                  
                   <login-config>
                   <auth-method>BASIC</auth-method>
                   </login-config>
                  
                  </web-app>
                  


                  this is my new web.xml
                  but there are still no changes.

                  additionally my faces-config.xml
                  <?xml version="1.0" encoding="UTF-8"?>
                  <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
                   xmlns:xi="http://www.w3.org/2001/XInclude" 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-facesconfig_1_2.xsd">
                  
                   <managed-bean>
                   <managed-bean-name>bean</managed-bean-name>
                   <managed-bean-class>com.gui.BaseBean</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>mainInclude</property-name>
                   <value>/pages/blank.xhtml</value>
                   </managed-property>
                   <managed-property>
                   <property-name>ldapAction</property-name>
                   <value>#{ldapAction}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>userBean</managed-bean-name>
                   <managed-bean-class>com.gui.UserBean</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>bean</property-name>
                   <value>#{bean}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>orgUnitBean</managed-bean-name>
                   <managed-bean-class>
                   com.gui.OrganizationalUnitBean</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>bean</property-name>
                   <value>#{bean}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>ldapAction</managed-bean-name>
                   <managed-bean-class>
                   com.persistence.LDAPAction</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>ldapTemplate</property-name>
                   <value>#{ldapTemplate}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>treeBean</managed-bean-name>
                   <managed-bean-class>com.gui.TreeBean</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>bean</property-name>
                   <value>#{bean}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>userBean</property-name>
                   <value>#{userBean}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>orgUnitBean</property-name>
                   <value>#{orgUnitBean}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>authBean</managed-bean-name>
                   <managed-bean-class>
                   com.gui.AuthenticationBean</managed-bean-class>
                   <managed-bean-scope>request</managed-bean-scope>
                   <managed-property>
                   <property-name>ldapTemplate</property-name>
                   <value>#{ldapTemplate}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>contextSource</property-name>
                   <value>#{contextSource}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>bean</property-name>
                   <value>#{bean}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>treeBean</property-name>
                   <value>#{treeBean}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <managed-bean>
                   <managed-bean-name>searchBean</managed-bean-name>
                   <managed-bean-class>
                   com.gui.SearchBean</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
                   <managed-property>
                   <property-name>ldapAction</property-name>
                   <value>#{ldapAction}</value>
                   </managed-property>
                   <managed-property>
                   <property-name>bean</property-name>
                   <value>#{bean}</value>
                   </managed-property>
                   </managed-bean>
                  
                   <navigation-rule>
                   <from-view-id>/login.xhtml</from-view-id>
                   <navigation-case>
                   <from-action>#{authBean.login}</from-action>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/pages/main.xhtml</to-view-id>
                   <redirect />
                   </navigation-case>
                   </navigation-rule>
                  
                   <application>
                   <locale-config>
                   <default-locale>en</default-locale>
                   <supported-locale>de</supported-locale>
                   </locale-config>
                   <message-bundle>com.resources.msg</message-bundle>
                   </application>
                  
                   <application>
                   <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
                   <locale-config />
                   </application>
                  
                   <application>
                   <variable-resolver>
                   org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
                   </application>
                  
                   <factory />
                   <lifecycle />
                  
                  </faces-config>


                  • 6. Re: skin issue
                    ilya_shaikovsky

                    seems the same issue caused by autorization requests.

                    https://jira.jboss.org/jira/browse/RF-2316