<rich:colums action problem
gallimazo Mar 2, 2011 9:40 AMHi, I'm using <rich:columns component with a4j:support to create a datatable. I'm try to capture an event on each cell and execute an action. The action is executed only the first time on the first cell. When I try on a second cell the onbsubmit event is lunched, the onbeforedomupdate is lanched and oncomplete is launched too but the action is not executed.
Could you please help me?
Thanks in advance,
Gene.
Here is a part of the code:
<rich:columns value="#{_escalado.listaBaremos}"
var="colm" index="indice" id="td_importe_#{indice}"
rendered="#{_lineaFraccion.listaBaremosPorte.size()==_escalado.listaBaremos.size()}"
styleClass="td_#{_lineaFraccion.listaBaremosPorte.get(indice).estilo}">
<h:inputText id="i_importe_#{indice}"
styleClass="i_limpio_#{_lineaFraccion.listaBaremosPorte.get(indice).estilo}"
value="#{_lineaFraccion.listaBaremosPorte.get(indice).impTarifa}"
size="10" maxlength="10"
readonly="#{!controlAltaTarifa.modoEdicion or !_version.estaEditable}"
valueChangeListener="#{controlAltaTarifa.comprobarBigDecimal}">
<f:converter converterId="BigDecimalEsConverter" />
<a4j:support event="onchange" ajaxSingle="true"
reRender="op_botones, modSel_portes_#{_versionStatus.index}"
action="#{controlAltaTarifa.hayCambioEnVersion()}"
eventsQueue="myQueue"/>
</h:inputText>
<a4j:support event="onmousedown"
onsubmit="if(handleEvent(event, this, 'cportes')==false || #{_version.getProductoActivo().modoSeleccionActivado}==true){return false;}"
ajaxSingle="true"
action="#{_lineaFraccion.listaBaremosPorte.get(indice).activaCelda()}"
eventsQueue="myQueue"
/>
<a4j:support event="onclick"
onsubmit="alert(1);"
ajaxSingle="false"
action="#{_lineaFraccion.listaBaremosPorte.get(indice).activaCelda()}"
oncomplete="alert(2);"
onbeforedomupdate="alert(3)"
/>
</rich:columns>
</rich:dataTable>
-
altaTarifa.xhtml.zip 15.1 KB