Archive

Archive for the ‘RichFaces’ Category

AjaxLoading, AjaxState image loading… , processing

January 20th, 2010 No comments

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

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

Eventos Richfaces

October 15th, 2009 No comments

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”

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

HTMLTree some operations

July 28th, 2009 No comments

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;
}

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon
Categories: Java, RichFaces, Seam Framework Tags:

Seam Framework, FacesMessages enqueued, mensajes no se muestran!

June 22nd, 2009 No comments

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”/>

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon
Rss Feed Tweeter button Facebook button Myspace button Linkedin button Delicious button