I was trying to excute an ajax call on search button issue is 404 error.
Main form loads goods, lightbox(jquery works) and when clicking on search issue is 404, debugged to see if method gets call nothing beging called on ajax command button.
<h:form id="mainForm">
<h:commandButton onclick="showLig();" value="Find Person"/>
<div id="moreInfo" class="lightbox" style="display: none;">
<ui:include src="external.xhtml"/>
</div>
</h:form>
external xhtml
<h:inputText id="personSearch" value="#{bean.holdingValue}" ></h:inputText>
<h:commandButton value="Search">
<f:ajax render="@form" execute="personSearch" listener="#{controller.method}"/>
</h:commandButton>
<h:dataTable id="someTable" value="list" var="x">
blah..
</h:dataTable>