<dvt:searchResults>

dvt:searchResults searchResults search results

UIComponent class: oracle.adf.view.faces.bi.component.hierarchyViewer.SearchResults
Component type: oracle.dss.adf.hierarchyViewer.SearchResults

The SearchResults component is used to display a search result. The searchResults tag must be added as a child of the search tag to specify how to display the search results.

Relationship with other tags

This component must be a child of the <dvt:search> component.

The searchResults component can have the following children: facet

Example

The following example shows XML for a searchResults tag.

       <dvt:searchResults id="searchResultId"
                          emptyText="Text not found"
                          fetchSize="10"
                          value="#{XMLParser.results}"
                          resultListener="#{XMLParser.doResultAction}"
                          var="resultRow">
          <af:setPropertyListener from="#{resultRow.personId}"
                                  to="#{XMLParser.selectedId}"
                                  type="action"/>
          <f:facet name="content">
            <af:panelGroupLayout inlineStyle="width:110px;height:20px;">
              <af:commandImageLink icon="nopic.png"
                                   text="#{resultRow.lastName}"
                                   id="cil1"/>
              <af:outputText value="#{resultRow.firstName}"
                             id="ot1" />
            </af:panelGroupLayout>
          </f:facet>
       </dvt:searchResults>
       

Sizing

The desired size of the search result stamp should be specified in pixels using the width and height attributes in the inlineStyle property of the outermost container element in the content facet so that the results show the specified content as intended. If no size is specified, a default size of 100 x 30 will be used.

Events

Type Phases Description
org.apache.myfaces.trinidad.event.AttributeChangeEvent Invoke Application,
Apply Request Values
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing.

Attributes

Name Type Supports EL? Description
attributeChangeListener javax.el.MethodExpression Only EL a method reference to an attribute change listener. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing.
binding oracle.adf.view.faces.bi.component.hierarchyViewer.SearchResults Only EL an EL reference that will store the component instance on a bean. This can be used to give programmatic access to a component from a backing bean, or to move creation of the component to a backing bean.
emptyText String Yes The text of an empty search results.
fetchSize int Yes
id String No the identifier for the component. The identifier must follow a subset of the syntax allowed in HTML:
  • Must not be a zero-length String.
  • First character must be an ASCII letter (A-Za-z) or an underscore ('_').
  • Subsequent characters must be an ASCII letter or digit (A-Za-z0-9), an underscore ('_'), or a dash ('-').
rendered boolean Yes Specifies whether the component is rendered.
resultListener String Yes A reference to an action listener that will be called after a row in the search results is selected.
value String Yes Specifies the search results data model. This must be an instance of oracle.adf.view.faces.bi.model.DataModel
var String Yes Name of the EL variable used to reference cell data element of this collection. Once this component has completed rendering, this variable is removed (or reverted back to its previous value).
varStatus String Yes Name of the EL variable used to reference the varStatus information. Once this component has completed rendering, this variable is removed (or reverted back to its previous value).