Hi Philip,
I had some tests yesterday and what I assume:
-f:ajax and ace:ajax on icefaces 3.1.0 seems useless since partialSubmit is required anyway
-actionListener on an inputtext field works ok, but in my case, that I need to handle both onblur and onkeyup (code 13 for enter), gets overriden by valuechangelistener
-icefaces adds automaticaly an annoying onkeyup event that make a full submit
Anyway, here is my xhtml:
Code:
<h:form>
<!--other inputtexts and selects up here-->
<ace:dataTable id="eeTable" var="item" rowIndexVar="row" value="#{MBean.listaEE}" paginator="false">
<ace:column headerText="#{cat['numcol']}" id="numEECol" style="width: 10%">
<ice:inputText id="numEE" partialSubmit="true" immediate="true" styleClass="c70 mask-ee"
valueChangeListener="#{MBean.searchEE}" value="#{item.num}">
<f:attribute name="item" value="#{item}"/>
<script>
jQuery(document).ready(function(){
jQuery(".mask-ee").mask("9999-99", {placeholder: "0", autofilling: true});
});
</script>
</ice:inputText>
</ace:column>
<ace:column headerText="desccol" id="descCol">
<ice:outputText value="#{item.desc}"/>
</ace:column>
<ace:column headerText="#{cat['principalcol']}" id="principalEE" style="width: 16%">
<span>
<ice:selectOneRadio id="princiapalrdo" partialSubmit="true" immediate="true"
valueChangeListener="#{MBean.selectPrincipal}" value="#{item.principal}">
<f:attribute name="item" value="#{item}"/>
<f:selectItem itemLabel="" itemValue="true" />
</ice:selectOneRadio>
</span>
</ace:column>
<ace:column headerText="" id="btnEE" style="width: 15%">
<ice:commandButton id="addEEButtonTable" title="#{app['commandButton.add']}"
action="#{MBean.addEE}" immediate="true" partialSubmit="true">
</ice:commandButton>
<ice:commandButton id="removeEEButtonTable" title="#{app['commandButton.remove']}"
actionListener="#{MBean.removeEE}" immediate="true" partialSubmit="true">
<f:attribute name="item" value="#{item}"/>
</ice:commandButton>
</ace:column>
</ace:dataTable>
<!--button Save down here-->
</h:form>