<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Include a xhtml from webcontent in a HTML Dialog view</title><link>https://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-view</link><description>&lt;p&gt;In the view of a HTML dialog, I am trying to include footer that is located in the webcontent.
Like this :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt; ui:include src="#{resource['ivy-webcontent:layouts/includes/Footer.xhtml']}" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;doing this i have this error &lt;/p&gt;
&lt;pre&gt;&lt;code&gt; java.io.FileNotFoundException: /ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent Not Found in ExternalContext as a Resource
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I've tried to access the file directly :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;a href="http://localhost:8081/ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent"&gt;http://localhost:8081/ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and i got 404.
But when i try to access an image that is also in the webcontent, it works fine.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;a href="http://localhost:8081/ivy/faces/javax.faces.resource/images/actions/add.png?ln=xpertivy-5-webContent"&gt;http://localhost:8081/ivy/faces/javax.faces.resource/images/actions/add.png?ln=xpertivy-5-webContent&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What am i doing wrong ?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-view" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 27 Apr 2015 08:53:26 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-view/1291</link><description>&lt;p&gt;The following include should work:
&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;ui:include src="/layouts/includes/Footer.xhtml" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
To download an "xhtml resource" directly is not allowed, because then you could download the "source" of a xhtml. So with the resource framework you can only access images and script files.&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Mon, 27 Apr 2015 08:53:26 -0400</pubDate><guid>https://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-view/1291</guid></item></channel></rss>