Ola pessoal,
Estou tentando mudar um processo que estava em radio button, pois descobri que nao precisa ser mais usado, pois so tem uma opcao para escolher, desta forma, queria tirar ele e colocar um valor padrao na tela, entao eu clicaria num botao direto…
codigo :
<h:panelGroup id="panelTipoMaterial">
<h:outputText id="msgErro" value="Favor escolher o material styleClass="msgError" rendered="#{! empty facesContext.maximumSeverity}"></h:outputText>
<t:selectOneRadio id="opcoesTipoMaterial" title="Tipo de material" forceId="true" forceIdIndex="true" layout="spread" value="#{lojaBean.tipoMaterial}" required="true">
<t:selectItems var="tipoFormaMaterial" value="#{escolheBean.listaTipoFormamaterial}"
itemLabel="#{tipoFormaMaterial.nome}" itemValue="#{tipoFormaMaterial.tipo}"/>
</t:selectOneRadio>
<t:dataTable id="listaTiposMaterial" columnClasses="opcaoMaterial, imgsMaterial, descricaoMaterial"
value="#{escolheBean.listaTipoFormamaterial}" var="tipo" rowIndexVar="statusAtual">
<t:column>
<t:radio for=":formMaterial:opcoesTipoMaterial" index="#{statusAtual}" />
</t:column>
<t:column>
<h:graphicImage url="/jpgs/#{tipo.tipo}.jpg"></h:graphicImage>
</t:column>
<t:column>
<h:outputText value="#{tipo.descricao}"></h:outputText>
</t:column>
</t:dataTable>
</h:panelGroup>
....
..
<h:panelGroup styleClass="acao">
<h:commandLink id="fecharSolicitacaoButton" title="Continuar - Escolha Material" action="#{lojaBean.selecionarTipoMaterial}">
<h:graphicImage url="/jpgs/bContinuar.jpg"/>
</h:commandLink>
</h:panelGroup>
Voces tem alguma orientacao de como posso fazer?
Grata