cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

JSP Plumbing - Let's try something different

avillanueva
22-Sapphire II

JSP Plumbing - Let's try something different

I have a scriptlet in my JSP page that gets a list of paired parts to
compare BOMs for. The end result is a list of tables, one for each BOM
comparison.

<%

Persistable p = (Persistable) (commandBean.getPageOid()).getRef();

List pairs;

if (p instanceof WTChangeOrder2)

{

WTChangeOrder2 ecn=(WTChangeOrder2)p;


pairs=customization.change.GoodrichECReportServiceImpl.getPartListsPair(
ecn);

}

%>



The objects in pairs are not persistables. For each item in the list, it
should output a table for a non Persistable bean class holding the BOM
comparison information. So as I loop through and get each pair, how do I
call it out in the getModel tag below? Do I have to wrap the pair in a
NMSimpleOid object?



<jca:getmodel var="tableModel" descriptor="${tableDescriptor}"&lt;br"/>

serviceName="customization.change.GoodrichECReportServiceImpl"

methodName="getBOMDifferences">

<jca:addserviceargument value="???????"&lt;br"/>type="customization.change.PartsListPair"/>

</jca:getmodel>

0 REPLIES 0
Announcements


Top Tags