Professional Documents
Culture Documents
New Rational Application Developer Portal Tools PDF
New Rational Application Developer Portal Tools PDF
New Rational Application Developer Portal Tools PDF
5 portal tools
Jaspreet Singh (jaspsing@in.ibm.com) Software Architect IBM Mansi Gaba (mansigaba@in.ibm.com) Staff Software Engineer IBM This article provides detail on all the features that have been introduced or enhanced in Version 8.5 of the IBM Rational Application Developer portal and portlet development tools, including additions for mobile devices. The authors explain use of some of these tools and include code snippets and illustrated examples. Familiarity with Rational Application Developer will be helpful in following the article. 06 November 2012
Introduction
The IBM Rational Application Developer integrated development environment (IDE) for software developers includes tools that help in designing, developing, testing, and deploying portal applications. The workbench provides tools to design and develop portal applications that can integrate with Java Enterprise Edition (JEE) frameworks, including JavaServer Faces (JSF) technologies to access data. Plus, it provides tools and features to integrate seamlessly with clientside JavaScript libraries, such as the Dojo widgets, to visualize data. You can also use it to test your application and publish it to a WebSphere Portal server.
WebSphere Portal 8.0 runtime support to create and test portlet projects
Rational Application Developer 8.5 has a new server runtime environment (shown in Figure 1), server type (Figure 2), and stubs for WebSphere Portal 8.0 support.
Copyright IBM Corporation 2012 What's new in IBM Rational Application Developer 8.5 portal tools Trademarks Page 1 of 12
developerWorks
ibm.com/developerWorks/
You can create portlets targeted to WebSphere Portal Version 8.0 runtime and then publish or deploy to it, as well. This allows creation of portlets that leverage new features in the WebSphere Portal Version 8.0.
Page 2 of 12
ibm.com/developerWorks/
developerWorks
Page 3 of 12
developerWorks
ibm.com/developerWorks/
The Manage Features wizard lists the project facets, including all facet names and versions. This makes using all new features of JSF 2.0 on WebSphere Portal very convenient
Page 4 of 12
ibm.com/developerWorks/
developerWorks
Rich page Editor for portlet development with CSS3 and HTML5
The browser-based editor introduced in Version 8.5 helps you preview the Facelet or JavaServer Page (JSP), as they would appear in a web browser. The rich page editor provides WYSIWYG (preview) designing capabilities and supports HTML5 and CSS3 editing. It also offers instant preview and Content Assist help. You can create and edit JSP portlet files using the rich page editor. It shows different representations of your portlet page, with Source, Split, and Design view options. The editor uses embedded browsers to produce a visual representation of a page in the design view. For example, you drag any palette item onto a Border Container, as shown in Figure 5, and use the Split view to see both the Design (preview) and Source (code) views.
Page 5 of 12
developerWorks
ibm.com/developerWorks/
Figure 6. Web 2.0 features in the New Portlet Project creation wizard
ibm.com/developerWorks/
developerWorks
simulator offers other features, such as switching orientation of the device, adding multiple devices simultaneously, mapping devices to their actual physical sizes. It is a very convenient and effective new feature to aid you in mobile portlet application testing.
Page 7 of 12
developerWorks
ibm.com/developerWorks/
The different portlet view JSPs created for devices as shown in the project structure of a deviceenabled portlet project (see Figure 9).
Page 8 of 12
ibm.com/developerWorks/
developerWorks
Dojo markup and other boilerplate content is automatically generated when any Dojo mobile widget is dragged onto a portlet JSP file. Listing 1 shows an example of code generated for Dojo mobile widgets.
developerWorks
ibm.com/developerWorks/
classes, such as smartphone or desktop. These are referred in the portlet class to render the specific page based on the device class, as shown in Figure 11.
Figure 11. Screen capture of code generated automatically for a device class
Summary
Version 8.5 advances Rational Application Developer in both multichannel development capabilities and the tools it provides for developers to create exceptional web experiences for end users. Both the tools and the ease of using them make it a very intuitive and productive to create the next generation of portal applications that give businesses an extra edge.
Page 10 of 12
ibm.com/developerWorks/
developerWorks
Resources
Learn Browse the Rational Application Developer for WebSphere Software page on developerWorks for links to technical articles and many related resources. Also check these resources related to this article: Read What's new in Rational Application Developer 8.5, and see the Rational Application Developer Version 8.5 information center for documentation. Check the Portal tools overview and the portal tool videos about creating a JSF 2.0 portlet project, mobile device support, plus a viewlet that demonstrates WebSphere Portal 8.0 runtime support for creating and publishing portlet. Explore the Optional software available that can support and enhance your work. Subscribe to the developerWorks weekly email newsletter, and choose the topics to follow. Stay current with developerWorks technical events and webcasts focused on a variety of IBM products and IT industry topics. Attend a free developerWorks Live! briefing to get up-to-speed quickly on IBM products and tools, as well as IT industry trends. Watch developerWorks on-demand demos, ranging from product installation and setup demos for beginners to advanced functionality for experienced developers. Improve your skills. Check the Rational training and certification catalog, which includes many types of courses on a wide range of topics. You can take some of them anywhere, any time, and many of the Getting Started ones are free. Get products and technologies Try Rational Application Developer for WebSphere Software, free. Evaluate IBM software in the way that suits you best: Download it for a trial, try it online, use it in a cloud environment, or spend a few hours in the SOA sandbox learning how to implement service-oriented architecture efficiently. Discuss Check Rational Application Developer wiki and in the Portal tools section there to keep up with news and to contribute. Join the Development Tools forum to ask questions and participate in discussions. Rate or review Rational software. It's quick and easy. Share your knowledge and help others who use Rational software by writing a developerWorks article. Find out what makes a good developerWorks article and how to proceed. Follow Rational software on Facebook, Twitter (@ibmrational), and YouTube, and add your comments and requests. Ask and answer questions and increase your expertise when you get involved in the other Rational forums, cafs.
Page 11 of 12
developerWorks
ibm.com/developerWorks/
Mansi Gaba Mansi Gaba is a staff software engineer at the IBM Software Labs in Delhi, India. Her areas of expertise include JavaServer Faces (JSF) portlet bridge, the JSR-286 Java Portlet specification, and portlet server tools. She has completed Sun Certified Java Programmer, Sun Certified Web Component Developer, and Oracle Certified Professional, Java EE 5 Business Component Developer. Copyright IBM Corporation 2012 (www.ibm.com/legal/copytrade.shtml) Trademarks (www.ibm.com/developerworks/ibm/trademarks/)
Page 12 of 12