This discussion is archived
1 Reply Latest reply: Nov 21, 2003 5:02 PM by 4996 RSS

10g nested includes?

4996 Newbie
Currently Being Moderated
I have a parent file that includes the first file shown below, 'displayLayout.uix'. You can see that this file attempts to include 'displayView.uix', also shown below. All three files are in the same directory on the server. The first include works fine, the second reports "displayLayout.uix:line 11,col 85: Unable to resolve include" to the server log. Can I not nest includes, or am I doing something wrong?
---- displayLayout.uix ----
<?xml version="1.0" encoding="windows-1252"?>
<tableLayout xmlns="http://xmlns.oracle.com/uix/ui"
            xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
            xmlns:html="http://www.w3.org/TR/REC-html40" width="100%"
            borderWidth="1" height="100%">
    <contents childData="${ pageBean.portletPage.panelRows }">
        <rowLayout>
            <contents childData="${ uix.current['.'] }">
                <cellFormat height="100%" width="100%">
                    <contents>
                        <include node="${ ctrl:parsePage( uix, 'displayView' ) } "/>
                    </contents>
                </cellFormat>
            </contents>
        </rowLayout>
    </contents>
</tableLayout>

---- displayView.uix ----
<?xml version="1.0" encoding="windows-1252"?>
<tableLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
        <text text="${ uix.current.portletPanel.name }" />
    </contents>
</tableLayout>
  • 1. Re: 10g nested includes?
    4996 Newbie
    Currently Being Moderated
    Hm, no, it doesn't appear to be from the nesting, as I copied the contents of displayLayout.uix into the parent document driectly, and it still can't resolve displayVeiw.uix. I've tried several variations of the content of displayView, but the error makes it sound more like it just can't find the file.