Good morning in my timezone,
I am adding some features in a JSF application, i add the following code
<h:link outcome="nameOut1.innerName" >
<f:param name="idX" value="#{xbean.idElement}"/>
<f:param name="idY" value="#{xBean.param1.param2.id}"/>
</h:link>
And i change it by this one
<h:commandLink action="#{xBean.validateBeforeClose}" >
<f:param name="idX" value="#{xbean.idElement}"/>
<f:param name="idY" value="#{xBean.param1.param2.id}"/>
</h:commandLink>
And in the bean
public String validateBeforeClose(){
if (isValidToRemove()) {
setValidationToRemove(true);
return "";
}else{
return "nameOut1.innerName";
}
}
if the first condition is true then it come back to the same View, and displays a popupWindow, if this condition is not met , then return the same outcome that the old link tag was setting. The problem is : True the link the h:link tag the parameters are sent, i see that in the URL, but through the action the parameters are not sent. in the faces-config i have the following configuration
<navigation-case>
<from-outcome>nameOut1.innerName</from-outcome>
<to-view-id>/folder1/folder2/view2.xhtml</to-view-id>
<redirect include-view-params="true">
</redirect>
</navigation-case>
Why is this happening ?
Thanks in advance Best regards