Pessoal,
estou tentando rodar uma jsp usando jsf e estou com o seguinte problema.
Ao clicar no botão, ele não acessa o meu método que está no bean.
Já tentei mudar de request para session e nada.
segue o código do meu jsp e do bean.
[img]
|
|
|
|
<strong><t:outputText value="/"/></strong>
<t:inputText value="#{actMantemFiscal.bkb.dto.dataContrato}"
styleClass="campoTexto" maxlength="4" size="6"/>
<input type="text" name="ano" class="campoTexto"
maxlength="4" size="6"/>
</td>
</tr>
<tr>
<td>
<strong>Unidade Gestora:</strong>
</td>
<td>
<t:selectOneMenu value="#{actMantemFiscal.bkb.dto.unidadeGestora}"
styleClass="combo">
<f:selectItem itemValue="a" itemLabel=""/>
<f:selectItem itemValue="b" itemLabel="ADCOM"/>
<f:selectItem itemValue="c" itemLabel="IGCE-10"/>
<f:selectItem itemValue="d" itemLabel="ISC"/>
<f:selectItem itemValue="e" itemLabel="SECEX-1"/>
<f:selectItem itemValue="f" itemLabel="SECEX-2"/>
<f:selectItem itemValue="g" itemLabel="SECEX-3"/>
<f:selectItem itemValue="h" itemLabel="SECEX-4"/>
<f:selectItem itemValue="i" itemLabel="SECEX-5"/>
<f:selectItem itemValue="j" itemLabel="SECEX-6"/>
<f:selectItem itemValue="k" itemLabel="SECEX-AC"/>
<f:selectItem itemValue="l" itemLabel="SECEX-AL"/>
<f:selectItem itemValue="m" itemLabel="SECEX-AM"/>
<f:selectItem itemValue="n" itemLabel="SECEX-AP"/>
<f:selectItem itemValue="o" itemLabel="SECEX-BA"/>
<f:selectItem itemValue="p" itemLabel="SECEX-CE"/>
<f:selectItem itemValue="q" itemLabel="SECEX-ES"/>
<f:selectItem itemValue="r" itemLabel="SECEX-GO"/>
<f:selectItem itemValue="s" itemLabel="SECEX-MA"/>
<f:selectItem itemValue="t" itemLabel="SECEX-MG"/>
<f:selectItem itemValue="u" itemLabel="SECEX-MS"/>
<f:selectItem itemValue="v" itemLabel="SECEX-MT"/>
<f:selectItem itemValue="x" itemLabel="SECEX-PA"/>
<f:selectItem itemValue="z" itemLabel="SECEX-PB"/>
<f:selectItem itemValue="ab" itemLabel="SECEX-PE"/>
<f:selectItem itemValue="ac" itemLabel="SECEX-PI"/>
<f:selectItem itemValue="ad" itemLabel="SECEX-PR"/>
<f:selectItem itemValue="ae" itemLabel="SECEX-RJ"/>
<f:selectItem itemValue="af" itemLabel="SECEX-RN"/>
<f:selectItem itemValue="ag" itemLabel="SECEX-RO"/>
<f:selectItem itemValue="ah" itemLabel="SECEX-RR"/>
<f:selectItem itemValue="ai" itemLabel="SECEX-RS"/>
<f:selectItem itemValue="aj" itemLabel="SECEX-SC"/>
<f:selectItem itemValue="al" itemLabel="SECEX-SE"/>
<f:selectItem itemValue="am" itemLabel="SECEX-SP"/>
<f:selectItem itemValue="an" itemLabel="SECEX-TO"/>
<f:selectItem itemValue="ao" itemLabel="SECOB"/>
<f:selectItem itemValue="ap" itemLabel="SECOI"/>
<f:selectItem itemValue="aq" itemLabel="SEGEDAM"/>
<f:selectItem itemValue="ar" itemLabel="SEPLAN"/>
<f:selectItem itemValue="as" itemLabel="SETEC"/>
</t:selectOneMenu>
<t:commandButton action="#{actMantemFiscal.pesquisar}" value="Pesquisar"/>
<h:commandButton action="#{actMantemFiscal.pesquisar}"
value="Pesquisar" styleClass="botoes"/>
<h:messages showDetail="true"/>
[/img]
Classe:
[img]
public class ActMantemFiscal extends ActTcuAbstrata{
/**
-
FUNCAO_COMPUTACIONAL provisório. Não existe cadastrado
*/
private static final String FUNCAO_COMPUTACIONAL = “GERENCIAUNIDADE”;
private CtlMantemFiscal ctl;
private BkbMantemFiscal bkb;
private FacesContext contexto;
private Application aplicacao;
public ActMantemFiscal() throws Exception {
super (FUNCAO_COMPUTACIONAL);
contexto = FacesContext.getCurrentInstance();
aplicacao = contexto.getApplication();
bkb = (BkbMantemFiscal)aplicacao.createValueBinding("#{sessionScope.bkb}").getValue(contexto);
if (bkb == null) {
bkb = new BkbMantemFiscal();
aplicacao.createValueBinding("#{sessionScope.bkb}").setValue(contexto,
bkb);
}
}
public String pesquisar() throws Exception {
ctl = new CtlMantemFiscal();
bkb.setListaFiscais(ctl.recuperaHistoricoContrato());
aplicacao.createValueBinding("#{sessionScope.bkb}").setValue(contexto,
bkb);
return "historico";
}
[/img]
Coloquei um h: messages e ele deu a seguinte mensagem:
* Erro de conversão "_idJsp7": Ocorreu um erro de conversão.
* Erro de conversão "_idJsp9": Ocorreu um erro de conversão.
Que erro de conversão seria esse?
Aguardo socorro rsrs
|