Configure CAS Single Sign One in JSF PrimeFaces

Posted on Leave a commentPosted in Java

In this example we are goint to protect all the files that are in the folder protected in the site : http://sitioprueba.com/casexample For this porpouse we need a service of CAS, for this example we will use: https://servidorcas.sitio.com First of all you need to configurate the filter in web.xml file. <filter> <filter-name>CAS Single Sign Out Filter</filter-name> […]

Error PrimeFaces @PostConstruct se ejecuta varias veces

Posted on Leave a commentPosted in Java

Problema: En un controlador construido con Primefaces ya sea del tipo ViewScope o SessionScope cada vez que realiza un cambio a la página ésta vuelve a cargarse y se ejecuta nuevamente el método que se haya definido en @PostConstruct. Solución: En el archivo web.xml incluir los siguientes apartados: <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param>   <context-param> <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name> <param-value>false</param-value> […]