I am trying to learn navigation (Page Forward vs Page Redirect) in jsf 2.2. I came across this problem of URL update in jsf. I have written some tests and the URL is always update in my case.
page 1:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
template="components/defaultLayout.xhtml">
<ui:param name="bodyClass" value="container body-nomargin" />
<ui:define name="body">
<h1>Welcome </h1>
<h:panelGroup layout="block" styleClass="col-md-12">
<h:form>
<h:link outcome="detail" value="some value"> </h:link>
</h:form>
</h:panelGroup>
</ui:define>
</ui:composition>
detail page:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
template="components/defaultLayout.xhtml">
<ui:param name="bodyClass" value="container body-nomargin" />
<ui:define name="body">
<h:outputLabel value="Hello, world"/>
</ui:define>
</ui:composition>
1) Does this issue of URl not being updated even exists in jsf 2.2 anymore or am i referring to an outdated source here (source mentions it is for jsf 2.0 but i am guessing things would be the same for jsf 2.2. )?