How to Add a selectManyShuttle or selectOrderShuttle Component

9-30 Web User Interface Developers Guide for Oracle Application Development Framework { ifAdfRichSelectManyShuttle.SELECTION == event.getPropertyName { var shuttleComponent = event.getSource; var lastChangedValue = AdfShuttleUtils.getLastSelectionChangeshuttleComponent, event.getOldValue; var side = AdfShuttleUtils.getSideshuttleComponent, lastChangedValue; ifAdfShuttleUtils.isSelectedshuttleComponent, lastChangedValue { do something... } else { do something else } ifAdfShuttleUtils.isLeadingshuttleComponent, lastChangedValue { queue a custom event see serverListener to call a java method on the server } } }

9.8 Using the richTextEditor Component

The richTextEditor component provides an input field that can accept text with formatting. It also supports label text, and messages. It allows the user to change font name, size, and style, create ordered lists, justify text, and use a variety of other features. The richTextEditor component also can be used to edit an HTML source file. Two command buttons are used to toggle back and forth between editing standard formatted text and editing the HTML source file. Figure 9–30 shows the rich text editor component in standard rich text editing Mode. Figure 9–30 The richTextEditor Component in Standard Editing Mode Figure 9–31 shows the editor in source code editing mode. Figure 9–31 The richTextEditor in Source Editing Mode Other supported features include: ■ Font type ■ Font size ■ Linkunlink ■ Clear styling Using Input Components and Defining Forms 9-31 ■ Undoredo ■ Bolditalicsunderline ■ Subscriptsuperscript ■ Justify left, middle, right, full ■ Orderedunordered lists ■ Indentation ■ Text colorbackground color ■ Rich text editing modesource code editing mode The value entered text of the rich text editor is a well-formed XHTML fragment. Parts of the value may be altered for browser-specific requirements to allow the value to be formatted. Also, for security reasons, some features such as script-related tags and attributes will be removed. There are no guarantees that this component records only the minimal changes made by the user. Because the editor is editing an XHTML document, the following elements may be changed: ■ Nonmeaningful whitespace ■ Element minimization ■ Element types ■ Order of attributes ■ Use of character entities The editor supports only HTML 4 tags, with the exception of: ■ Script, noscript ■ Frame, frameset, noframes ■ Form-related elements input, select, optgroup, option, textarea, form, button, label, isindex ■ Document-related elements html, head, body, meta, title, base, link The richTextEditor component also supports tags that pull in content such as applet, iframe, object, img, and a. For the iframe tag, the content should not be able to interact with the rest of the page because browsers allow interactions only with content from the same domain. However, this portion of the page is not under the control of the application. While the richTextEditor component does not support font units such as px and em, it does support font size from 1 to 7 as described in the HTML specification. It does not support embed or unknown tags such as foo. On the client, the richTextEditor component does not support getValue and setValue methods. There is no guarantee the component’s value on the client is the same as the value on the server. Therefore, the richTextEditor does not support client-side converters and validators. Server-side converters and validators will still work. The rich text editor delivers ValueChangeEvent and AttributeChangeEvent events. Create valueChangeListener and attributeChangeListener handlers for these events as required. You can also configure the richTextEditorInsertBehavior tag, which works with command components to insert given text into the richTextEditor