Hi Figured it out. I had forgot to declare the org.apache.shale.clay.FULLXML_CONFIG_FILES context param in web.xml.
Hermod -----Opprinnelig melding----- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 19. august 2006 20:14 Til: [email protected] Emne: Defining Clay views in clay-config.xml Hi So far I've been using named xml files to define the various pages, but I've decided to define them in clay-config instead. I know this is doable, but I'm missing something, either a setting in web.xml or elsewhere My simple clay-config.xml looks like this: <component jsfid="baseLayout" extends="clay" id="base"> <attributes> <set name="clayJsfid" value="/templates/standard.html" /> </attributes> <symbols> <set name="title" value="Hello World" /> <set name="leftContent" value="/pages/defaultLeftNav.html" /> <set name="headerContent" value="/pages/defaultHeader.html" /> <set name="bodyContent" value="/pages/defaultBody.html" /> <set name="footerContent" value="/pages/defaultFooter.html" /> </symbols> </component> <component jsfid="/page1.xml" extends="baseLayout"> <symbols> <set name="title" value="Page 1"/> <set name="bodyContent" value="/pages/page1Body.html"/> </symbols> </component> Earlier I had a page called page1.xml which contained the definition for this and all was well, however if I now try to access the same page I get: javax.servlet.ServletException: Unable to find file /page1.xml. If this is a full HTML or XML view, check your navigation rules. What am I missing here? Hermod
