Hello, I'm currently practicing Windchill Customization by referring to the Windchill Customization Guide.
I'm trying to attach a Primary Attachment to a Pet, but even when I refer to the guide's examples, the primary attachment component doesn't appear.
Other attributes, includeing the attachment wizard step, are displayed correctly.
Here's my code.
-------------------------------
petCreate.jsp :
<%@taglib prefix="attachments"
<%@include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@include file="/netmarkets/jsp/components/includeWizBean.jspf"%>
<jca:initializeItem
baseTypeName="com.Pet"
operation="${createBean.create}"
attributePopulatorClass="com.ptc.core.components.forms.DefaultAttributePopulator"/>
<jca:wizard formProcessorController="com.form.TestFormProcessorController">
<jca:wizardStep action="petDefineItemAttributesWizStep" type="pet"/>
<jca:wizardStep action="attachments_step" type="attachments"/>
</jca:wizard>
<%@include file="/netmarkets/jsp/util/end.jspf"%>
-------------------------------
-------------------------------
pet-actions.xml :
<objecttype name="pet" class="com.Pet" resourceBundle="com.jca.testManagerResource">
<action name="create">
<command class="com.form.CreatePetFormProcessor" url="jsp/ootb/petCreate.jsp" method="execute" windowType="popup"/>
</action>
<action name="modify">
<command class="com.ptc.core.components.forms.DefaultEditFormProcessor" url="jsp/ootb/petModify.jsp" windowType="popup"/>
</action>
<action name="petDefineItemAttributesWizStep" afterVK="setAttributesWizStep" preloadWizardPage="true" required="true">
<command url="jsp/ootb/petCreateAttrWizStep.jsp" windowType="wizard_step"/>
</action>
</objecttype>
-------------------------------
-------------------------------
petCreateAttrWizStep.jsp :
<%@include file="/netmarkets/jsp/util/begin_comp.jspf"%>
<%@taglib prefix="attachments"
<jsp:include page="${mvc:getComponentURL('com.builder.PetSetAttributePanelBuilder')}"/>
<attachments:primaryAttachment/> <------- Where I want the component to appear, but noting happened.
<%@include file="/netmarkets/jsp/util/end_comp.jspf"%>
-------------------------------
If there's anywhere I've made a mistake, please let me know. Thank you.