Hi ,
I have some problems with developing workplace .I used HTMLBasedGUI/MFDemos sample as template for this development.
The first problem that I faced happened when I tried to see preview of my header page.I developed that page as a simple page and I used subclass of MFWorkplaceAdapter as model with that page.When I tried to preview my header page , it caused to disappearance of all layouts and activities links on CAI development IDE. As I understand preview function of layout manager doesn’t work healty with pages which uses subclass of MFWorkplaceAdapter as models.(Shouldn’t I use MFWorkplaceAdapter as standard Adapter base while developing workplace application ? )
The second problem is happened when I tried to preview my workplace page. Sometimes I see list of demo functions instead of my own functions in preview pane.But sometimes it works and shows my function lists and I always see the rigth function list when I check generated pages .
Are this problems bugs in IDE or just happened to me ? .Did anyone else experienced this problems?
Can anyone help me please ?
Thanks in advance.
workplace.xml
<?xml version="1.0" encoding="UTF-8"?>
<mfpage separation="rows" sizing="70,*,35" border="15" bordercolor="#FFFFFF">
<mfframeset target="top" separation="rows" sizing="*,*" border="0" bordercolor="background-color: #F7F3EF" frameborder="false" framespacing="0">
<mfcisframe target="header" cisurl="/ADFManager/wheader.html" withborder="false" withownborder="false" marginheight="0" marginwidth="0">
</mfcisframe>
<mfwpactivefunctions resizable="false" withborder="false" scrolling="false" framestyle="border: 0px solid #000000" bordercolor="background-color: #F7F3EF" marginheight="0" marginwidth="0">
</mfwpactivefunctions>
</mfframeset>
<mfframeset target="around" separation="cols" sizing="265,*,0" border="15" frameborder="true">
<mfwpfunctions bootstrapclass="com.m2m.adfmng.workplace.MFDefaultBootstrapInfoProvider" serversidescrolling="false" activefunctionsvariant="stripsel" withownborder="true">
</mfwpfunctions>
<mfwpcontent resizable="true" withborder="false" scrolling="false" withownborder="true">
</mfwpcontent>
<mfcisframe target="CISHELP" cisurl="/ADFManager/onlinehelp.html" resizable="true" withborder="false" withownborder="true">
</mfcisframe>
</mfframeset>
<mfcisframe target="footer" cisurl="/ADFManager/wfooter.html">
</mfcisframe>
</mfpage>
wfooter.xml
<?xml version="1.0" encoding="UTF-8"?>
<page model="com.m2m.adfmng.workplace.ADPWorkplaceFooter">
<pagebody vscroll="hidden" hscroll="hidden" horizdist="false" takefullheight="true">
<itr takefullwidth="true" height="100%">
<coltable0 width="120" takefullheight="true">
<vdist height="1" backgroundstyle="background-color: #AFAFAF">
</vdist>
<itr itrstyle="background-color: #EFEFEF">
<hdist width="20">
</hdist>
<icon image="img/mffooterflash.gif" method="refresh" valign="top" title="Refresh View">
</icon>
</itr>
</coltable0>
</itr>
</pagebody>
</page>
[/code]
wheader.xml
<?xml version="1.0" encoding="UTF-8"?>
<page model="com.m2m.adfmng.workplace.ADPWorkplaceHeader">
<pagebody vscroll="hidden" hscroll="hidden" horizdist="false" takefullheight="true">
<itr takefullwidth="true" height="100%" align="left" itrstyle="background-color: #EFEFEF">
<hdist>
</hdist>
<icon image="img/fav_closeall.gif" method="closeAllActivities" align="left" title="Close All Workplace Windows ">
</icon>
<icon image="img/fav_naviplus.gif" method="onNormalSize" align="left" title="Re-open left workplace navigation frame">
</icon>
<icon image="img/fav_naviminus.gif" method="on0Size" align="left" title="Close left workplace navigation frame">
</icon>
</itr>
</pagebody>
</page>
MFDefaultBootstrapInfoProvider class
package com.m2m.adfmng.workplace;
import com.softwareag.cis.server.util.TREECollection;
import com.softwareag.cis.workplace.IMFWorkplaceBootstrapInfo;
import com.softwareag.cis.workplace.IMFWorkplaceBootstrapInfoProvider2;
import com.softwareag.cis.workplace.MFWorkplaceTopic;
import com.softwareag.cis.workplace.MFWorkplaceTreeNodeCISPage;
import com.softwareag.cis.workplace.MFWorkplaceTreeNodeFolder;
import static com.softwareag.cis.workplace.MFWorkplaceConstants.*;
import com.softwareag.cis.workplace.MFWorkplaceInfo;
public class MFDefaultBootstrapInfoProvider implements
IMFWorkplaceBootstrapInfoProvider2 {
public MFWorkplaceInfo getWorkplaceInfo(IMFWorkplaceBootstrapInfo envInfo) {
MFWorkplaceTopic topic;
MFWorkplaceTreeNodeFolder topNode;
TREECollection tc;
MFWorkplaceInfo workplaceInfo = new MFWorkplaceInfo("/ADFManager/empty.html");
// --------------------------------------------------------------------
// Demo topic
// --------------------------------------------------------------------
topic = new MFWorkplaceTopic("Demos", workplaceInfo);
tc = topic.getTree();
topNode = new MFWorkplaceTreeNodeFolder("First Demo");
topNode.setOpened(TREECollection.ST_OPENED);
tc.addTopNode(topNode, false);
MFWorkplaceTreeNodeCISPage helloWorldNode = new MFWorkplaceTreeNodeCISPage( "welcome!", "/ADFManager/welcome.html", true, true);
tc.addSubNode(helloWorldNode, topNode, true, false);
return workplaceInfo;
}
}
ADPWorkplaceHeader
package com.m2m.adfmng.workplace;
import com.softwareag.cis.workplace.MFWorkplaceAdapter;
public class ADPWorkplaceHeader
extends MFWorkplaceAdapter
{
}
ADPWorkplaceFooter
package com.m2m.adfmng.workplace;
import com.softwareag.cis.workplace.MFWorkplaceAdapter;
public class ADPWorkplaceFooter
extends MFWorkplaceAdapter
{
}