Galera, tenho o componente selectManyListbox na minha tela e não estou conseguindo pegar a lista atualizada no back end.
Eu estou usando JSF 1.2 e JQuery tbm.
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<script src="../js/jquery-ui-1.8.17.custom/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function pickList(idComboBox1,idComboBox2){
$(idComboBox1).find("option").filter(":selected").each(function(i){
var objOption = $(this).clone();
$(idComboBox2).append(objOption);
$(this).remove();
});
return false;
}
</script>
<f:view>
<h:form id="frm">
<h:panelGrid columns="3">
<h:column>
<h:selectManyListbox size="4" style="width:150px;" id="select_teste1" >
<f:selectItems value="#{perfilUsuario.selectItemGrupoAcesso}" />
</h:selectManyListbox>
</h:column>
<h:column>
<h:commandButton id="bt_teste1" value=">>" onclick="return pickList('#frm\\:select_teste1','#frm\\:select_teste2')" />
<h:commandButton id="bt_teste2" value="<<" onclick="return pickList('#frm\\:select_teste2','#frm\\:select_teste1')" />
</h:column>
<h:column>
<h:selectManyListbox size="5" style="width:150" id="select_teste2" value="#{perfilUsuario.selectItemGrupoAcessoUsuario}">
<f:selectItems value="#{perfilUsuario.selectItemGrupoAcessoUsuario}" />
</h:selectManyListbox>
</h:column>
</h:panelGrid>
<h:commandButton value="Alterar" actionListener="#{perfilUsuario.alterar}" >
<f:param id="lista" name="list" value="#{perfilUsuario.selectItemGrupoAcessoUsuario}"/>
</h:commandButton>
</h:form>
</f:view>
</ui:composition>
Tentei pegar usando o UIComponent e UIParameter mas não funcionou.
Alguém sabe como fazer pra pegar o valor da lista?