-
FEATURED COMPONENTS
First time here? Check out the FAQ!
This is in spanish:
Estado HTTP 500 -
type Informe de Excepción
mensaje
descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
excepción org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: template in [LanguageDefinition: xul/html], [SYS file:/C:/Users/.../index.zul line 25 col 44] org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:777) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:209) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:100) org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:216) org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:89) org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:226) org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:200) org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:133) org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:130) org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:144) org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:116) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:218) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/7.0.14.
Apache Tomcat/7.0.14
Can you post index.zul, the fault is there at line 25. (if possible mark line 25)
But actually I can already point you to your fault. You have used
<template name="...">
...
</template>
for a component that doesn't support that. What component I can't say cause I can't see your zul.
Greetz chill.
Yes! Part of index.zul:
<?page title="PRUEBA"?>
<window>
<div id = "hospedajediv" apply="controller.HospedajeController" >
<listbox id="listHospedaje" model="${$composer.hospedajeModel}" apply="controller.HospedajeController">
<auxhead>
<auxheader label="Hospedajes" colspan="4" />
</auxhead>
<listhead>
<listheader label="ID" hflex="3" />
<listheader label="Cliente" hflex="3" />
<listheader label="Fecha inicio" hflex="3" />
<listheader label="Fecha fin" hflex="3" />
<listheader label="Plan" hflex="3" />
<listheader label="Estado" hflex="3" />
<listheader label="Numero factura" hflex="3" />
<listheader label="Fecha factura" hflex="3" />
<listheader label="Total factura" hflex="3" />
</listhead>
<template name="model"> -----> This is de line with error
<listitem>
<listcell label="${each.id}" />
<listcell label="${each.cliente.nombre}" />
<listcell label="${each.finicio}" />
<listcell label="${each.ffin}" />
<listcell label="${each.plan.nombre}" />
<listcell label="${each.estado}" />
<listcell label="${each.numerofac}" />
<listcell label="${each.fechafac}" />
<listcell>$<label value="${each.totalfac}" /></listcell>
</listitem>
</template>
</listbox>
</div>
</window>
<window id="winReportes" title="Reporte" border="normal" width="100%"
apply="reporte.CntrlReporte" height="100%">
Choose a File Type : <listbox id="format" mold="select" >
<listitem label="HTML" value="html" />
<listitem label="PDF" value="pdf" selected="true" />
<listitem label="Word (RTF)" value="rtf" />
<listitem label="Excel" value="xls" />
<listitem label="Excel (JXL)" value="jxl" />
<listitem label="CSV" value="csv" />
<listitem label="OpenOffice (ODT)" value="odt" unless="false" />
</listbox>
<button id="btnReportes" label="Get Report" />
<jasperreport id="report" />
<iframe id ="frame"></iframe>
</window>
</zk>
What version do you use (please mention also PE/CE/EE)
CE. This version doesn't support it?
I still have not solved this problem... any help?
Was this your complete zul? and can you post your getHospedajeModel
?
What version do you use like 6.5.3 or older? (so I can try to simulate here).
Greetz chill.
Use the version 6.5.2, but now I'm using version 7.0. The project is a simple test, nothing unusual.
getHospedajeModel: (HospedajeController.java)
package controller;
import entidad.Hospedaje;
import exception.DAOException;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.ListModelList;
import service.HospedajeService;
public class HospedajeController extends GenericForwardComposer {
private Hospedaje _currentHospedaje;
private ListModelList hospedajeModel;
public Hospedaje getCurrentHospedaje () {
return _currentHospedaje;
}
public void setCurrentHospedaje (Hospedaje currentHospedaje) {
this._currentHospedaje = currentHospedaje;
}
public ListModelList getHospedajeModel () throws DAOException {
hospedajeModel = new ListModelList(HospedajeService.listarReserva(),true);
return hospedajeModel;
}
}
Complete index.zul:
<zk>
<window border="normal" title="hello" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('fiddle.testvm')">
<listbox id="box" checkmark="true" model="@bind(vm.model)" selectedItem="@bind(vm.selected)">
<listhead>
<listheader label="ID" hflex="3" />
<listheader label="Cliente" hflex="3" />
<listheader label="Fecha inicio" hflex="3" />
<listheader label="Fecha fin" hflex="3" />
<listheader label="Plan" hflex="3" />
<listheader label="Estado" hflex="3" />
<listheader label="Numero factura" hflex="3" />
<listheader label="Fecha factura" hflex="3" />
<listheader label="Total factura" hflex="3" />
</listhead>
<template name="model">
<listitem>
<listcell label="${each.id}" />
<listcell label="${each.cliente.nombre}" />
<listcell label="${each.finicio}" />
<listcell label="${each.ffin}" />
<listcell label="${each.plan.nombre}" />
<listcell label="${each.estado}" />
<listcell label="${each.numerofac}" />
<listcell label="${each.fechafac}" />
<listcell>$<label value="${each.totalfac}" /></listcell>
</listitem>
</template>
</listbox>
</window>
<window>
<div id = "clientediv" apply="controller.ClienteController" >
<listbox id="listCliente" model="${$composer.clienteModel}" apply="controller.ClienteController">
<auxhead>
<auxheader label="Clientes" colspan="4" />
</auxhead>
<listhead>
<listheader label="Nombre" hflex="3" />
<listheader label="DNI" hflex="3" />
<listheader label="ID" hflex="3" />
<listheader label="Fecha nacimiento" hflex="3" />
</listhead>
<template name="model">
<listitem>
<listcell label="${each.nombre}" />
<listcell label="${each.dni}" />
<listcell label="${each.id}" />
<listcell label="${each.fechanacimiento}" />
</listitem>
</template>
</listbox>
</div>
</window>
<window title="Prueba">
<grid width="100%">
<rows>
<row>Texto: <textbox id="source1">
<attribute name="onChange">
copy.value = source1.value
</attribute>
</textbox>
</row>
<row>Fecha: <datebox id="source2">
<attribute name="onChange">
copy.value = source2.value.toString();
</attribute>
</datebox>
</row>
<row>Salida (ultimo cambio): <textbox id="copy" readonly="true"/>
</row>
</rows>
</grid>
</window>
<window id="winReportes" title="Hola mundo" border="normal" width="100%" apply="reporte.CntrlReporte" height="100%">
Choose a File Type : <listbox id="format" mold="select" >
<listitem label="HTML" value="html" />
<listitem label="PDF" value="pdf" selected="true" />
<listitem label="Word (RTF)" value="rtf" />
<listitem label="Excel" value="xls" />
<listitem label="Excel (JXL)" value="jxl" />
<listitem label="CSV" value="csv" />
<listitem label="OpenOffice (ODT)" value="odt" unless="false" />
</listbox>
<label value="You are using: ${desktop.webApp.version}"/>
<button id="btnReportes" label="Get Report" />
<jasperreport id="report" />
<iframe id ="frame"></iframe>
</window>
</zk>
Estado HTTP 500 - Component definition not found: template in [LanguageDefinition: xul/html], [SYS file:/C:/Users/.../build/web/index.zul line 15 col 44]
type Informe de Excepción
mensaje Component definition not found: template in [LanguageDefinition: xul/html], [SYS file:/C:/Users/Nacho/Documents/NetBeansProjects/Zk---Jasper-Example-master2222/build/web/index.zul line 15 col 44]
descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.
excepción org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: template in [LanguageDefinition: xul/html], [SYS file:/C:/Users/Nacho/Documents/NetBeansProjects/Zk---Jasper-Example-master2222/build/web/index.zul line 15 col 44] org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:777) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:601) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:872) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:209) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:100) org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:216) org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:89) org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:226) org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:200) org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:133) org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:130) org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:144) org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:116) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:218) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/7.0.34.
stupid test : does this turn on your netbeans?
<zk>
<window border="normal" title="hello" apply="org.zkoss.bind.BindComposer">
<listbox id="box" checkmark="true">
<listhead>
<listheader label="ID" hflex="3" />
</listhead>
<template name="model">
<listitem>
<listcell label="aa" />
</listitem>
</template>
</listbox>
</window>
</zk>
This turns on fiddle so if this doesn't work, I should check the REM plugin and maybe your dependencies.
Asked: 2014-02-02 21:45:12 +0800
Seen: 209 times
Last updated: Mar 26 '14
adding a menuitem with image on Menubar
can somebody give the use of imagecontent in menuitem ? [closed]
label in org.zkoss.zul.Messagebox must be middle aligned [closed]
Grid with frozen column shows unnecessary scrollbar
Component with independents columns
ZK ComboBox constraint firing on getSelectIndex()
Problems with visible/invisible grids using flex
A container should have a disable attribute.
Video inside: Processing... not translated to set org.zkoss.web.preferred.locale in zk.xml