Basic Customization > User Interface Customization > Customizing HTML Clients Using the Windchill JSP Framework > Attribute Panels > Solutions > General Procedures > How to Modify the Panel View JSP
  
How to Modify the Panel View JSP
The view is defined in the AttributePanelConfig. By default it is <Windchill>/codebase/WEB-INF/jsp/components/attributePanel.jsp, which is the view for an advanced attribute panel. If you are creating a simple attribute panel, you should modify the view to use <Windchill>/codebase/WEB-INF/jsp/components/simpleAttributePanel.jsp.
You can modify the view in the buildAttributePanelConfig() method by calling the setView() method on the AttributePanelConfig.
For example:
panelConfig.setView(“"/components/simpleAttributePanel.jsp"”;
You could also modify the view to use a custom JSP if you want to display other components on the page or include additional javascript. The path name of the JSP passed to the setView() method should be relative to <Windchill>/codebase./WEB-INF/jsp.
To display your advanced panel in your custom JSP use the following tag for an advanced panel:
<mvc:attributePanel/>
or this tag for a simple attribute panel:
<mvc:simpleAttributePanel/>
You should include the following taglib directive in your custom JSP:
<%@ taglib uri="http://www.ptc.com/windchill/taglib/jcaMvc" prefix="mvc"%>
Note that any JSP page that renders a MVC component should include the following directive before rendering any page content:
%@include file="/netmarkets/jsp/util/begin_comp.jspf"%
and the following directive at the end of the page:
<%@ include file="/netmarkets/jsp/util/end_comp.jspf"%>
These should be used in lieu of any other include directives for *begin* or *end* files.