got rewrite working with primefaces outcome