[RESOLVIDO!] Problema com componente fantasma

3 respostas
Kleber-rr

Olá pessoal, boa tarde.

Estou com um problema na minha aplicação Web. Tenho uma pagina de cadastro de funcionarios e uma pagina de busca da seguinte forma:

Pagina de cadastro:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />	 </head>
<body>
<ui:composition template="/pages/template/template.xhtml">
    	<ui:define name="corpo">
    	<f:view> 
		<h:form id="cad-func">
			<h:panelGrid>
			<rich:panel>
			<f:facet name="header">
			Cadastro Funcionário
			</f:facet>
		
				<h:outputLabel for="orgaogestor" value="Órgão Gestor " id="outOG"/>
				<h:selectOneMenu id="orgaogestor" value="#{funcionarioHandler.orgaogestor.cod_orgaogestor}" binding="#{funcionarioHandler.orgaogestorSelecionado}" >
					<f:selectItem itemValue="" itemLabel="Selecione..." id="selog"/>
					<f:selectItems value="#{funcionarioHandler.orgaosgestores}" id="sog"/>
					<a4j:support event="onchange" ajaxSingle="true"	action="#{funcionarioHandler.actionCarregaUnidades}" reRender="orgaogestor,unidade" id="selAjaxUN"/>
				</h:selectOneMenu>
				
				<h:outputLabel for="unidade" value="Unidade " id="outUnid"/>
				<h:selectOneMenu id="unidade" value="#{funcionarioHandler.unidade.cod_unidade}" binding="#{funcionarioHandler.unidadeSelecionado}" >
					<f:selectItem itemValue="" itemLabel="Selecione..." id="sUni"/>
					<f:selectItems value="#{funcionarioHandler.unidades}" id="sU"/>
				</h:selectOneMenu>			

				<h:outputLabel value="Controle Social " id="outControl"/>
				<h:selectOneMenu id="controle" value="#{funcionarioHandler.controle.codControle}" binding="#{funcionarioHandler.controleSelecionado}">
					<f:selectItem itemValue="" itemLabel="Selecione..." id="sCt"/>
					<f:selectItems value="#{funcionarioHandler.controlesComboBox}" id="sC"/>
				</h:selectOneMenu>			
						
		<br/><br/>
		&lt;h:outputText value="#{msgs['funcionario-nome']}" id="msgs-nome"/&gt;
		&lt;h:inputText id="nome" 
			value="#{funcionarioHandler.funcionario.nome}"
			validator="#{funcionarioHandler.validaCase}" required="true"&gt;
			&lt;f:validateLength minimum="5" /&gt;
			&lt;a4j:support event="onblur" for="nome" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="nome" style="color: darkred"/&gt;
		<br />

		&lt;h:outputText value="Gestor? " id="msgs-gestor"/&gt;
			&lt;h:selectBooleanCheckbox value="#{funcionarioHandler.funcionario.gestor}"&gt;
			&lt;/h:selectBooleanCheckbox&gt;
		<br />

		&lt;h:outputText value="#{msgs['funcionario-cpf']}" id="msgs-cpf"/&gt;
		&lt;h:inputText id="cpf" 
			value="#{funcionarioHandler.funcionario.cpf}" required="true"&gt; 
			&lt;f:validateLength minimum="11" /&gt;
		&lt;a4j:support event="onblur" for="cpf" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="cpf" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-rg']}" id="msgs-rg"/&gt;
		&lt;h:inputText id="rg"
			value="#{funcionarioHandler.funcionario.rg}" required="true"&gt;
		&lt;a4j:support event="onblur" for="rg" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="rg" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-rg_exp']}" id="msgs-rgexp"/&gt;
		&lt;h:inputText id="rg_exp"
			value="#{funcionarioHandler.funcionario.rg_exp}" required="true"&gt;
		&lt;a4j:support event="onblur" for="rg_exp" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="rg_exp" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-nascimento']}" id="msgs-nascimento"/&gt;
		&lt;h:inputText id="nascimento" value="#{funcionarioHandler.funcionario.nascimento}" converterMessage="Data Inválida" required="true"&gt;
    		&lt;f:convertDateTime pattern="dd/MM/yyyy" /&gt;
		&lt;a4j:support event="onblur" for="nascimento" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="nascimento" style="color: darkred"/&gt;
		<br />
		
		
		&lt;h:outputText value="#{msgs['funcionario-endereco']}" id="msgs-endereco"/&gt;
		&lt;h:inputText id="endereco"
			value="#{funcionarioHandler.funcionario.endereco}" required="true"&gt;
		&lt;a4j:support event="onblur" for="endereco" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="endereco" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-numero']}" id="msgs-numero"/&gt;
		&lt;h:inputText id="numero"
			value="#{funcionarioHandler.funcionario.numero}" required="true"&gt;
		&lt;a4j:support event="onblur" for="numero" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="numero" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-bairro']}" id="msgs-bairro"/&gt;
		&lt;h:inputText id="bairro"
			value="#{funcionarioHandler.funcionario.bairro}" required="true"&gt;
		&lt;a4j:support event="onblur" for="bairro" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="bairro" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-municipiosrr_cod_municipiosrr']}" id="msgs-municipio"/&gt;
		&lt;h:selectOneMenu binding="#{funcionarioHandler.municipiosrrSelecionado}" id="munic"&gt;
				&lt;f:selectItem itemValue="0" itemLabel="Selecione" id="selmun"/&gt;
				&lt;f:selectItems value="#{funcionarioHandler.municipiosRRParaComboBox}" id="sm"/&gt;
		&lt;/h:selectOneMenu&gt;
		
		&lt;h:outputText value="#{msgs['funcionario-estados_cod_estados']}" id="msgs-estados"/&gt;		
		&lt;h:selectOneMenu binding="#{funcionarioHandler.estadosSelecionado}" id="uf"&gt;
				&lt;f:selectItem itemValue="1" itemLabel="Selecione" id="seluf"/&gt;
				&lt;f:selectItems value="#{funcionarioHandler.estadosParaComboBox}" id="suf"/&gt;
		&lt;/h:selectOneMenu&gt;
		
				
		&lt;h:outputText value="#{msgs['funcionario-cep']}" id="msgs-cep"/&gt;
		&lt;h:inputText id="cep"
			value="#{funcionarioHandler.funcionario.cep}" required="true"&gt;
		&lt;a4j:support event="onblur" for="cep" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="cep" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-fone_residencial']}" id="msgs-foneres"/&gt;
		&lt;h:inputText id="fone_residencial"
			value="#{funcionarioHandler.funcionario.fone_residencial}" required="true"&gt;
		&lt;a4j:support event="onblur" for="fone_residencial" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="fone_residencial" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-fone_comercial']}" id="msgs-fonecom"/&gt;
		&lt;h:inputText id="fone_comercial"
			value="#{funcionarioHandler.funcionario.fone_comercial}" required="true"&gt;
		&lt;a4j:support event="onblur" for="fone_comercial" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="fone_comercial" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-celular']}" id="msgs-cel"/&gt;
		&lt;h:inputText id="celular"
			value="#{funcionarioHandler.funcionario.celular}" required="true"&gt;
		&lt;a4j:support event="onblur" for="celular" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="celular" style="color: darkred"/&gt;
		<br />
		
		&lt;h:outputText value="#{msgs['funcionario-escolaridade_cod_escolaridade']}" id="msgs-esc"/&gt;
		&lt;h:selectOneMenu binding="#{funcionarioHandler.escolaridadeSelecionado}" id="esc"&gt;
				&lt;f:selectItem itemValue="2" itemLabel="Selecione" id="selesc"/&gt;
				&lt;f:selectItems value="#{funcionarioHandler.escolaridadeParaComboBox}" id="se"/&gt;
		&lt;/h:selectOneMenu&gt;
		
		&lt;h:outputText value="#{msgs['funcionario-cargo_cod_cargo']}" id="msgs-car"/&gt;
		&lt;h:selectOneMenu binding="#{funcionarioHandler.cargoSelecionado}" id="car"&gt;
				&lt;f:selectItem itemValue="3" itemLabel="Selecione" id="selcarg"/&gt;
				&lt;f:selectItems value="#{funcionarioHandler.cargosParaComboBox}" id="sc"/&gt;
		&lt;/h:selectOneMenu&gt;
		
		&lt;h:outputText value="#{msgs['funcionario-funcao']}" id="msgs-funcao"/&gt;
		&lt;h:inputText id="funcao"
			value="#{funcionarioHandler.funcionario.funcao}" required="true"&gt;
		&lt;a4j:support event="onblur" for="funcao" ajaxSingle="true"/&gt;
		&lt;/h:inputText&gt;
		&lt;rich:message for="funcao" style="color: darkred"/&gt;
		<br />
		
		
		
		&lt;h:outputText value="#{msgs['funcionario-cargahorariasemana_cod_chs']}" id="msgs-chs"/&gt;
		&lt;h:selectOneMenu binding="#{funcionarioHandler.chsSelecionado}" id="chs"&gt;
				&lt;f:selectItem itemValue="5" itemLabel="Selecione" id="selchs"/&gt;
				&lt;f:selectItems value="#{funcionarioHandler.chsParaComboBox}" id="schs"/&gt;
		&lt;/h:selectOneMenu&gt;

		&lt;h:commandButton value="Salvar" action="#{funcionarioHandler.salva}" /&gt;
		
			
			&lt;/rich:panel&gt;
		&lt;/h:panelGrid&gt;
	&lt;/h:form&gt;
	 &lt;a4j:status&gt;
                &lt;f:facet name="start"&gt;
                    &lt;h:graphicImage  value="/images/icons/ajax_process.gif"/&gt;
                &lt;/f:facet&gt;
            &lt;/a4j:status&gt;
	&lt;/f:view&gt;	
	&lt;rich:spacer height="10"/&gt;
	&lt;rich:separator height="1" lineType="dotted"/&gt;
	&lt;rich:spacer height="10"/&gt;
	&lt;/ui:define&gt;
	&lt;/ui:composition&gt;
	
	&lt;/body&gt;
&lt;/html&gt;
Pagina de busca:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"&gt;
 &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;    &lt;/head&gt;
     &lt;ui:composition template="/pages/template/template.xhtml"&gt;
    	&lt;ui:define name="corpo"&gt;
			&lt;h:form id="cad-func"&gt;
			&lt;h:panelGrid&gt;
&lt;rich:panel&gt;
&lt;f:facet name="header"&gt;Busca Funcionario&lt;/f:facet&gt;
		
	&lt;h:form id="Busca"&gt;

	
		&lt;h:outputLabel value="Órgão Gestor " id="outOGe"/&gt;
		&lt;h:selectOneMenu id="orgao_gestor" binding="#{funcionarioHandler.orgaogestorSelecionado}" &gt;
					&lt;f:selectItem itemValue="" itemLabel="Selecione..." id="seloge"/&gt;
					&lt;f:selectItems value="#{funcionarioHandler.orgaosgestores}" id="soge"/&gt;
				&lt;/h:selectOneMenu&gt;
				<br/>		<br/>		<br/>
	
			&lt;h:outputLabel value="Digite o nome: " id="busca-nome"/&gt;
 &lt;h:inputText id="nomeInput" value="#{funcionarioHandler.funcionario.nome}" /&gt;
 
 &lt;h:outputLabel value="Digite o CPF: "  id="busca-cpf"/&gt;
 &lt;h:inputText id="cpf" value="#{funcionarioHandler.funcionario.cpf}"/&gt;
 
 &lt;h:outputLabel value="Digite o RG: "  id="busca-rg"/&gt;
 &lt;h:inputText id="rg" value="#{funcionarioHandler.funcionario.rg}"/&gt;
 
&lt;h:commandButton value="Pesquisar" action="#{funcionarioHandler.getListaFuncionarios}" /&gt;
&lt;input type="button" value="Limpar" onclick="reset()"/&gt;  
						
	&lt;/h:form&gt;	
	&lt;rich:spacer height="10"/&gt;
	&lt;rich:separator height="1" lineType="dotted"/&gt;
	&lt;rich:spacer height="10"/&gt;
&lt;/rich:panel&gt;
 &lt;/h:panelGrid&gt;
	&lt;rich:spacer height="10"/&gt;
	&lt;rich:separator height="1" lineType="dotted"/&gt;
	&lt;rich:spacer height="10"/&gt;
	&lt;ui:include src="lista.xhtml" /&gt;
&lt;/h:form&gt;
		&lt;/ui:define&gt;
    &lt;/ui:composition&gt;
&lt;/html&gt;
Elas funcionam perfeitamente. O problema é que, se eu abrir a pagina de cadastro, e depois abrir a pagina de busca, ele me retorna esse erro:
javax.el.ELException: javax.faces.el.EvaluationException: AjaxUpdate component not found for id: :cad-func:selAjaxUN
Se eu remover o h:form name="cad-func", ele me retorna esse outro erro:
javax.el.ELException: java.lang.IllegalArgumentException: cad-func
Eu tenho várias outras paginas de cadastro e busca, mas apenas nessa eu tenho problemas...

Eae pessoal, o q pode ser??
Vlws

3 Respostas

Hebert_Coelho

Cara, dá uma procurada que em alguma parte do código vc deve estar acessando esse cara de modo indevido.

Talvez vc tenha que fazer um IF/ELSE ae para caso seja inclusão, não tente ler esse sujeito.

Kleber-rr
Então cara, o problema é que esse componente que ele menciona no erro, é de uma outra pagina. E na pagina de busca, em nenhum momento, ele chama esse componente. Quando eu abro o component tree do erro, ele me dá isso:
&lt;HtmlForm enctype="application/x-www-form-urlencoded" id="busca-func" prependId="true" rendered="true" submitted="false" transient="false"&gt;

        &lt;HtmlPanelGrid border="-[telefone removido]" columns="-[telefone removido]" id="j_id41" rendered="true" transient="false"&gt;

            &lt;HtmlPanel id="j_id42" rendered="true" transient="false"&gt;
                header

                Busca Funcionario

                &lt;HtmlForm enctype="application/x-www-form-urlencoded" id="Busca" prependId="true" rendered="true" submitted="false" transient="false"&gt;

                    &lt;HtmlOutputLabel escape="true" id="outOGe" rendered="true" transient="false" value="Órgão Gestor "/&gt;

                    &lt;HtmlSelectOneMenu disabled="false" id="orgao_gestor" immediate="false" localValueSet="false" readonly="false" rendered="true" required="false" transient="false" valid="true" binding="#{funcionarioHandler.orgaogestorSelecionado}"&gt;
                        org.ajax4jsf.ajax.SUPPORTonchange

                        &lt;HtmlAjaxSupport action="#{funcionarioHandler.actionCarregaUnidades}" actionExpression="#{funcionarioHandler.actionCarregaUnidades}" ajaxSingle="true" bypassUpdates="false" disableDefault="false" event="onchange" id="selAjaxUN" ignoreDupResponses="false" immediate="false" limitToList="false" rendered="true" requestDelay="-[telefone removido]" timeout="-[telefone removido]" transient="false"/&gt;

                        &lt;UISelectItem id="selog" itemDisabled="false" itemEscaped="true" itemLabel="Selecione..." itemValue="" rendered="true" transient="false"/&gt;

                        &lt;UISelectItems id="sog" rendered="true" transient="false"/&gt;

                        &lt;UISelectItem id="seloge" itemDisabled="false" itemEscaped="true" itemLabel="Selecione..." itemValue="" rendered="true" transient="false"/&gt;

                        &lt;UISelectItems id="soge" rendered="true" transient="false"/&gt;

                    &lt;/HtmlSelectOneMenu&gt;

                    <br/> <br/> <br/>

                    &lt;HtmlOutputLabel escape="true" id="busca-nome" rendered="true" transient="false" value="Digite o nome: "/&gt;

                    &lt;HtmlInputText disabled="false" id="nomeInput" immediate="false" localValueSet="false" maxlength="-[telefone removido]" readonly="false" rendered="true" required="false" size="-[telefone removido]" transient="false" valid="true"/&gt;

                    &lt;HtmlOutputLabel escape="true" id="busca-cpf" rendered="true" transient="false" value="Digite o CPF: "/&gt;

                    &lt;HtmlInputText disabled="false" id="cpf" immediate="false" localValueSet="false" maxlength="-[telefone removido]" readonly="false" rendered="true" required="false" size="-[telefone removido]" transient="false" valid="true"/&gt;

                    &lt;HtmlOutputLabel escape="true" id="busca-rg" rendered="true" transient="false" value="Digite o RG: "/&gt;

                    &lt;HtmlInputText disabled="false" id="rg" immediate="false" localValueSet="false" maxlength="-[telefone removido]" readonly="false" rendered="true" required="false" size="-[telefone removido]" transient="false" valid="true"/&gt;

                    &lt;HtmlCommandButton action="#{funcionarioHandler.getFuncionarios}" actionExpression="#{funcionarioHandler.getFuncionarios}" disabled="false" id="j_id45" immediate="false" readonly="false" rendered="true" transient="false" type="submit" value="Pesquisar"/&gt;

                    &lt;input type="button" value="Limpar" onclick="reset()"/&gt;

                &lt;/HtmlForm&gt;

                &lt;HtmlSpacer height="10" id="j_id47" rendered="true" title="" transient="false" width="1"/&gt;

                &lt;HtmlSeparator align="left" height="1" id="j_id48" lineType="dotted" rendered="true" transient="false" width=""/&gt;

                &lt;HtmlSpacer height="10" id="j_id49" rendered="true" title="" transient="false" width="1"/&gt;

            &lt;/HtmlPanel&gt;

        &lt;/HtmlPanelGrid&gt;

        &lt;HtmlSpacer height="10" id="j_id50" rendered="true" title="" transient="false" width="1"/&gt;

        &lt;HtmlSeparator align="left" height="1" id="j_id51" lineType="dotted" rendered="true" transient="false" width=""/&gt;

        &lt;HtmlSpacer height="10" id="j_id52" rendered="true" title="" transient="false" width="1"/&gt;

        &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" &gt;

        &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt; &lt;/head&gt; &lt;body&gt;

        &lt;HtmlDataTable border="0" cellpadding="0" cellspacing="0" columns="-[telefone removido]" componentState="org.ajax4jsf.component.SequenceDataAdaptor$1@1675ec4" first="0" footer="org.richfaces.component.html.HtmlDatascroller@17eb767" id="funcionariosGenerico" rendered="false" rowIndex="0" rows="5" transient="false" var="f"&gt;
            footer

            &lt;HtmlDatascroller ajaxSingle="true" align="center" boundaryControls="show" bypassUpdates="false" fastControls="show" fastStep="0" id="j_id73" ignoreDupResponses="true" immediate="false" limitToList="false" maxPages="10" renderIfSinglePage="true" rendered="true" requestDelay="-[telefone removido]" stepControls="show" timeout="-[telefone removido]" transient="false"/&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@3a9c52" id="j_id55" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id56" rendered="true" transient="false" value="Código"/&gt;

                &lt;HtmlOutputText escape="true" id="j_id57" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@1ecfcd9" id="j_id58" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id59" rendered="true" transient="false" value="Nome"/&gt;

                &lt;HtmlOutputText escape="true" id="j_id60" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@1cc1f09" id="j_id61" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id62" rendered="true" transient="false" value="CPF:"/&gt;

                &lt;HtmlOutputText escape="true" id="j_id63" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@9a47d" id="j_id64" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id65" rendered="true" transient="false" value="Gestor?"/&gt;

                &lt;HtmlOutputText escape="true" id="j_id66" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@10e284f" id="j_id67" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id68" rendered="true" transient="false" value="Órgão Gestor"/&gt;

                &lt;HtmlOutputText escape="true" id="j_id69" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

            &lt;UIColumn header="javax.faces.component.html.HtmlOutputText@788315" id="j_id70" rendered="true" transient="false"&gt;
                header

                &lt;HtmlOutputText escape="true" id="j_id71" rendered="true" transient="false" value="Excluir"/&gt;

                &lt;HtmlCommandButton disabled="false" id="j_id72" immediate="false" readonly="false" rendered="true" transient="false" type="submit" value="Excluir"/&gt;

                &lt;UIParameter id="excluir" name="cod" rendered="true" transient="false"/&gt;

            &lt;/UIColumn&gt;

        &lt;/HtmlDataTable&gt;

        &lt;/body&gt; &lt;/html&gt;

    &lt;/HtmlForm&gt;

    &lt;/div&gt; &lt;div id="rodape"&gt;

    &lt;hr/&gt;

    &lt;HtmlForm enctype="application/x-www-form-urlencoded" id="j_id77" prependId="true" rendered="true" submitted="false" transient="false"&gt;

        &lt;HtmlPanel id="j_id78" rendered="true" transient="false"&gt;

            &lt;HtmlPanelGrid border="-[telefone removido]" columns="-[telefone removido]" id="j_id79" rendered="true" transient="false"&gt;

                Copyright: Todos os Direitos Reservados.

                &lt;HtmlOutputText escape="true" id="j_id81" rendered="true" transient="false" value="Tue Aug 03 09:43:36 AMT 2010"/&gt;

            &lt;/HtmlPanelGrid&gt;

        &lt;/HtmlPanel&gt;

    &lt;/HtmlForm&gt;

    &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;

&lt;/AjaxViewRoot&gt;

Pode ver que em momento algum, ele chama o componente cad-f.

Kleber-rr

Resolvido. O problema era que eu estava utilizando um objeto selectOneMenu com “binding” ao invés de utilizar o “value”.
Vlws.

Criado 2 de agosto de 2010
Ultima resposta 4 de ago. de 2010
Respostas 3
Participantes 2