Skip to main content
16-Pearl
January 24, 2022
Solved

JSP Task Form templates

  • January 24, 2022
  • 1 reply
  • 2113 views

The native task form templates were good for everything I need until last week but now I need to customise the task layout a little more.

There's a testpage.jsp task template which has samples of how to add the various tables and common elements of a task using tags, but there's no details of how to add a tab to the task or change the name of a tab.

 

For example, I like the to have the Set-up Participants table on a separate tab. I've used the <tags:workItemActions/> tag to get the Set-up Participants table.

 

<%@ taglib uri="http://www.ptc.com/windchill/taglib/components" prefix="jca"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>

<%@taglib uri="http://www.ptc.com/windchill/taglib/workItem" prefix="workItem"%>

<workItem:MyWorkItem/>
<c:if test="${myWorkItem != null && myWorkItem == true}">
	<tags:workItemActions/>
</c:if>

 

There's only one tab and it's name is Template View. I guess 'Template View' is default tab name you get if no name is given.

 

task form template.png

 

 

 

 

 

 

Best answer by rhart

You can use DOM explorer in your web browser dev mode to inspect the web page elements and re-create them in the custom JSP task template, and the correct tag for participants table is <tags:setUpParticipants/>

1 reply

rhart16-PearlAuthorAnswer
16-Pearl
January 27, 2022

You can use DOM explorer in your web browser dev mode to inspect the web page elements and re-create them in the custom JSP task template, and the correct tag for participants table is <tags:setUpParticipants/>