Guidelines for JavaScript Guidelines for Writing Java Portlets

6-12 Oracle Fusion Middleware Developers Guide for Oracle Portal pcbrowser, pdabrowser, or microbrowser cell phones. A portlet developer may use this attribute to adjust the responses layout or quantity of data.

6.1.4.6 Tailor Personalization Pages

A single portlet instance must maintain a single set of user personalizations spanning all devices, mobile and desktop. Therefore, the same personalization page appears even if the instance is shared between a standard and mobile page, and some fields apply only to one environment, desktop or mobile. In this situation, the portlet should identify these fields that pertain to only one environment. For example, a portlet might display a mobile-only section on its personalization page. Furthermore, because the mobile capability is configurable, a portlet could remove mobile-only references from its personalization page when it detects that the mobile functionality is disabled.

6.2 Introduction to Java Portlet Specification JPS and WSRP

Organizations engaged in enterprise portal projects have found application integration to be a major issue. Until now, users developed portlets using proprietary APIs for a single portal platform and often faced a shortage of available portlets from a particular portal vendor. All this changes with the introduction of the following standards: ■ Web Services for Remote Portlets WSRP ■ Java Portlet Specification JPS 1 based on JSR 168 These two standards enable the development of portlets that interoperate with different portal products, and therefore widen the availability of portlets within an organization. This wider availability can, in turn, dramatically increase an organizations productivity when building enterprise portals. WSRP is a Web services standard that enables the plug-and-play of visual, user-facing Web services with portals or other intermediary Web applications. Being a standard, WSRP enables interoperability between a standards-enabled container and any WSRP portal. WSRP defines the following: ■ Web Services Definition Language WSDL interface for the invocation of WSRP services ■ Markup fragment rules for markup emitted by WSRP services ■ The method to publish, find, and bind WSRP services and metadata JPS is a specification that defines a set of APIs to enable interoperability between portlets and portals, addressing the areas of aggregation, personalization, presentation, and security. JPS defines container services which provide the following: ■ A portlet API for coding portlet functionality ■ The URL-rewriting mechanism for creating user interaction within a portlet container ■ The security and personalization of portlets Oracle actively participates in the WSRP committee and is also a member of the expert group for JPS. 1 The Java Portlet Specification 1.0 arose from Java Specification Request 168 and the JSR168 Expert Group.