First page Back Continue Last page Text

oracle adf workshop


Displaying Table Menus, Toolbars, and Status Bars (continued)

The example shown in the slide has the following source code: <af:panelCollection binding="#{editor.component}"> <f:facet name="menus"> <af:menu text="Actions"> <af:commandMenuItem text="Add..." /> <af:commandMenuItem text="Create.." /> <af:commandMenuItem text="Update..." disabled="true"/> <af:commandMenuItem text="Copy"/> <af:commandMenuItem text="Delete"/> <af:commandMenuItem text="Remove" accelerator="control A"/> <af:commandMenuItem text="Preferences"/> </af:menu> </f:facet> <f:facet name="toolbar"> <af:toolbar> <af:commandToolbarButton shortDesc="Create" icon="/new_ena.png"> </af:commandToolbarButton> <af:commandToolbarButton shortDesc="Update" icon="/update_ena.png"> </af:commandToolbarButton> <af:commandToolbarButton shortDesc="Delete" icon="/delete_ena.png"> </af:commandToolbarButton> </af:toolbar> </f:facet> <f:facet name="secondaryToolbar"> </f:facet> <f:facet name="statusbar"> <af:toolbar> <af:outputText id="statusText" ... value="Custom Statusbar Message"/> </af:toolbar> </f:facet> <af:table rowSelection="multiple" columnSelection="multiple" ... <af:column ... </af:column>

The panelCollection component is a naming container. If you want to add its contained component, such as a table, as partialTriggers (described later in this lesson), you must use its fully qualified name. For example, if you have a panelCollection with id=entriesCollection and a contained table with id=deptTable, and you want to update a panelForm on the selection change of the table, you would declare the panelForm's partialTriggers as: <panelForm partialTriggers="entriesCollection:deptTable">