基本的なカスタマイズ > ユーザーインタフェースのカスタマイズ > ウィザードの作成 > 単一オブジェクトを編集するウィザードの構築 > ソリューション > 手順 - 編集ウィザードの作成 > ウィザードのメイン jsp ファイルを作成する
  
ウィザードのメイン jsp ファイルを作成する
次に、編集ウィザードを記述した jsp ファイルを作成します。一般に、最低でも、属性を編集するステップを 1 つ入れる必要があります。属性編集ステップの高度な設定の詳細については、再利用可能なウィザードステップのカスタマイズ を参照してください。
<%-- This wizard is an example of using a read-only attributes panel in
an Edit wizard. --%>
<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>
<%@ taglib prefix="jca"
uri="http://www.ptc.com/windchill/taglib/components"%>
<%@ taglib prefix="wip"
uri="http://www.ptc.com/windchill/taglib/workinprogress"%>
<%-- This tag checks out the document and sets magical form inputs
and data on the command bean. This makes sure that the command
bean's get oid methods return the oid of the working copy. --%>
<wip:autoCheckOutItem />
<jca:initializeItem operation="${createBean.edit}"/>
<jca:wizard buttonList="EditWizardButtons"
helpSelectorKey="DocMgmtDocEdit"
title="Example Literature Edit with Attribute Panels">
<jca:wizardStep action="editAttributesWizStep"
type="object" embeddedHelp="This is an example of a
simple Edit wizard. This wizard demonstrates how to
change the attributes in the read only
attribute panel."/>
</jca:wizard>
<%@include file="/netmarkets/jsp/util/end.jspf"%>
AutoCheckOutItem タグ
ターゲットオブジェクトが処理可能であり、「チェックアウトおよび編集」操作やその他の操作でまだチェックアウトされていないオブジェクトに対してウィザードを起動できる場合、メイン jsp の initializeItemTagのすぐ下に autoCheckOutItem タグを含める必要があります。
<%@ taglib prefix="wip"
uri="http://www.ptc.com/windchill/taglib/workinprogress"%>
...
<wip:autoCheckOutItem/>
ウィザードを開く前に、このタグによってオブジェクトが現在のユーザーにチェックアウトされます。
ボタンセット
処理可能オブジェクトを編集するウィザードでは通常、以下の 2 つのボタンセットのいずれかが使用されます。
"EditWizardButtons" (複数ステップウィザード)
"NoStepsEditWizardButtons" (単一ステップウィザード)
これらには「保存」および「チェックイン」ボタンが含まれます。
nonWorkable オブジェクトを編集するには、通常、以下のいずれかを使用します。
DefaultWizardButtonsNoApply (複数ステップウィザード)
NoStepsWizardButtons (単一ステップウィザード)
これらはすべて <Windchill>/codebase/config/actions/actionmodels.xml. で定義されています。