Hello Antonio,
I have added your table page with some minor changes to the
example-facelets. I didn't found a real problem on your page.
May be the problem exists in the main.xhtml or in the backing bean.
Can you look at
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/facelets/src/main/webapp/table.xml
Regards
Bernd
Antonio Sampayo schrieb:
Thanks Bernd, look this
<!---------------------------------------------------------------------------------->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:subview xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension">
<ui:composition template="/WEB-INF/layout/main.xhtml">
<ui:define name="content">
<tc:panel>
<f:facet name="layout">
<tc:gridLayout margin="10px" rows="1*;2*;2*"/>
</f:facet>
<tc:messages />
<tc:form>
<tc:box label="Busqueda de usuarios" >
<f:facet name="layout">
<tc:gridLayout rows="fixed;*" columns="1*;1*" />
</f:facet>
<f:facet name="toolBar">
<tc:toolBar>
<tc:button label="Buscar"
action="#{messageBackingBean.filter}" defaultCommand="true" />
<tc:button label="Agregar"
action="#{messageBackingBean.addDestinatario}"/>
</tc:toolBar>
</f:facet>
<tx:selectOneChoice
value="#{messageBackingBean.tipo}"
label="Tipo Usuario">
<f:selectItems
value="#{messageBackingBean.selectionItems}"/>
</tx:selectOneChoice>
<tx:in value="#{messageBackingBean.usuario}"
label="Usuario" />
<tc:cell spanX="2" >
<tc:sheet columns="1*"
value="#{messageBackingBean.empleadosList}"
var="emp" state="#{messageBackingBean.selectedRows}"
showPageRange="center"
showRowRange="left" rows="5"
>
<tc:column label="Nombre" sortable="true" >
<tc:out value="#{emp.nombre}
#{emp.apePaterno} #{emp.apeMaterno}" />
</tc:column>
</tc:sheet>
</tc:cell>
</tc:box>
</tc:form>
....
</ui:define>
</ui:composition>
</f:subview>
The HTML generated has the box, the toolbar, the tc:in (label and
textbox), etc, but the sheet is not visible.
Maybe is an java scritp error or something like that, because in the
HTML generated exists <div> from the sheet.
Before all thank you by your time
--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333