crpatrick
6 Feb 2008, 9:21 AM
Hi there-
(Sorry...just noticed this is in the 1.0 forum, but don't know if I can move it to the 2.0 forum)
I have a weird issue that I am trying to figure out, and hope someone may have done something similar.
I am developing on a Java struts platform, and have a Border layout. Within the center region is a TabPanel. When a user clicks a tab, the handler for the tab activation does the following:
var el = Ext.get('tabId');
var mgr = el.getUpdateManager();
mgr.loadScripts = true;
// IMPORTANT - THE DOMAIN MUST MATCH THE MAIN HTML PAGE DOMAIN
mgr.update("/DIR/Action.do?action=actionFn");
This allows me call a Java action, and stream the output to the tab I am using. I am basically creating an application where the pages stream in to the tab content. So far, this all works, and I am able to use the extJS libraries (and other JS libraries) sourced from the parent page within the stream pages.
For one of my streamed pages, I would like to have a new border layout, so within the tab, I would have a collapsible west region, and a center region. Now typically, I would use a Viewport to do this, but I am already doing this in the parent page. I tried to use a panel, and I set the layout to 'fit', but this sizes the width to the tab content space, but I have to manually set a height. Is there anyway with a panel I can achieve 100% height of the parent (in this case the tab content space I am streaming into)?
Thanks for any help.
Chris
(Sorry...just noticed this is in the 1.0 forum, but don't know if I can move it to the 2.0 forum)
I have a weird issue that I am trying to figure out, and hope someone may have done something similar.
I am developing on a Java struts platform, and have a Border layout. Within the center region is a TabPanel. When a user clicks a tab, the handler for the tab activation does the following:
var el = Ext.get('tabId');
var mgr = el.getUpdateManager();
mgr.loadScripts = true;
// IMPORTANT - THE DOMAIN MUST MATCH THE MAIN HTML PAGE DOMAIN
mgr.update("/DIR/Action.do?action=actionFn");
This allows me call a Java action, and stream the output to the tab I am using. I am basically creating an application where the pages stream in to the tab content. So far, this all works, and I am able to use the extJS libraries (and other JS libraries) sourced from the parent page within the stream pages.
For one of my streamed pages, I would like to have a new border layout, so within the tab, I would have a collapsible west region, and a center region. Now typically, I would use a Viewport to do this, but I am already doing this in the parent page. I tried to use a panel, and I set the layout to 'fit', but this sizes the width to the tab content space, but I have to manually set a height. Is there anyway with a panel I can achieve 100% height of the parent (in this case the tab content space I am streaming into)?
Thanks for any help.
Chris