Developer Tools
JDeveloper
A URL service data control is an Oracle ADF data control for URL services, such as XML files that can be accessed through a URL. You can work in JDeveloper's IDE to quickly create a URL data control from an XML schema that defines the structure of the XML data stream. You can also create web pages that consume the URL service data control to display the contents of the XML file behind the URL.
Create a New Application and Project: Use the Create Application wizard to create a generic application.
Create an XML Schema: Use the Create XML Schema dialog to create a starter XSD document, then use sample code to create the XML schema definition.
Create a URL Service Data Control: Use the Create URL Service Data Control wizard to generate the data control.
Create a JSF Page: Use the Create JSF Page dialog to create a starter page for adding UI components.
Add the Data Control to the JSF Page: Drag and drop objects from the Data Controls panel to create databound UI components on your JSF page.
Enhance the Layout: Modify the table column widths and convert a column of text into text links.
Set the Labels: Use the Edit Attribute dialog to set control hints for the attribute labels.
The JDeveloper application is the highest level in the organizational structure. It stores information about the objects you are working with, while you are creating your application. It keeps track of your projects and the environment settings while you are developing. [ tell me more...]
URLDataControlApp.
Application templates provide you with a quick way to create the project structure for standard applications with the appropriate combination of technologies already specified. The new application created from the template appears in the Application Navigator already partitioned into tiered projects, with the associated technology scopes set in each project. [ tell me more...]
Model as the project name. Then click
Finish
.
When you complete the steps for creating a new application and project, the Projects panel in the Application Navigator should look like this: [ tell me more...]
The example in this set of cue cards takes the contents of a live RSS feed and displays the contents on a web page using databound Oracle ADF Faces components. [ tell me more...]
The live RSS feed you will use is the Oracle JDeveloper RSS feed that is available from the JDeveloper page on the Oracle Technology Network (OTN) web site. [ tell me more...]
The HTTP Analyzer allows you to examine the content of HTTP request/response package pairs. By default the HTTP Analyzer uses a single proxy on an analyzer instance (default is
localhost), but you can add additional proxies of your own if you need to. You can also set rules on an analyzer instance, so that the HTTP Analyzer runs using behavior determined by those rules. [
tell me more...]
http://www.oracle.com/technology/products/jdev/jdeveloper_news.xml in the
URL field. Then select
GET from the
Method dropdown list.
The XML Schema language, also referred to as XML Schema Definition (XSD), describes the structure of an XML document. [ tell me more...]
newsrssfeed.xsd as the file name.
src is appended after
Model (for example,
<JDEVELOPER_HOME>jdevelopermyworkURLDataControlAppModelsrc). Then click
OK.
When you complete the steps for creating an XML Schema, the Projects panel in the Application Navigator should look like this: [ tell me more...]
A URL service data control lets you access and consume the URL data stream in your application. The URL data control supports two data stream formats: XML data and spreadsheet data (delimiter separated values). [ tell me more...]
News. Click
Next
.
JDevNews in the
Na
me
field.
http://www.oracle.com/technology/products/jdev/jdeveloper_news.xml. Then click
Next
.
Since the JDeveloper RSS feed page is an XML document, you select XML as the format for the URL data source. [ tell me more...]
file:///C:/<JDEVELOPER_HOME>/jdeveloper/mywork/URLDataControlApp/Model/src/newsrssfeed.xsd, where
<JDEVELOPER_HOME> is the location where your JDeveloper is installed. Click
Next
. (It may take a while before the next wizard page displays.)
URL Test:URL Successful in the dialog. Click
Finish
.
When you complete the steps for creating a URL service data control, the Projects panel and Data Controls panel in the Application Navigator should look like this: [ tell me more...]
The JSF pages you create for your application using ADF Faces can be JSP pages (which have the file extension
.jsp) or JSP documents written in XML syntax (which have the file extension
.jspx). You will create a JSF page as an XML document in the example. [
tell me more...]
View as the project name.
NewsPage.jspx and confirm that
Create as XML Document (*.jspx)
is selected.
When you create a JSF page using the dialog, you can specify whether or not components on the page are exposed in a managed bean, to allow programmatic manipulation of the UI components. By default components are not exposed to managed beans. If you wish to bind components to managed beans, expand the Page Implementation section in the Create JSF Page dialog, then select one of the automatic binding options. [ tell me more...]
When you complete the steps for creating a JSF page, the visual editor should look similar to this: [ tell me more...]
A data control is a representation of a business service, and comprises a hierarchical display of available business objects, including collections, attributes, and methods. [ tell me more...]
The Data Controls panel comprises a hierarchical display of available business objects, including collections, attributes, and methods. [ tell me more...]
By default, JDeveloper automatically configures an integrated server named Integrated WebLogic Server that references a user-specific instance of Oracle WebLogic Server bundled with the IDE. Integrated WebLogic Server is a Java EE runtime service for packaged archive deployment. Based on zero-copy deployment, Integrated WebLogic Server lets you run and test an application and its projects as a Java EE application in a Java EE container. No special connection setup is required to use Integrated WebLogic Server. You can run the entire application, a project, or individual JSF pages. [ tell me more...]
When you complete the steps for adding the data control to the JSF page, the visual editor should look similar to this: [ tell me more...]
The JSP/HTML visual editor is integrated with other tools in the IDE such as the Structure window, Component Palette, and Property Inspector. When you make a change to a page in one of these tools, the change is reflected in the other tools as well. [ tell me more...]
When you used the Data Controls panel to drop a table onto the JSF page, JDeveloper inserted an ADF Faces Table component. As shown in the Structure window, the Table component contains an ADF Column component for each attribute named in the table binding. Each Column component contains another component that is bound to the attribute's value in order to display data. [ tell me more...]
#{row.title} should be populated in the
Text field in the Property Inspector.
#{row.link} should be populated in the
Destination field in the Property Inspector.
200.
300.
When you complete the steps for enhancing the layout, the visual editor should look similar to this: [ tell me more...]
Oracle ADF control hints provides a centralized mechanism for any JavaBeans-based business service data item to be rendered in a consistent manner across all client types. This mechanism, known as control hints, permits application developers to centralize certain UI settings across clients and thereby control many aspects of the way the UI interacts with the data item. Because the control hints are set at the level of the business service, it can also reduce the amount of UI coding. [ tell me more...]
News Title in the
Label Text
field. Click
OK.
The file that defines the value for the control hints you set depends on the specific business service used for the project. In the case of beans-based business services, (including JavaBeans, Enterprise JavaBeans, and Oracle TopLink), by default JDeveloper generates a standard
.properties file for the project and saves the control hint definitions as translatable strings. [
tell me more...]
Description and
Date, respectively.
The ADF control hints mechanism supports these control hint properties that you can customize: [ tell me more...]
When you run the JSF page again, it should look similar to this page in the browser: [ tell me more...]
Copyright © 1997, 2009, Oracle. All rights reserved.