Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    XPath Binding - Unable to run it on my own

    I installed SmartClient 7.0 Beta. I'm able to run the example **XPath Binding** but when I try to create a jsp of my own to run it I can't. My intent is to experiment with the file layout without changing any of the original files. The symptom is a blank screen. I've seen this symptom with other examples and I was able to fix it by fiddling with
    a) <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>,
    b)<isomorphic:loadDS ID="countryDS" />

    My working folder is adjacent to the isomorphic working folder in the C:\SmartClient_70beta\smartclientSDK folder. Following is the code that is not working:

    <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
    <HTML>
    <HEAD>
    <isomorphic:loadISC skin="standard"/>
    </HEAD>
    <BODY>
    <SCRIPT
    isc.DataSource.create({
    ID:"contacts",
    dataFormat:"xml",
    recordXPath:"//contact",
    dataURL:"/isomorphic/system/reference/inlineExamples/dataIntegration/xml/contactsData.xml",
    fields:[
    {name:"name"},
    {name:"email"},
    {name:"organization"},
    {name:"phone"},
    {name:"street", valueXPath:"address/street"},
    {name:"city", valueXPath:"address/city"},
    {name:"state", valueXPath:"address/state"},
    {name:"zip", valueXPath:"address/zip"}
    ]
    });

    isc.ListGrid.create({
    ID: "boundGrid",
    dataSource: "contacts",
    width: "100%",
    autoFetchData: true

    });
    </SCRIPT>
    </BODY>
    </HTML>

    Any thoughts?

    #2
    Your opening <SCRIPT> tag is missing it's closing bracket (>).

    Please install a text editor that understands HTML, and it will highlight this and other errors for you.

    Comment

    Working...
    X