Urgent Req: Include jsp within Layout member

I have a Vlayout declared, in one of members I am trying to include another .jsp file. How to do this ? would isc.HTMLPane.create({
width: “100%”,
height: “100%”,
contentsURL:“workflow.jsp”
}),
work.

Can we include another .jsp in the SmartClient components. ? How?
Any input is much appreciated. Thanks

Hello mpastamatla,
It depends what’s in your JSP. If you need to deliver additional SmartClient components, you should use the ViewLoader class rather than trying to bundle the components into a JSP.
Note: Check out this thread for a brief discussion about why you should never use an HTMLPane with contentsType:“page” to load SmartClient components into your application.

For non SmartClient HTML delivered in a .jsp file, an HTMLFlow or HTMLPane is probably appropriate. You may need to set the contentsType property to “page” if your .jsp file contains a full page of content rather than an HTML fragment.

Hope this helps

Isomorphic Software

Thanks, Pl elaborate with an Example

I have these two files.

<%@ taglib uri=“/WEB-INF/iscTaglib.xml” prefix=“isomorphic” %>
<HTML><HEAD>
<!–isomorphic:loadISC skin=“SmartClient” / –>
</HEAD><BODY>

<!–
use these templates to load datasource descriptors, UI descriptors, client-side logic, stylesheets –>

&lt;!--isomorphic:loadUI name="" / --&gt;
&lt;SCRIPT&gt;var isomorphicDir="../isomorphic/";&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_Core.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_Foundation.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_Containers.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_Grids.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_Forms.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/system/modules/ISC_DataBinding.js&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT SRC=../isomorphic/skins/SmartClient/load_skin.js&gt;&lt;/SCRIPT&gt;

&lt;LINK REL=STYLESHEET TYPE="text/css" HREF="prototype/layout.css" &gt;

<SCRIPT>

// Start of Layout
isc.VLayout.create({
width: “100%”,
height: “100%”,
members: [
isc.HTMLPane.create({
left:0, top:0,
width:“100%”, height:56, showEdges:false,
overflow:“none”,
contentsURL:“prototype/mastHead.html”
}),

	isc.ViewLoader.create({
		
		viewURL:"workflow.jsp"
	}),

	isc.HTMLPane.create({
		position: "relative",width:"100%", height:50, showEdges:false,
		overflow:"none",
		contentsURL:"prototype/mastFooter.html"
	})
] 

});

</SCRIPT>
</BODY></HTML>

workflow.jsp file

<SCRIPT>

// Start of Horizontal Layout

	isc.HLayout.create({
		top: 70, left: 100,

		width: "100%",
		height: "100%",
		members: [
			
				isc.ListGrid.create({
						ID: "workspaceList",
						alternateRecordStyles:true, 
						showAllRecords:false,
						dataSource: workspaceListDS,
						autoFetchData: false,
						height:"100%",
						selectionType:"single",
						dataPageSize: 50,
	  					drawAheadRatio: 4
					})
				]
			
	});

</SCRIPT>

Let me know what’s missing to make the ViewLoader work…

Hi mpastamatla,

workflow.jsp should not have <SCRIPT> tags, it should be pure JavaScript.

position:“relative” (on second HTMLPane) does not make sense for a component placed within a Layout, only for a top-level component.

overflow:“none” (on second HTMLPane) is not a valid setting. What did you want this pane to do?

Thanks Again, I appreciate the Answers . I am trying out the points you made. One question on the overflow: hidden. When I reduce the browser window I had scrollbars showing up., so, included the “overflow” attribute. Pl, Elaborate on why in the HTMLPane ( or only the second one in the code from previous post) this is not valid attribute

overflow:“hidden” is a valid value, you had set overflow:“none”.

The documentation for overflow lists valid values and behaviors.

If you want to ensure that scrollbars never appear on the browser window regardless of how small you make it, set overflow:hidden on the HTML <body> element (outside of SmartClient), eg:

<body style=“overflow:hidden”>