Ola pessoal estou tentando redirecionar uma tela que é composta por alguns campos do tipo decimal quando ela for mostrada eu preciso ocultar todos os campos que nao obtiverem algum valor,mas acontece o seguinte,este tipo de campo quando nao tem nenhum valor o padrao sempre e mostrar 0.0 entao n consigo implementar isso de nenhuma forma,alguem teria alguma idéia?
Aqui esta a página com os campos:
<!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:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head><title>Etiqueta</title>
<f:metadata>
<f:viewParam name = "id_et" value = "#{etiquetaBean.etiquetaSelecionada.id_etiq}"/>
</f:metadata>
</h:head>
<ui:composition template="/template/interna.xhtml">
<ui:define name="titulo">Etiquetas</ui:define>
<ui:define name="corpo">
<h:form id = "formCadastroEtiq">
<p:messages id="formMessages"
autoUpdate="true" showDetail="true"
closable="true"/>
<div class = "ui-fluid">
<p:panelGrid columns = "2" styleClass="ui-panelgrid-blank">
<p:outputLabel for = "idEtiq" value = "Id Etiqueta:"/>
<p:inputText id = "idEtiq" required = "true"
maxlength = "20" value = "#{etiquetaBean.iniciar().id_etiq}"
disabled="#{etiquetaBean.opcao()}"/>
<p:outputLabel for = "codEmp" value = "Código Empresa:"/>
<p:inputText id = "codEmp" required = "true"
maxlength="20" value = "#{etiquetaBean.iniciar().cod_empresa}"
disabled="#{etiquetaBean.opcao()}"/>
<p:outputLabel for = "codFi" value = "Código Filial:"/>
<p:inputText id = "codFi" required = "true"
maxlength="20" value = "#{etiquetaBean.iniciar().cod_filial}"
disabled = "#{etiquetaBean.opcao()}"
/>
<p:outputLabel for = "codUn" value = "Código Unidade:"/>
<p:inputText id = "codUn" required="true"
maxlength="20" value = "#{etiquetaBean.iniciar().cod_unidade}"
disabled="#{etiquetaBean.opcao()}"/>
<p:outputLabel for = "idCh1" rendered="#{etiquetaBean.etiquetas.char_001 eq null}" value = "Char_001:"/>
<p:inputText id = "idCh1" required = "true"
rendered="#{etiquetaBean.iniciar().char_001 eq null}"
maxlength="40" value = "#{etiquetaBean.iniciar().char_001}"/>
<p:outputLabel for = "idCh2" rendered="#{not empty etiquetaBean.etiquetas.char_002}" value = "Char_002:"/>
<p:inputText id = "idCh2" required = "true"
rendered="#{not empty etiquetaBean.etiquetas.char_002}"
maxlength="40" value = "#{etiquetaBean.iniciar().char_002}" />
<p:outputLabel for = "idCh3" rendered="#{not empty etiquetaBean.etiquetas.char_003}" value = " Char_003:"/>
<p:inputText id = "idCh3" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_003}"
value = "#{etiquetaBean.iniciar().char_003}"/>
<p:outputLabel for = "idCh4" rendered="#{not empty etiquetaBean.etiquetas.char_004}" value = " Char_004:"/>
<p:inputText id = "idCh4" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_004}"
value = "#{etiquetaBean.iniciar().char_004}"/>
<p:outputLabel for = "idCh5" rendered="#{not empty etiquetaBean.etiquetas.char_005}" value = " Char_005:"/>
<p:inputText id = "idCh5" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_005}"
value = "#{etiquetaBean.iniciar().char_005}"/>
<p:outputLabel for = "idCh6" rendered="#{not empty etiquetaBean.etiquetas.char_006}" value = " Char_006:"/>
<p:inputText id = "idCh6" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_006}"
value = "#{etiquetaBean.iniciar().char_006}"/>
<p:outputLabel for = "idCh7" rendered="#{not empty etiquetaBean.etiquetas.char_007}" value = " Char_007:"/>
<p:inputText id = "idCh7" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_007}"
value = "#{etiquetaBean.iniciar().char_007}"/>
<p:outputLabel for = "idCh8" rendered="#{not empty etiquetaBean.etiquetas.char_008}" value = " Char_008:"/>
<p:inputText id = "idCh8" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_008}"
value = "#{etiquetaBean.iniciar().char_008}"/>
<p:outputLabel for = "idCh9" rendered="#{not empty etiquetaBean.etiquetas.char_009}" value = " Char_009:"/>
<p:inputText id = "idCh9" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_009}"
value = "#{etiquetaBean.iniciar().char_009}"/>
<p:outputLabel for = "idCh10" rendered="#{not empty etiquetaBean.etiquetas.char_010}" value = " Char_010:"/>
<p:inputText id = "idCh10" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_010}"
value = "#{etiquetaBean.iniciar().char_010}"/>
<p:outputLabel for = "idCh11" rendered="#{not empty etiquetaBean.etiquetas.char_011}" value = " Char_011:"/>
<p:inputText id = "idCh11" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_011}"
value = "#{etiquetaBean.iniciar().char_011}"/>
<p:outputLabel for = "idCh12" rendered="#{not empty etiquetaBean.etiquetas.char_012}" value = " Char_012:"/>
<p:inputText id = "idCh12" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_012}"
value = "#{etiquetaBean.iniciar().char_012}"/>
<p:outputLabel for = "idCh13" rendered="#{not empty etiquetaBean.etiquetas.char_013}" value = " Char_013:"/>
<p:inputText id = "idCh13" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_013}"
value = "#{etiquetaBean.iniciar().char_013}"/>
<p:outputLabel for = "idCh14" rendered="#{not empty etiquetaBean.etiquetas.char_014}" value = " Char_014:"/>
<p:inputText id = "idCh14" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_014}"
value = "#{etiquetaBean.iniciar().char_014}"/>
<p:outputLabel for = "idCh15" rendered="#{not empty etiquetaBean.etiquetas.char_015}" value = " Char_015:"/>
<p:inputText id = "idCh15" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_015}"
value = "#{etiquetaBean.iniciar().char_015}"/>
<p:outputLabel for = "idCh16" rendered="#{not empty etiquetaBean.etiquetas.char_016}" value = " Char_016:"/>
<p:inputText id = "idCh16" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_016}"
value = "#{etiquetaBean.iniciar().char_016}"/>
<p:outputLabel for = "idCh17" rendered="#{etiquetaBean.etiquetas.char_017 eq null}" value = " Char_017:"/>
<p:inputText id = "idCh17" required = "true"
maxlength="40"
rendered="#{etiquetaBean.etiquetas.char_017 eq null}"
value = "#{etiquetaBean.iniciar().char_017}"/>
<p:outputLabel for = "idCh18" rendered="#{not empty etiquetaBean.etiquetas.char_018}" value = " Char_018:"/>
<p:inputText id = "idCh18" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_018}"
value = "#{etiquetaBean.iniciar().char_018}"/>
<p:outputLabel for = "idCh19" rendered="#{not empty etiquetaBean.etiquetas.char_019}" value = " Char_019:"/>
<p:inputText id = "idCh19" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_019}"
value = "#{etiquetaBean.iniciar().char_019}"/>
<p:outputLabel for = "idCh20" rendered="#{not empty etiquetaBean.etiquetas.char_020}" value = " Char_020:"/>
<p:inputText id = "idCh20" required = "true"
maxlength="40"
rendered="#{not empty etiquetaBean.etiquetas.char_020}"
value = "#{etiquetaBean.iniciar().char_020}"/>
<p:outputLabel for = "idInt1" rendered="#{etiquetaBean.iniciar().int_001 != 0}" value = "Int_001:"/>
<p:inputText id = "idInt1" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_001 != 0}"
value = "#{etiquetaBean.iniciar().int_001}"/>
<p:outputLabel for = "idInt2" rendered="#{etiquetaBean.iniciar().int_002 != 0}" value = "Int_002:"/>
<p:inputText id = "idInt2" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_002 != 0}"
value = "#{etiquetaBean.iniciar().int_002}"/>
<p:outputLabel for = "idInt3" rendered="#{etiquetaBean.iniciar().int_003 != 0}" value = "Int_003:"/>
<p:inputText id = "idInt3" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_003 != 0}"
value = "#{etiquetaBean.iniciar().int_003}"/>
<p:outputLabel for = "idInt4" rendered="#{etiquetaBean.iniciar().int_004 != 0}" value = "Int_004:"/>
<p:inputText id = "idInt4" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_004 != 0}"
value = "#{etiquetaBean.iniciar().int_004}"/>
<p:outputLabel for = "idInt5" rendered="#{etiquetaBean.iniciar().int_005 != 0}" value = "Int_005:"/>
<p:inputText id = "idInt5" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_005 != 0}"
value = "#{etiquetaBean.iniciar().int_005}"/>
<p:outputLabel for = "idInt6" rendered="#{etiquetaBean.iniciar().int_006 != 0}" value = "Int_006:"/>
<p:inputText id = "idInt6" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_006 != 0}"
value = "#{etiquetaBean.iniciar().int_006}"/>
<p:outputLabel for = "idInt7" rendered="#{etiquetaBean.iniciar().int_007 != 0}" value = "Int_007:"/>
<p:inputText id = "idInt7" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_007 != 0}"
value = "#{etiquetaBean.iniciar().int_007}"/>
<p:outputLabel for = "idInt8" rendered="#{etiquetaBean.iniciar().int_008 != 0}" value = "Int_008:"/>
<p:inputText id = "idInt8" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_008 != 0}"
value = "#{etiquetaBean.iniciar().int_008}"/>
<p:outputLabel for = "idInt9" rendered="#{etiquetaBean.iniciar().int_009 != 0}" value = "Int_009:"/>
<p:inputText id = "idInt9" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_009 != 0}"
value = "#{etiquetaBean.iniciar().int_009}"/>
<p:outputLabel for = "idInt10" rendered="#{etiquetaBean.iniciar().int_010 != 0}" value = "Int_010:"/>
<p:inputText id = "idInt10" required = "true"
maxlength="40"
rendered="#{etiquetaBean.iniciar().int_010 != 0}"
value = "#{etiquetaBean.iniciar().int_010}"/>
<p:outputLabel for = "idDec1" rendered = "#{etiquetaBean.iniciar().dec_001 != 0.0}" value = "Dec_001:"/>
<p:inputText id = "idDec1" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_001 != 0}"
value = "#{etiquetaBean.iniciar().dec_001}"/>
<p:outputLabel for = "idDec2" rendered="#{etiquetaBean.iniciar().dec_002 != 0.0}" value = "Dec_002:"/>
<p:inputText id = "idDec2" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_002 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_002}"/>
<p:outputLabel for = "idDec3" rendered="#{etiquetaBean.iniciar().dec_003 != 0.0}" value = "Dec_003:"/>
<p:inputText id = "idDec3" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_003 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_003}"/>
<p:outputLabel for = "idDec4" rendered="#{etiquetaBean.iniciar().dec_004 != 0.0}" value = "Dec_004:"/>
<p:inputText id = "idDec4" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_004 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_004}"/>
<p:outputLabel for = "idDec5" rendered="#{etiquetaBean.iniciar().dec_005 != 0.0}" value = "Dec_005:"/>
<p:inputText id = "idDec5" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_005 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_005}"/>
<p:outputLabel for = "idDec6" rendered="#{etiquetaBean.iniciar().dec_006 != 0.0}" value = "Dec_006:"/>
<p:inputText id = "idDec6" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_006 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_006}"/>
<p:outputLabel for = "idDec7" rendered="#{etiquetaBean.iniciar().dec_007 != 0.0}" value = "Dec_007:"/>
<p:inputText id = "idDec7" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_007 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_007}"/>
<p:outputLabel for = "idDec8" rendered="#{etiquetaBean.iniciar().dec_008 != 0.0}" value = "Dec_008:"/>
<p:inputText id = "idDec8" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_008 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_008}"/>
<p:outputLabel for = "idDec9" rendered = "#{etiquetaBean.iniciar().dec_009 != 0.0}" value = "Dec_009:"/>
<p:inputText id = "idDec9" required = "true"
maxlength="40"
rendered = "#{etiquetaBean.iniciar().dec_009 != 0.0}"
value = "#{etiquetaBean.iniciar().dec_009}"/>
<p:outputLabel for = "idDec10" value = "Dec_010:"/>
<p:inputText id = "idDec10" required = "true"
maxlength="40"
value = "#{etiquetaBean.iniciar().dec_010}"/>
<p:commandButton action = "#{etiquetaBean.salvar()}" value="Salvar"/>
</p:panelGrid>
</div>
</h:form>
</ui:define>
</ui:composition>
</html>