29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You can set up filters to show only the tasks you really want to see by using the<br />

filter icon ( ).<br />

In Figure 5-1 on page 78, the filter has been set to on in this case to limit the<br />

items seen to the current file. You can see that one item is in the Tasks view,<br />

indicating a problem in the code. Double-clicking the task will bring the line where<br />

the error is into focus in the editor. A corresponding icon appears in the editor<br />

where the problem is. In this case, it is a broken link. Once the problem is<br />

corrected, the entry in the Tasks view will disappear.<br />

Quick Edit view<br />

The Quick Edit view lets you add short scripts to your HTML and JSP files. The<br />

Quick Edit view opens when you select a tag while editing an HTML or JSP file in<br />

Page Designer. For example, if you select a button tag on a JSP page, you can<br />

then associate a click event with that button and add a script to it.<br />

The left pane displays a list of possible events associated with the selected tag.<br />

The right pane is a script editor. After selecting an event in the left pane, you can<br />

add a script for that event in one of the following ways:<br />

► Enter the script directly.<br />

► Drag and drop a snippet from the Snippets view.<br />

► Insert simple actions by selecting from a list.<br />

The icons on the toolbar allow you to perform the following actions:<br />

► Select a script language, for example Java or JavaScript.<br />

► Apply the script to the current HTML or JSP file.<br />

► Reset the script currently in the Quick Edit view back to the original document<br />

contents.<br />

► Use the drop-down menu to perform additional actions:<br />

– Filter the list of events in the events list.<br />

– Insert or edit the script for a simple action by selecting from a list. In some<br />

cases, a dialog box opens so you can enter variables related to the simple<br />

action.<br />

As you add or change scripts in the Quick Edit view, the HTML or JSP file is<br />

updated if you select another tag, select another event for scripting, or click the<br />

Apply Script button on the toolbar.<br />

Besides scripting events, you can use Quick Edit to modify SCRIPT, jsp:scriptlet,<br />

jsp:expression, and jsp:declaration scripts.<br />

Chapter 5. Working with HTML 85

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!