1.在添加action按钮,配置
<objecttype name="test" class="" resourceBundle="ext.ent.navigationRB">
<action id="wizard_step1" name="wizard_step1">
<command url="netmarkets/jsp/ext/test/wizard_step1.jsp" windowType="wizard_step" />
</action>
<action id="wizard_step2" name="wizard_step2">
<command url="netmarkets/jsp/ext/test/wizard_step2.jsp" windowType="wizard_step" />
</action>
<action id="wizard_step3" name="wizard_step3">
<command url="netmarkets/jsp/ext/test/wizard_step3.jsp" windowType="wizard_step" />
</action>
</objecttype>
2.创建主页面,内容如下。主页面用于包含,类似框架,本身无具体显示内容。
<%@ taglib prefix="jca" uri="http://www.ptc.com/windchill/taglib/components"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>
<jca:wizard buttonList="DefaultWizardButtonsNoApply" title="Wizard Example">
<jca:wizardStep action="wizard_step1" type="test" />
<jca:wizardStep action="wizard_step2" type="test"/>
<jca:wizardStep action="wizard_step3" type="test"/>
</jca:wizard>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
3.创建各个步骤页面内容
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
This is 1
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
4.src。ext。ent中添加显示 RB文件
ResourceInfo.class=wt.tools.resource.StringResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
demo.wizard_step1.description.value=第一步
demo.wizard_step1.tooltip.value=第一步
5.执行显示的编译命令,
Resourecebuild ext.ent.actionRB
ant -f bin\swmaint.xml installSiteChanges
windchill stop&windchill start
<objecttype name="test" class="" resourceBundle="ext.ent.navigationRB">
<action id="wizard_step1" name="wizard_step1">
<command url="netmarkets/jsp/ext/test/wizard_step1.jsp" windowType="wizard_step" />
</action>
<action id="wizard_step2" name="wizard_step2">
<command url="netmarkets/jsp/ext/test/wizard_step2.jsp" windowType="wizard_step" />
</action>
<action id="wizard_step3" name="wizard_step3">
<command url="netmarkets/jsp/ext/test/wizard_step3.jsp" windowType="wizard_step" />
</action>
</objecttype>
2.创建主页面,内容如下。主页面用于包含,类似框架,本身无具体显示内容。
<%@ taglib prefix="jca" uri="http://www.ptc.com/windchill/taglib/components"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>
<jca:wizard buttonList="DefaultWizardButtonsNoApply" title="Wizard Example">
<jca:wizardStep action="wizard_step1" type="test" />
<jca:wizardStep action="wizard_step2" type="test"/>
<jca:wizardStep action="wizard_step3" type="test"/>
</jca:wizard>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
3.创建各个步骤页面内容
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
This is 1
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
4.src。ext。ent中添加显示 RB文件
ResourceInfo.class=wt.tools.resource.StringResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
demo.wizard_step1.description.value=第一步
demo.wizard_step1.tooltip.value=第一步
5.执行显示的编译命令,
Resourecebuild ext.ent.actionRB
ant -f bin\swmaint.xml installSiteChanges
windchill stop&windchill start