AjaxLoading, AjaxState image loading… , processing
Para entender como capturar el estado de las peticiones en Ajax y agregar una imagen tipo: cargando….
http://www.javabeat.net/tips/89-use-a4jstatus-to-display-status-of-the-reque.html
Para entender como capturar el estado de las peticiones en Ajax y agregar una imagen tipo: cargando….
http://www.javabeat.net/tips/89-use-a4jstatus-to-display-status-of-the-reque.html
Componentes Richfaces, marcados con el atributo ‘event’:
<a4j:support event=”onviewactivated” reRender=”ciudadNacimientoDecorate” id=”c169″ ajaxSingle=”true”/>
<rich:contextMenu event=”oncontextmenu” attachTo=”pic” submitMode=”none”>
<a4j:support event=”onlistchanged” reRender=”toolBar” />
<rich:componentControl event=”onRowClick” for=”menu” operation=”show”
Some ops for the HTMLTree
public HtmlTree getLineaEstructuraRepresentante () {
if (lineaEstructuraRepresentante == null) {
TreeNodeImpl a1 = new TreeNodeImpl();
a1.setData(new LineaEstructura());
TreeNodeImpl aa = new TreeNodeImpl();
TreeNodeImpl raiz = new TreeNodeImpl();
raiz.addChild(“1″, a1);
aa.setData(new LineaEstructura());
TreeNodeImpl bb = new TreeNodeImpl();
lineaEstructuraRepresentante = new HtmlTree();
lineaEstructuraRepresentante.setSwitchType(“client”);
lineaEstructuraRepresentante.setValue(raiz);
lineaEstructuraRepresentante.setVar(“item”);
HtmlTreeNode htmlTreeNode = new HtmlTreeNode();
HtmlOutputText htmlOutputText = new HtmlOutputText();
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.codigo}”, String.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.nombre}”, String.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.totalGrupo}”, String.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.textoTotal}”, String.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.deCuentaContable}”, CuentaContable.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
htmlOutputText.setValueExpression(“value”,
getFacesContext().getApplication().getExpressionFactory().createValueExpression
(
getFacesContext().getELContext(), “#{item.hastaCuentaContable}”, CuentaContable.class));
htmlTreeNode.getChildren().add(htmlOutputText);
lineaEstructuraRepresentante.getChildren().add(htmlTreeNode);
}
return lineaEstructuraRepresentante;
}
FacesMessages no se muestran!
[lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
Fix: Agrega esta linea a tu codigo dentro de tu XHTML.
<h:messages globalOnly=”true”/>