Understanding the IBM WebFacing Tool: A Guided Tour (IBM Illustrated Guide series)

You are going to link index.html to a cascading style sheet. The style sheet used in this exercise is a sample included in the workbench. The first step, however, is to locate the index.html file and open it in Page Designer.

Opening Page Designer

Page Designer is comparable to SDA for 5250 panels or a GUI builder for GUI windows , but, as its name indicates, it helps with designing Web pages. As in SDA or CODE Designer, instead of typing source statements in an editor, Page Designer creates the source for you from your design choices. Here, the generated source consists of HTML tags instead of DDS statements.

To open Page Designer, in the Development Studio Client workbench,

You should now have the WebFacing project view in your workbench environment, as shown in Figure 13.1.

Figure 13.1: WebFacing project with index.html file

Page Designer appears in the upper right pane of the workbench and displays the index.html page as the WebFacing Tool created it (Figure 13.2).

Figure 13.2: Page Designer displaying the design page

Make sure that you are on the design page in Page Designer:

Working with Page Properties

First you need to move the links down on the page:

To change the page properties,

The Page Properties dialog opens, as shown in Figure 13.5.

Figure 13.5: Page Properties dialog

When this page displays in a browser, the title in the Window title bar will be Order Entry.

Linking a Cascading Style Sheet to the Web Page

Now you will add a style to your index.html page. You can use a style employed by your company, or you can use one of the sample style sheets provided with Development Studio Client.

In the lower left pane of the workbench,

You should see thumbnail icons of all the available styles, as shown in Figure 13.6.

Figure 13.6: Page Designer, linking a style to the Web page

In the thumbnail view,

After a short while, the style sheet properties are applied and the colors in the page change to the style sheet definitions, as shown in Figure 13.7.

Figure 13.7: Index.html page with style properties applied

Designing and Adding a Logo

Now that you have specified the overall Web page look, I want you to use the WebArt Designer to create a logo for the page.

To start the WebArt Designer,

The WebArt Designer displays, as shown in Figure 13.9.

Figure 13.9: WebArt Designer dialog

The WebArt designer shows the template gallery on the left, where you will find sample logos, buttons , rollovers, images, and more. The white area in middle of the dialog is the canvas that you use to create and change objects. In this exercise, I want you to create a logo from scratch. (You can also select one from the template gallery as the basis for your own logo.)

This invokes the Logo Wizard dialog. In this dialog, shown in Figure 13.10,

Figure 13.10: Logo Wizard dialog

Note the creation of a sample logo in the upper right corner.

The Select Color page displays, as shown in Figure 13.11.

Figure 13.11: Logo Wizard with Select Color page

The Select Outline page appears as shown in Figure 13.12.

Figure 13.12: Logo Wizard with Select Outline page

The Select Text Effect page of the Logo Wizard displays, as shown in Figure 13.13.

Figure 13.13: Logo Wizard with Select Text Effect page

You will return to the WebArt Designer window, as shown in Figure 13.14.

Figure 13.14: WebArt Designer with new logo object

Resize the logo object on the canvas:

Now you need to save this object. First, you need to save it as a WebArt object so that you can work with it later in WebArt Designer. Afterward, you will save it in another format for use with your Web page.

The Save Object dialog appears, as shown in Figure 13.15.

Figure 13.15: WebArt Designer save dialog

Now you need to save the object in a format that can be displayed on a Web page.

The Save Wizard dialog displays, as shown in Figure 13.16.

Figure 13.16: Save Wizard with Specify Objects page

The Select File Format page (Figure 13.17) displays.

Figure 13.17: Save Wizard with Select File Format page

On the GIF Format page that appears (Figure 13.18),

Figure 13.18: Save Wizard with GIF Format page

On the Save As dialog that displays (Figure 13.19),

Figure 13.19: Save As dialog

If a message box like the one in Figure 13.21 displays,

Figure 13.21: Message dialog when saving object as GIF file format

If the GIF Attribute Settings dialog looks like Figure 13.22,

Figure 13.22: GIF Attribute Settings dialog

Close WebArt Designer:

You return to the WebFacing perspective, displaying the WebFacing Projects view.

Switch to the Navigator view and find your logo:

The mylogo.gif file appears in the list as shown in Figure 13.23.

Figure 13.23: View of Web Content directory with mylogo.gif.

If it does not appear, you might need to refresh the list:

Hopefully the file now appears in the Web Content folder. If it does not, go to Windows Explorer and search for mylogo.gif on your hard drive, then move it to the Web Content folder in the Development Studio Client workspace. If you did not use the default location, as shown in Figure 13.20, do a search for the workspace and the wflabxx directory. Move the mylogo.gif file into the Web Content subdirectory under the wflabxx directory.

Drag the logo to your Web page, which is still open in Page Designer. (If Page Designer is closed, double-click index.html to open the tool.)

In the Navigator view,

You have just placed the logo on the design page, as shown in Figure 13.24.

Figure 13.24: Dragging the mylogo.gif file onto the design page

Adding a Heading 1 Tag to the Page

In this section, you will insert a large heading below the logo:

A frame appears where you can enter text:

Now you will insert one of the sample pictures included with Development Studio Client.

Adding a Picture to the Page

At the bottom left of the workbench,

On the dialog pane beside the Gallery view,

The design window now contains a picture, as shown in Figure 13.28.

Figure 13.28: Design window with picture added

You are almost finished. You just need to add some moving text to the page.

Adding Moving Text to the Page

Your design window will look similar to Figure 13.29.

Figure 13.29: Web page with Heading 3 frame

Leave the cursor positioned inside the Heading 3 frame.

The Insert Marquee dialog displays as shown in Figure 13.31.

Figure 13.31: Insert Marquee dialog

Those two last selections just specify that the text is not to slide indefinitely. If you think your user would prefer some more movement on the page, feel free to change these settings.

The design page should look like Figure 13.32.

Figure 13.32: Design page with Header 3 text

To save some space, remove some of the line break tags:

To see the page as it would appear in a browser,

You will notice that your Heading 3 text is sliding (see Figure 13.34).

Figure 13.34: Web page shown in browser, with text moving

Changing the Text Color in Page Designer

You might notice that the text color and the background interfere with each other a little bit. One easy way of changing this is to apply another color to certain areas of the text. To complete that task, go back to the design page:

On the bottom dialog underneath the Page Designer window,

Except for a bit of clean-up, you are finished; now the selected text will display with the color you chose.

Cleaning up the Page

One more thing you need to do is remove the default text added by the WebFacing Tool, as shown in Figure 13.36.

Figure 13.36: Text to be deleted from the Web page

In the Navigator view or WebFacing Projects view,

Your newly designed index.html page will open, and you can run your application.

Move forward to Analysis (page 288). (In the next section I describe the same scenario, except as it applies to the Version 4.0 user interface.)

Категории