Opa
Tenho o seguinte código:
<script>
function setarValorRadio(){
var filiais = document.getElementById("radioFiliais");
var rotas = document.getElementById("radioRotas");
var faixas = document.getElementById("radioFaixas");
var opcaoSelecionada = document.getElementById("form1:opcaoSelecionada");
if(filiais.checked){
myfaces_picklist_removeAllFromSelected('form1:faixasPreco_AVAILABLE','form1:faixasPreco_SELECTED','form1:faixasPreco_HIDDEN');
myfaces_picklist_removeAllFromSelected('form1:filialRotas_AVAILABLE','form1:filialRotas_SELECTED','form1:filialRotas_HIDDEN');
document.getElementById("form1:filiais_AVAILABLE").disabled = false;
document.getElementById("form1:filiais_SELECTED").disabled = false;
document.getElementById("form1:filialRotas_SELECTED").disabled = true;
document.getElementById("form1:filialRotas_AVAILABLE").disabled = true;
document.getElementById("form1:faixasPreco_SELECTED").disabled = true;
document.getElementById("form1:faixasPreco_AVAILABLE").disabled = true;
}
}
</script>
<tr>
<td valign="top">Filiais <input onclick="setarValorRadio()"
type="radio" value="radioFilias" name="radioOpcao"
id="radioFiliais" /></td>
<td colspan="3">
<s:selectManyPicklist disabled="true"
id="filiais" converter="filialConverter"
value="#{produtosPrecificadosMBean.filiaisSelecionadas}"
style="width:200px;height:150px;">
<f:selectItems value="#{utilMBean.filiais}" />
</s:selectManyPicklist>
</td>
</tr>
Quando eu deixo meu selectManyPickList desabilitado, o meu value não é reconhecido quando submeto para o MBEAN e se eu tirar o disabled=false, ele submete o value numa boa.
Alguém já fez algo parecido?
Valeu