This won't work in such way.
First of all you need to have defined <f:viewParam>
on myOverviewPage.xhtml
facelet, eg:
<f:metadata>
<f:viewParam name="deletionSuccess" value="#{bean.deletionSuccess}"/>
</f:metadata>
I suppose you had it defined.
The easies way to pass params is use <h:button>
or <h:link>
on myDetailPage.xhtml
facelet, eg:
<h:button outcome="deletionSuccess">
<f:param name="deletionSuccess" value="#{true}"/>
</h:button>
but there is no invocation of public String delete()
method.
So if you want to have redirection and invocation of this method you should use <h:commandButton>
or <h:commandLink>
, eg:
<h:commandButton value="submit" action="#{bean.delete}">
<f:setPropertyActionListener target="#{bean.deletionSuccess}" value="#{true}" />
</h:commandButton>
--- UPDATE
Please keep correct file names in navigation-rule
<navigation-rule>
<from-view-id>/detail.xhtml</from-view-id>
<navigation-case>
<from-outcome>deletionSuccess</from-outcome>
<to-view-id>/overview.xhtml</to-view-id>
<redirect include-view-params="true"/>
</navigation-case>
</navigation-rule>
and please add to detail.xhtml
:
<p:confirmDialog global="true" showEffect="fade" >
<p:commandButton value="Yes" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/>
<p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/>
</p:confirmDialog>
or remove
<p:confirm header="Confirmation" message="Are you sure?"/>
from <p:commandLink>
tag