Oracle
  Home arrow Oracle arrow Working with Themes and Templates
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ORACLE

Working with Themes and Templates
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2007-03-29


    Table of Contents:
  • Working with Themes and Templates
  • Switching an Application’s Theme
  • Templates
  • Editing an Existing Template

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Working with Themes and Templates
    ( Page 1 of 4 )

    Most experienced programmers understand the advantages of separating the look and feel of an application from the application's logic. Oracle uses HTML DB to accomplish this. This article introduces you to the themes and templates that HTML DB provides. It is excerpted from chapter 6 of the Oracle HTML DB Handbook, written by Lawrence Linnemeyer and Bradley Brown (McGraw-Hill, 2006; ISBN: 0072257687).

    HTML DB utilizes various templates to implement the look and feel of an application. A theme is a collection of these templates. This arrangement allows for a single implementation point of an application’s look and feel and the segregation of visual elements from the application logic and database access. Development tasks can be divided up by skill sets; one developer can work on the look and feel of the user interface while another simultaneously works on the business logic and flow of the application. A centralized implementation of the visual elements also allows changes to the entire application to be made in a single location.

    Templates are made up of HTML and substitution variables that allow the page to be dynamically generated at run time. An application is associated with a theme, which has a default set of templates that will be utilized throughout the application unless a different template is selected during development. Here are the different types of templates available:

    • Button templates
    • Calendar templates
    • Label templates
    • List templates
    • Menu templates
    • Page templates
    • Popup LOV templates
    • Region templates
    • Report templates

    In this chapter, we will examine the use of themes, the different types of templates available, and the use of substitution strings in template definitions. Also, we will dig into great detail on page templates.

    Themes

    The look and feel of an application is controlled by the theme that is associated with the application. Themes are managed on the Themes page, which is accessible from the Themes link in the User Interface section of the Shared Components drop-down menu, as shown here.

    The drop-down menu is activated by clicking the down arrow on the right side of the Shared Components navigation icon. If you click on the icon, it will navigate you to the Shared Components page, where you can click on the Themes link in the User Interface section.

    From this page, you can create a new theme, edit existing themes, delete a theme, or switch the current theme for the application. The current theme for an application is indicated by a check mark in the Current column on the Themes page, as shown in Figure 6-1. You can easily switch the current theme for an application. Starting in version 1.6, you are allowed to copy templates from other applications within your workspace; previously, this had not been possible. From this page, you can also access the individual templates that belong to a theme by clicking on the magnifying glass icon in the View column for the theme. Note that the Themes page has two different displays: a summary display and a detail display. You switch between displays by selecting from the display LOV and clicking on the Go button. You can also display themes by icons, although this view is the least informative.


    Figure 6-1.  Themes page



     
     
    >>> More Oracle Articles          >>> More By McGraw-Hill/Osborne
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek