Passing Parameter With PrettyFaces

Today i want to share about Passing Parameter With PrettyFaces or sending parameter on Java Server Faces that use Primefaces and Prettyfaces library. sometimes, we need to pass parameter to the url of our jsf Page. there are three simple steps to do this approach. we need to configure url mapping on pretty-config.xml file, and pass parameter to the button in xhtml page. first, we need to add url mapping on pretty-config file. <url -mapping id= "newsForm"> <pattern value= "/newsForm/#{ id : newsAdmin.newsId }"></pattern> <view -id value= "/pages/admin/target/newsForm.jsf"></view> </url> and

Continue reading