It's ok now. Just had to remove <%@ page
contentType="text/html;charset=UTF-8" language="java" %> from the top of
template.jsp.

Could someone tell me why caused the above line an error?

-----Original Message-----
From: Gabor Beres [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 19, 2004 4:41 PM
To: 'MyFaces Discussion'
Subject: RE: tiles example not working

I'have cloned the now working myfaces-tile example's setting to my
application.
There is no difference between the two, and it renders this:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
  <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1"
/>
  <title>Myfaces - Tiles</title>
  <link rel="stylesheet" type="text/css" href="css/tiles.css" />
</head>

<body>
  <div id="lftBar">
    
      
    
  </div>
  <div id="level0">
    <div id="level1">
       <div id="topBar">
          
            
          
       </div>
       <div id="level2">
         
            
         
      </div>
    </div>
  </div>
</body>

so, it just not insert the pages, that i defined in tiles.xml
i don't understand :(


-----Original Message-----
From: Gabor Beres [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 19, 2004 2:00 PM
To: 'MyFaces Discussion'
Subject: RE: tiles example not working

Works!!! It looks like the dtd path was wrong.
Thanks Thomas.

-----Original Message-----
From: Thomas Spiegl [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 19, 2004 1:28 PM
To: MyFaces Discussion
Subject: Re: tiles example not working

exchange WEB-INF/tiles.xml by the file attached. Please let me know if 
it works.

>I'd like to point out that i get this on the original myfaces-tiles
>example 1.0.7. i haven't changed a single line of code. My tomcat5 is
>also a fresh new install.
>
>
>Here is what stdout says:
>
>2004.12.18. 23:23:10
>net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl
>getDefinitionsFactory
>SEVERE: Error reading tiles definitions
>org.apache.struts.tiles.DefinitionsFactoryException: IO Error while
>parsing file '/WEB-INF/tiles.xml'. jakarta.apache.org
>       at
>org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nF
a
>ctorySet.java:538)
>       at
>org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18n
F
>actorySet.java:467)
>       at
>org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFacto
r
>y(I18nFactorySet.java:271)
>       at
>org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFa
c
>torySet.java:246)
>       at
>org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFa
c
>torySet.java:196)
>       at
>org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.i
n
>it(ComponentDefinitionsFactoryWrapper.java:104)
>       at
>org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUti
l
>Impl.java:138)
>       at
>org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.ja
v
>a:167)
>       at
>net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl.getDefi
n
>itionsFactory(JspTilesViewHandlerImpl.java:91)
>       at
>net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl.renderV
i
>ew(JspTilesViewHandlerImpl.java:154)
>       at
>net.sourceforge.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.ja
v
>a:287)
>       at
>javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
>       at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
>tionFilterChain.java:237)
>       at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
>erChain.java:157)
>       at
>net.sourceforge.myfaces.custom.fileupload.MultipartFilter.doFilter(Mult
i
>partFilter.java:88)
>       at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
>tionFilterChain.java:186)
>       at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
>erChain.java:157)
>       at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:214)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:104)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
5
>20)
>       at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
n
>textValve.java:198)
>       at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
>e.java:152)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:104)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
5
>20)
>       at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
>:137)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:104)
>       at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
>:117)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:102)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
5
>20)
>       at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
FreeStarttol.
Probald ki most! http://www.freestart.hu



____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a 
FreeStarttol.
Probald ki most! http://www.freestart.hu

Reply via email to