Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<af:form>
<af:spacer width="10"/>
<af:outputText value="outputText1"/>
<af:spacer width="10"/>
<af:outputText value="outputText2"/>
<p><af:spacer height="10"/></p>
<af:separator/>
<p><af:spacer height="10"/></p>
<af:spacer width="10"/>
<af:outputText value="outputText3"/>
<af:spacer width="10"/>
<af:outputText value="outputText4"/>
</af:form>
Table on page:
Attributes:
collapsed positionedFromEnd Behavior
<af:showDetailItem <af:showDetailItem
text="Browse Products" text="Selected Product"
inlineStyle="width:100%; inlineStyle="width:100%;
height:100%;" flex=1"> height:100%;" flex="2">
With discloseMany="true"
discloseNone="true"
<af:showDetail>
<af:panelGroupLayout layout="vertical">
<af:outputText value="Indexed Child 1"/>
<af:outputText value="Indexed Child 2"/>
</af:panelGroupLayout>
</af:showDetail>
Panel header
component with
sections and
subsections:
af:panelHeader
PPR:
Is enabled by ADF Faces
Enables redrawing only a portion of a page
Requires server round-trip:
Rerenders only a portion of the server-side component tree
Downloads only the appropriate fragment of HTML
Currently certified on IE 7.0+ and Firefox 2.0.0.2 +
Supported (but not certified) on Firefox 3.0 and Safari 3.1.2
Implements certain ADF Faces patterns
Single component refresh
Cross-component refresh
Can be enabled declaratively or programmatically
Triggering component:
(must have unique ID and
cause a Submit)
Target component:
<af:commandToolbarButton <af:commandToolbarButton
id="updateToolbarButton" id="deleteToolbarButton"
text="Update Shopping Cart"/> text="Delete/>
<af:table
<af:commandMenuItem
//bindings
id="menuDelete" partialSubmit="true"
partialTriggers="deleteToolbarButton text="Delete"/>
menuDelete updateToolbarButton">
//list of columns
</af:table>
Why?
Need logic to determine if component should refresh
Refresh should occur on only one of several events that a
triggering component may fire (for example, on row selection
in table, use a selection listener)
How? Use the addPartialTarget method.
Purposes of PPR:
Improve application performance
Improve the user experience
Guidelines for using PPR:
http://www.oracle.com/technology/tech/blaf/specs/ppr.html
PPR should not be used:
When navigating to another page
When response times may be long
When multiple sections of the page need to be redrawn
PPR may cause accessibility issues.