Boa noite a todos!
Estou com um problema com um a4j:commandLink que não executa o action e actionListener,
alguém já passou por isso?
segue abaixo código:
<jsp:root version="2.1" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:rich="http://richfaces.org/rich" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<webuijsf:page id="page1">
<webuijsf:html id="html1">
<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible"/>
<webuijsf:head id="head1">
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
<webuijsf:link id="link2" url="/resources/styles.css"/>
<webuijsf:script url="/resources/js/Contratacao.js"/>
<script language="javascript">
function s2(param) {
via2Selecionado(param);
}
function openConfirmInsc() {
//alert("a");
window.open('/CO-Client/faces/ConfirmInscricao.jsp', '', 'scrollbars=yes, resizable=yes, menubar=1', 'strWindowFeatures');
//alert("b");
}
</script>
</webuijsf:head>
<webuijsf:body id="body1" style="-rave-layout: grid; background-color: rgb(219, 232, 246); vertical-align: middle;">
<a4j:form>
<a4j:jsFunction name="inscricaoSelecionado">
<a4j:actionparam assignTo="#{SegundaVia.contcargnum}" name="cocontcarg"/>
</a4j:jsFunction>
<a4j:jsFunction name="via2Selecionado">
<a4j:actionparam assignTo="#{SegundaVia.inscnum}" name="inscnum"/>
</a4j:jsFunction>
</a4j:form>
<webuijsf:form id="form1">
<table align="center" border="0">
<tr>
<td>
<jsp:directive.include file="/menu/MenuTopo.jspf"/>
<br/>
<br/>
</td>
</tr>
<tr>
<td height="20px" align="left"><b>Minhas Inscrições (Segunda Via)</b></td></tr>
<tr>
<td>
<a4j:region rendered="true" renderRegionOnly="true" id="reformulario">
<a4j:outputPanel ajaxRendered="false" id="oPformulario">
<table align="center" border="0" style="z-index: 500; border-width: 2px; border-style: solid; border-color: rgb(163, 193, 193) rgb(163, 193, 193) rgb(163, 193, 193) rgb(163, 193, 193); width: 550px;">
<tr>
<td align="center">
<webuijsf:pageAlert id="alert1" style="width: 554px; align: left"
type="#{SegundaVia.alertType}" rendered="#{not empty SegundaVia.alertSummary}"
summary="#{SegundaVia.alertSummary}" detail="#{SegundaVia.alertDetail}" title="#{SegundaVia.alertTitle}"/>
</td>
</tr>
<tr>
<td width="125px;" align="right" height="25px;">
<b><h:outputText id="oTprocesso" value="Proc. Seletivo *"/></b>
</td>
<td valign="middle">
<webuijsf:dropDown id="dDcontnum" items="#{SegundaVia.dropDowncont.options}" selected="#{SegundaVia.contnum}" >
<a4j:support event="onChange" reRender="dtList" rendered="true"/>
</webuijsf:dropDown>
<a4j:status id="statusT" for="reformulario" forceId="statusT">
<f:facet name="start">
<h:graphicImage value="/resources/imagens/ajax_process.gif"/>
</f:facet>
</a4j:status>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<b>Secretaria - Num. Inscrição - Cargo</b>
<rich:dataList id="dtList" rows="30" value="#{SegundaVia.listInsc}" var="list" >
<a4j:commandLink onclick="s2(#{list.inscnum});" actionListener="#{managed$FichaInscricaoSessionBean.prepararSegundaViaInscricao(list.inscnum)}" oncomplete="openConfirmInsc();" value="#{list.contcargnum.contnum.userorgao} - #{list.inscnum} - #{list.contcargnum.cargnum.cargdescr}" />
<br/>
<br/>
</rich:dataList>
</td>
</tr>
</table>
</a4j:outputPanel>
</a4j:region>
</td>
</tr>
</table>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>