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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Tab name and subtabs not displaying

fmadar
1-Visitor

Tab name and subtabs not displaying

tab.png

So I am trying to add a new tab but cant manage to make the name and the subtabs display...

I have the following code in the resource bundle file:

package com.ptc.training;

import wt.util.resource.*;

@RBUUID ("com.ptc.training.navigationRB")

public class navigationRB extends WTListResourceBundle {

        @RBEntry ("Training")

        @RBComment("Custom navigation tab")

        public static final String TRAINING_TAB = "object.trainingNavigatorTab navigation.description";

        @RBEntry ("Tab 1")

        @RBComment("Custom navigation tab")

        public static final String TRAINING_TAB1 ="training.tab1.description";

        @RBEntry ("Tab 2")

        @RBComment("Custom navigation tab")

        public static final String TRAINING_TAB2 ="training.tab2.description";

}

Custom-actionModels.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE actionmodels SYSTEM '../../actionmodels.dtd'>

<actionmodels>

<model name="navigator">

        <submodel name="search navigation"/>

        <submodel name="main navigation"/>

        <submodel name="trainingNavigatorTab navigation"/>

</model>

<model name="trainingNavigatorTab navigation" resourceBundle="com.ptc.training.navigationRB">

    <action name="tab1" type="training"/>

    <action name="tab2" type="training"/>

</model>

</actionmodels>

custom-actions.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE listofactions SYSTEM "actions.dtd">

<listofactions>

<objecttype name="training" class="" resourceBundle="com.ptc.training.navigationRB">

    <action name="tab1">

        <command url="/netmarkets/jsp/training/tab1.jsp" windowType="page"/>

    </action>

    <action name="tab2">

        <command url="/netmarkets/jsp/training/tab2.jsp" windowType="page"/>

    </action>

</objecttype>

</listofactions>

and the .jsp files

<%@page language="java" session="true" pageEncoding="utf-8"%>

<%@include file="/netmarkets/jsp/util/begin.jspf" %>

Placeholder for tab 1

<%@include file="/netmarkets/jsp/util/end.jspf" %>

Any idea where the problem is ?

ACCEPTED SOLUTION

Accepted Solutions

Hi Florian,

Have you configured eclipse to compile the classes. If you have configured it using cust_Windchill_src project any java file under com\ptc package will be skipped by compiler. Can you try creating the same file under ext package and check if that helps.

Regards,

Bhushan

View solution in original post

2 REPLIES 2

Hi Florian,

Have you configured eclipse to compile the classes. If you have configured it using cust_Windchill_src project any java file under com\ptc package will be skipped by compiler. Can you try creating the same file under ext package and check if that helps.

Regards,

Bhushan

fmadar
1-Visitor
(To:fmadar)

Hi Bhushan,

Changed the workspace from cust_Windchill_src and the package path outside the com\ptc folder and it worked.

Thank you!

Best regards,

Florian

Announcements


Top Tags