Page 1 of 1

Spring hibernate MVC with primefaces --> post Url

Posted: 19 Apr 2017, 03:36
by rchiu5hk
I want to modify below code to have passing the current url to the going URL so that the target page will receive the parameters with back function to go back to previous url. But when I search in the web or here, I see some hints but have difficulty or unknown how to modify e.g. in model?? I want post method....

Code: Select all

String search = "ITS02020s_t";
ConfigurableNavigationHandler configurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
configurableNavigationHandler.performNavigation(search + "?faces-redirect=true");