I would like to use an ajax tag based on which page is currently shown. I am using JSF 2 and Primeface 3.5
If (currentPage = pageOne.xhtml){ do something } else { do something different }
My Source is looking like that:
<?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:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:m="http://java.sun.com/jsf/composite/components/mmnet"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:form id="customerSearchForm">
....
...
<c:if test=" ">
<p:ajax event="rowSelect" oncomplete="initInfoPage();"/>
</c:if>
....
...
what is the correct expression inside ?
test= ...
Is there a way to get which page is currently shown?
Regards LStrike