tell me more icon Finishing the Code and Running the JSF Page

To finish this simple JSF application, you will add code in the Java source file, The sample code calls the business method saveInfo that you added to the bean in an earlier cue card. The method takes two parameters and then, instead of saving the data, simply writes the data to the console.

To edit the file, you will select the tab to at the top of the editor window to bring the source editor forward.

When developing a real application in JDeveloper, you will need to consider how to persist data in a meaningful and efficient way. You may also encounter situations where using a simple JavaBean for the data model is not sufficient, or you may need to aggregate data from a variety of sources. In these cases, you can work with data sources based on entirely different business service technologies, for example:

  • Oracle ADF Business Components (available only in the Studio edition of JDeveloper)
  • Enterprise JavaBeans (EJB)
  • Oracle TopLink, which helps to map your Java classes and EJBs to database tables.
  • Web services, as an alternative to the above business services when you don't need to create the back-end business service but want to expose existing business services (including EJB components, stored procedures in the database, or other business services written in Java or any other language).

Whether you use JSF with JavaBeans, Enterprise JavaBeans (EJB), Oracle TopLink, or Web services in the model layer, JDeveloper's productive coding and data binding tools enable you to implement the application back end and integration code safely and easily.

When you want to work with a specific business service, you can open the New Gallery and use the provided wizards and dialogs to create or, in the case of web services, expose the entities in your model project.

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,