Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 9th Feb 2007, 02:25
Vitaly V.V. Vitaly V.V. is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 13
Default error with grid - position: "relative"

Hello!

I select engine for new project (portal+BI).

I work with JBoss and create the portlet.

If i don't setup 'position: "relative"' for grid, then i can move columns to other place. But my screen is bad.

If i setup position 'position: "relative"', then my screen is good. But moved columns don't work correctly.


My page for uncorrect work:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JBoss Portal 2.4.1-GA</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<!-- to correct the unsightly Flash of Unstyled Content. -->
<script type="text/javascript"></script>
<!-- inject the theme; default to the Nphalanx theme if nothing is selected for the portal or the page -->

<link rel="stylesheet" type="text/css" id="main_css" href="/portal-core/themes/renaissance/portal_style.css" />
<link rel="shortcut icon" href="/portal-core/themes/renaissance/images/favicon.ico" />
<link rel="icon" type="image/gif" href="/portal-core/themes/renaissance/images/animated_favicon1.gif" />


<!-- insert header content that was possibly set by portlets on the page -->
<script>var isomorphicDir='/testsmartclient/isomorphic/';</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_Core.js'>;</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_Foundation.js'>;</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_Containers.js'>;</script>

<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_Grids.js'>;</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_Forms.js'>;</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/system/modules/ISC_DataBinding.js'>;</script>
<script type='text/javascript' src='/testsmartclient/isomorphic/skins/SmartClient/load_skin.js'>;</script>


</head>

<body id="body">
<div id="portal-container">
<div id="sizer">
<div id="expander">

<div id="logoName"></div>
<table border="0" cellpadding="0" cellspacing="0" id="header-container">
<tr>
<td align="center" valign="top" id="header">

<div id="spacer"></div>
</td>
</tr>
</table>
<div id="content-container">

<!-- insert the content of the 'left' region of the page, and assign the css selector id 'regionA' -->

<!-- insert the content of the 'center' region of the page, and assign the css selector id 'regionB' -->
<div id='regionB'><div class="portlet-container"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="portlet-titlebar-left"></td><td class="portlet-titlebar-center"><div class="portlet-titlebar-decoration"><span class="portlet-titlebar-title">Test SmartClient</span></div><div class="portlet-mode-container"><div class="portlet-mode-minimized" onClick="location.href='/portal/auth/portal/default/TestSmartClient/testsmartclientWindow?action=a&amp;windowstate=min imized';" title="minimized"></div><div class="portlet-mode-maximized" onClick="location.href='/portal/auth/portal/default/TestSmartClient/testsmartclientWindow?action=a&amp;windowstate=max imized';" title="maximized"></div></div></td><td class="portlet-titlebar-right"></td></tr><tr><td class="portlet-content-left"></td><td class="portlet-body"><div class="portlet-content-center">



Hello!!! <br>

<script>


isc.DataSource.create({
testFileName:"ank1.data.xml",
serverType:"sql",
fields:{
Id:{title:"ID", primaryKey:true, name:"Id", required:true, type:"integer"},
fname:{title:"fname", name:"fname", type:"text"},
lname:{title:"lname", name:"lname", type:"text"},
age:{title:"age", name:"age", type:"integer"},
child:{title:"age", name:"child", type:"integer"},
supp:{title:"supp", name:"supp", type:"float"},
dout:{title:"dout", name:"dout", type:"date"}
},
tableName:"ank1",
ID:"ank1"
});


// create treeGrid bound to this datasource
isc.ListGrid.create({
dataSource:ank1,
ID:"ListGrid0",
autoFetchData:false,
autoDraw:true,
width: 500,
position: "relative"
});




</script>

body_page

</div></td><td class="portlet-content-right"></td></tr><tr><td class="portlet-footer-left"></td><td class="portlet-footer-center"></td><td class="portlet-footer-right"></td></tr></table></div></div>
<hr class="cleaner"/>

<div id="footer-container" class="portal-copyright">Powered by <a class="portal-copyright"
href="http://www.jboss.com/products/jbossportal">JBoss
Portal</a><br/>
<span id="ThemeBy"></span>
</div>
</div>
</div>
</div>

</div>
</body>
</html>


Any answer? Where is my error?

I have this error in browsers: IE 6.0 Firefox 2.0.0.1

I think, coordinates not right calculated (i move first column - only to end of all columns)

WBR
Vitaly

Last edited by itgroup@mail.ru; 9th Feb 2007 at 03:15..
Reply With Quote
  #2  
Old 9th Feb 2007, 10:49
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,573
Default

Your code works fine for me in the browsers you specified. I see:

Test SmartClient
Hello!!!
<ListGrid>
body_page
<HR>
Powered by JBoss Portal

The ListGrid renders correctly and I can move its columns around and resize them without any problems. Should I see something different?
Reply With Quote
  #3  
Old 9th Feb 2007, 11:37
Vitaly V.V. Vitaly V.V. is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 13
Default

Quote:
Originally Posted by Isomorphic
Should I see something different?
Oh, sorry! This page don't have css and others. Download from link http://ifolder.ru/1078394 *.mht - page (i save my page in single arhive from IE) and try move column... *.mht - page don't have viruses or other bad codes - you see this file in any text viewer...

Open this page in IE or FireFox:

If page no have css, then grid have one coordinates. if page have css, grid have other coordinates and don't work correctly.

This downloaded page have css and don't move column correctly. If i click on row in right side of table - then cursor of table not moved.

I think, not right calculated coordinates...

WBR!
Vitaly

Last edited by itgroup@mail.ru; 9th Feb 2007 at 13:44..
Reply With Quote
  #4  
Old 11th Feb 2007, 19:10
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,573
Default

Hi Vitaly,

SmartClient doesn't have any known issues with typical CSS styling.

The best way to get an answer on this issue is to reduce the test case into something small enough to reasonably post on the forums. You should be able to quickly eliminate almost all of the CSS styles and HTML elements involved by simply removing files, styles and elements until you see the problem go away, then post what you have left.
Reply With Quote
  #5  
Old 12th Feb 2007, 22:19
Vitaly V.V. Vitaly V.V. is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 13
Default

Hi all!

Everybody testing SmartClient library for JBoss portal?

I create very-very simple portlet, and have error rendering...


WBR
Vitaly
Reply With Quote
  #6  
Old 13th Feb 2007, 11:09
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,573
Default

What's the error? Also, can you post the "view source" from your browser when the error occurs? SmartClient was built with a portlet environment in mind, so there definitely shouldn't be any problems with JBoss...
Reply With Quote
  #7  
Old 14th Feb 2007, 05:01
Vitaly V.V. Vitaly V.V. is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 13
Default

If i open html-source (from my first reply), then my table is good. But table moved from portlet to left side of screen and i don't see portlet.

If i opening page with portlet, table position in portlet - in center of screen. I can't move column to other place and don't select row (if i click in right side (for example: in last column) of table).

You can see the page with the portlet on link from my previous post.
Reply With Quote
  #8  
Old 14th Feb 2007, 08:43
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,573
Default

Hello itgroup,

As previously requested, to get help on the forums, please post a test case that actually shows the issue (not a link to a downloadable archive). Alternatively, contact licensing@isomorphic.com and purchase enterprise support.

Thanks,
Isomorphic Software Support
Reply With Quote
  #9  
Old 15th Feb 2007, 06:56
Vitaly V.V. Vitaly V.V. is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 13
Default

Quote:
Originally Posted by Isomorphic
Hello itgroup,

As previously requested, to get help on the forums, please post a test case that actually shows the issue (not a link to a downloadable archive).
Downloadable arhive have over 1 Mb for Isomorphic JS. If i present only .html file, then grid work correctly.

Quote:
Originally Posted by Isomorphic
Alternatively, contact licensing@isomorphic.com and purchase enterprise support.

Thanks,
Isomorphic Software Support
I only select the engine for project. May be, use library and buy code & support. Present day library don't have all properties for my project.

WBR
Vitaly
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved