Go Back   SmartClient Forums > Installation
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 4th Jan 2009, 10:37
rsilveira rsilveira is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 4
Default 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?
Reply With Quote
  #2  
Old 4th Jan 2009, 12:23
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,581
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved