Tags:
not added yet
1Widget Development and Deployment QuickStart Guide
Table of Contents
1.1How to write and deploy a custom Widget
This guide provides general hints for widget development. PTC recommends verifying specific requirements and compatibility with your Codebeamer version.
1.1.1PrerequisitesBefore starting, make sure that the following are installed:
1.1.2Set up the Development Environment1.1.2.1Step 1. Import the projectOpen Eclipse and choose the File ► Import... menu option:
Choose Existing Maven Projects, and select the extracted project:
When the import is successful, then the project appears on the left side:
1.1.2.2Step 2. Rewrite the path of cb.jarThe Maven build process will download all the dependencies, but the path to cb.jar have to be set manually. Its standard location is CODEBEAMER_HOME/tomcat/webapps/cb/WEB-INF/lib/cb.jar.
1.1.3Build the codeThis example project contains a simple Widget, which has a single field:
And renders this field as text:
First right click on the pom.xml file, and choose Run As ► Maven build...
Type "clean install" into the Goals field and click on [Run].
The console tab should display something like this:
The target directory contains the compiled jar file:
1.1.4Deploy the Widget1.1.4.1Step 1. Stop the running codebeamer instanceSee 1.1.4.2Step 2. Copy the Widget jar fileCopy the jar file created by the Maven build process (demo-widget-0.0.1.jar) to CODEBEAMER_HOME/tomcat/webapps/cb/WEB-INF/lib.
1.1.4.3Step 3. Start the Codebeamer instanceSee 1.1.4.4Step 4. Verify that the Widget is deployedWhen properly deployed, the Widget shows up in the proper category on Widget Browser:
1.1.5Troubleshooting & Important Notes1.1.5.1i18n of labelsEvery widget needs a couple of labels to render properly which need to be specified in the my-ApplicationResources.properties file inside the src/main/resources folder. See Our recommended format for name and description:
Mandatory format for attribute labels:
If the my-ApplicationResources.properties file is already in use for other purposes, merge the widget-related labels into that file! (Its expected location is CODEBEAMER_HOME/tomcat/webapps/cb/WEB-INF/lclasses) 1.1.5.2Widget not recognizedcodebeamer application uses Spring annotations to discover Widgets. If the widget does not show up in the Widget Browser, then double check these:
1.1.5.3Widget not available
Custom widgets for codebeamer are currently not supported on codebeamer X
![]() If a Dashboard contains a Widget, which is not present in the system, then codebeamer shows the following error:
|
Fast Links
![]() codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, and help us understand your interests and provide more personalized services to you, both on this website and through other media. With your permission, we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. Your preferences will apply to this website only.
Note that user-behavior analytics are being captured on this server to improve the Codebeamer user experience.