title: JSF get current page
body: <p>I would like to use an ajax tag based on which page is currently shown.
  I am using JSF 2 and Primeface 3.5</p>
  
  <blockquote>
    <p>If (currentPage = pageOne.xhtml){  do something } else { do something
    different }</p>
  </blockquote>
  
  <p>My Source is looking like that:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt;
  
      &lt;h:form id="customerSearchForm"&gt;
  ....
  ...
  
  &lt;c:if test=" "&gt;
  &lt;p:ajax event="rowSelect" oncomplete="initInfoPage();"/&gt;
  &lt;/c:if&gt;
  
  ....
  ...
  </code></pre>
  
  <p>what is the correct expression inside ?</p>
  
  <blockquote>
    <p>test= ... </p>
  </blockquote>
  
  <p>Is there a way to get which page is currently shown?</p>
  
  <p>Regards
  LStrike</p>