Sample Code
Examples of Usage in Windchill Code
• Secondary attachments
Excerpt from the create change request wizard (<Windchill>\codebase\ netmarkets\jsp\changeRequest\create.jsp).
...
%><%@taglib prefix="attachments"
uri="http://www.ptc.com/windchill/taglib/attachments"
...
<jca:wizard helpSelectorKey="change_createChangeRequest"
buttonList="DefaultWizardButtonsWithSubmitPrompt"
formProcessorController="com.ptc.windchill.enterprise.change2.form
s.controllers.ChangeRequestFormProcessorController">
...
<jca:wizardStep action="attachments_step" type="attachments"
/>
...
</jca:wizard>
<attachments:fileSelectionAndUploadApplet/>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
• Primary attachments
Wizard JSP
<%@taglib prefix="attachments"
uri="http://www.ptc.com/windchill/taglib/attachments" %>
...
<jca:wizard buttonList="DefaultWizardButtonsWithSubmitPrompt">
...
<jca:wizardStep action="attributes_step" type="attachments"
/>
...
</jca:wizard>
.<attachments:fileSelectionAndUploadApplet/>
...
Attributes Step JSP
<%@taglib prefix="attachments"
uri="http://www.ptc.com/windchill/taglib/attachments" %>
...
<attachments:primaryAttachment>
...