Strange page after adding Primefaces

0

After adding the dependencies of the Primefaces the project ignores my page /home.xhtml that is in the xml and shows a url /javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo every time I run the project.

Does anyone know how to solve it?

    
asked by anonymous 24.03.2015 / 14:25

2 answers

1

I was able to solve the problem by just overwriting the configure method of the WebSecurityConfigurerAdapter class of spring-security and leaving it as follows:

@Override
protected void configure(HttpSecurity http) throws Exception {
    http.csrf().disable();
    http
            .authorizeRequests()
            .antMatchers("/javax.faces.resource/**").permitAll() //Essa é alinha que faltava
            .anyRequest().authenticated()
            .and()
            .formLogin()
            .loginPage("/login.xhtml")
            .permitAll();
}
    
27.04.2015 / 12:27
1

Check your web.xml, in my I'm setting index.xhml as the starting page:

<welcome-file-list>
        <welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
    
25.03.2015 / 14:03