Reply To: Spring JSF with Pretty Faces

Splash Forums Rewrite Users Spring JSF with Pretty Faces Reply To: Spring JSF with Pretty Faces

#25462

Just create a class like this:

@Component
public class ApplicationConfigurationProvider extends HttpConfigurationProvider
{
   @Override
   public Configuration getConfiguration(ServletContext context)
   {
      return ConfigurationBuilder.begin()

         .addRule(Join.path("/login").to("/faces/login.xhtml"))

      ;
   }

   @Override
   public int priority()
   {
      return 0;
   }
}