![]() All code completions will be available to you in the NetBeans editor, both for scriptlets as well as for any tag libraries you are referencing. This will create ie as a BasicTasklet object and then you can use ie.getGroup, ie.getParam, etc., just like you were writing a JSP page. Then, at the first opportunity, add this scriptlet: (and any other classes you might use out of infoengine or windchill) To do this, you will need to import the following: This means that instead of just referencing getParam, you’ll always use ie.getParam, just like you would do in an Info*Engine JSP page. Essentially, treat it like a jsp page except for the use of the tag. task file into operating and compiling as a BasicTasklet. Since the NetBeans JSP editor assumes that the page is a SimplifiedJSPServlet rather than a BasicTasklet, you need to trick the. When you have properly configured everything, your Web Pages directory will look something like this: You will now get tag completion on the webjects, plus code completion on any scriptlet code you need to put into the task. task file will appear like it's a web page and be edited like it is a JSP file. Anything you create in the tasks directory as a. Under the Web Pages folder, create tasks and/or codebase directories. tld files into the WEB-INF directory of the project (copy them from your Windchill/codebase/WEB-INF directoryĪdd any Cognos, Info*Engine, and / or Windchill libraries you’ll need to the project so NetBeans can do code completion and compilation for you from those classes. Edit the web.xml for the project, find the line with and add this immediately after it:Ĭopy a set of the Info*Engine. Whenever you need to edit Info*Engine Tasks or JSP pages, create a Web App Project in NetBeans. Once you’ve done this, you can do New “InfoEngine Task” (or whatever you name the template) from any folder in your project and it will copy the template file into the name you specify, giving you a consistent starting point for editing any task file. Repeat this for as many templates as you want to create. Identify the template file you want to use in NetBeans’ New menu. ![]() Use the NetBeans Tools / Templates menu item to get this dialog:Ĭreate a New Folder and call it Windchill, then select it and do an Add. InfoEngineJSP – A JSP set up for use with Info*Engine webjects.CognosTask – An Info*Engine task with specialized comments for use as Cognos queries.InfoEngineTask – A typical Info*Engine task.I have created templates in NetBeans for three types of files: task with an associated file type of JSP, so it will operate with JSP editing rules.Ĭreate NetBeans Templates for Info*Engine and Cognos Tasks task extension in NetBeans, use Options / Miscellaneous / Files: task will be the source tree’s extension for Info*Engine tasks. xml as they are deployed to your Windchill server.įor the duration of this tip, we’ll assume that. You should have whatever build and installation scripts rename the files back to. Once you have created task files with a non-standard extension, there are certain features (such as task registration from embedded comments in the task files) that will not work. task) and make that your standard file extension in your source tree. So just choose another extension (I typically use. However, you aren’t going to coerce an XML file to be anything other than an XML file in one of the IDEs without serious repercussions. Info*Engine tasks are actually modeled after JSP pages, so you need to get the IDE to treat them as such. ![]() The key to the whole process is to choose a different file extension than the standard XML extension used by Info*Engine. However, did you know that you can also make the IDE edit Info*Engine tasks? IDEs such as NetBeans allow a developer to be significantly more productive when editing Java code or JSP pages. Tip of the Month : Using NetBeans to Edit Info*Engine Tasks PTC Technical Specialists Newsletter - January 2011 You can read the Enterprise Product Focus of the Month here also authored by Bruce Hulse and you can also read the Desktop Product Focus of the Month here and the Desktop Tip of the Month here authored by Jon Jarvis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |