Unit 2 - Lesson 2 - Client Fundamental 1 Flashcards
Define UIM
Curam User Interface Metadata
XML format that describes content and layout of Curam client screens
Best to use XML editor
Describe benefits of using interface metadata (UIM)
Ease of development
Increased developer productivity
Promotes consistent user interface
Significantly reduces the number of client bugs
Makes it easier to change between different types of a client
Describe the UIM elements that control the look of a page
m
Define the use of the Localisation and externalising strings
No hardcoded text in UIM
Localised labels, titles etc stored in .properties file
Each UIM can have more than one .properties file - one per language.
All UIM files have a corresponding properties file.
Set LOCALE_LisT as variable for generators in project’s build.bat. Add locales to the list for another version of pages.
BankAccount_createAccount_en_CA.properties (UIM name + locale)
Generators create all JSPs in locale-specific folder.
URL can be used to specify locale-language version.
Property files are name/value pairs
PAGE Element
Root element, everything else is nested within it.
Required attribute: PAGE_ID
Must match the file name in which the PAGE is described.
Used to reference the page from LINKs.
Must have at least 1 child.
Describe client generation process
EJBServer/build generated
webclient/build client
Stage 1:
EJBServer build.bat generated -> model.xml & ServerAccessBeans.xml
Client generator. Model.xml & ServerAccessBeans.xml -> Bean generator -> Searver Access Beans (TextHelper) & Bean doc (index.html)
Stage 2:
XML (ServerAccessBeans) + UIMs + Properties -> UIM Compiler -> XML files (Intermediate XML)
(Extracted to webclient/build)
Stage 3:
Intermediate XML run through the JSP generators to create the complete JSPs.
XML file -> JSP Generator -> JSP files, XML file (Catalogue for the Front Controller - Struts-Config.xml)
Describe how to use the generated bean document
build beandoc created a HTML version of ServerAccessBeans.xml
Connect the client screen to the server side
m
Define and use common UIM elements:
PAGE_TITLE - builds the title for a page
CONNECT - Connects to data
SOURCE/TARGET - Specifies if a field is readable or editable
CLUSTER - Groups related data fields and supports complex page layouts
FIELD - Allows display or data entry
PAGE_PARAMETER - Stores key values that are passed into a page
SERVER_INTERFACE - Connects a page to server-side calls
PAGE_TITLE element
Display title of the page using Icon, static text and variable text retrieved from the server.
Attributes: DESCRIPTION, STYLE, ICON
Elements: CONNECT
CONNECT element
Associates parent element to some data Can have one or more of: SOURCE - Where the values come from TARGET - Where the value goes INITIAL - A display value you can use to hide the real value
Attributes: NONE
Elements: SOURCE TARGET INITIA:
SOURCE element
NAME attribute - one of the following values:
TEXT - To read a property from the properties file
CONSTANT - To read a property from Constants.properties
PAGE - To read a PAGE_PARAMETER of this page
The name of the SERVER_INTERFACE element
PROPERTY attribute:
Qualified name of the attribute or parameter.
TARGET element
NAME attribute:
PAGE - To send a PAGE_PARAMETER to another page
The name of the SERVER_INTERFACE element
PROPERTY attribute:
Qualified name of the attribute or parameter.
CLUSTER element
Defines the layout for a group of logically related fields.
At least on FIELD and options CONTAINERs.
Can add CLUSTER & LISTS to a cluster to display side by side (needs NUM_COLS set).
Has TITLE attribute and TITLE child element.
Attributes:
TITLE, DESCRIPTION, WIDTH, LABEL_WIDTH, SHOW_LABELS, NUM_COLS, STYLE, BEHAVIOUR, LAYOUT_ORDER, SUMMARY, SCROLL_HEIGHT
Elements:
FIELD, CONTAINER, ACTION_SET, CLUSTER, LIST, CONDITION, DESCRIPTION, WIDGET.
FIELD element
Defines a data entry or display field and its associated label
Generators create appropriate CONTROL based on property type e.g. checkbox for boolean, hidden stars for SEC_PASSWORD, text fields for Strings and Number.
CONTROL attribute can be set to specify whether code table hierarchies are displayed vertically or horizontally.
Have at least one CONNECT element.
Attributes:
LABEL, WIDTH, WIDTH_UNITS, HEIGHT, ALIGNMENT, USE_DEFAULT, USE_BLANK, CONTROL, DESCRIPTION
Elements:
LABEL, LINK, SCRIPT, CONNECT