Javax.faces.component.uicomponent jar file
UIComponent, javax. VisitCallback on that UIColumn instance. If such a call returns true , terminate visiting and return true from this method. VisitCallback on each one. Save aside the result of a call to getRowIndex. Let rowsToProcess be the return from getRows. Let rowIndex be the return from getFirst - 1.
While the number of rows processed is less than rowsToProcess , take the following actions. Call setRowIndex int , passing the current row index. If isRowAvailable returns false , take no further action and return false.
VisitCallback on each of the children of this UIColumn instance. FacesContext and restore the saved row index with a call to setRowIndex int. Override the base class method to take special action if the method is being invoked when StateManager.
The additional action taken is to traverse the descendents and save their state without regard to any particular row value. Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to instances that also implement StateHolder such as a UIComponent with event handlers, validators, etc.
Object method on all those instances as well. If the state argument is null , take no action and return. If the class that implements this interface has references to instances that implement StateHolder such as a UIComponent with event handlers, validators, etc. FacesContext method on all those instances as well. This method must not save the state of children and facets. That is done via the StateManager.
This method must not alter the state of the implementing object. In other words, after executing this code:. Return the internal DataModel object representing the data objects that we will iterate over in this component's rendering.
If the model has been cached by a previous call to setDataModel javax. DataModel , return it. Otherwise call getValue. If the result is null, create an empty ListDataModel and return it. If the result is an instance of DataModel , return it. Otherwise, adapt the result as described in getValue and return it. Set the internal DataModel. If the given DataModel is null , the internal DataModel must be reset in a manner so that the next call to getDataModel causes lazy instantion of a newly refreshed DataModel.
Subclasses might call this method if they either want to restore the internal DataModel during the Restore View phase or if they want to explicitly refresh the current DataModel for the Render Response phase. All Rights Reserved. Use is subject to license terms. Skip navigation links. Object javax. UIComponent javax. UIComponentBase javax. Return the data object representing the data for the currently selected row index, if any. Set the number of rows to be displayed, or zero for all remaining rows in the table.
Description copied from class: UIComponent. Save current state information for all descendant components as described below. If the new rowIndex value is If the var property is not null, remove the corresponding request scope attribute if any.
Reset the state information for all descendant components as described below. If the new rowIndex value is not If the var property is not null, call getRowData and expose the resulting data object as a request scope attribute whose key is the var property value. To save current state information for all descendant components, UIData must maintain per-row information for each descendant as follows: If the descendant is an instance of EditableValueHolder , save the state of its localValue property.
If the descendant is an instance of EditableValueHolder , save the state of the localValueSet property. If the descendant is an instance of EditableValueHolder , save the state of the valid property.
If the descendant is an instance of EditableValueHolder , save the state of the submittedValue property. To restore current state information for all descendant components, UIData must reference its previously stored information for the current rowIndex and call setters for each descendant as follows: If the descendant is an instance of EditableValueHolder , restore the value property.
If the descendant is an instance of EditableValueHolder , restore the state of the localValueSet property. If the descendant is an instance of EditableValueHolder , restore the state of the valid property.
If the descendant is an instance of EditableValueHolder , restore the state of the submittedValue property. UIData will automatically adapt the following types: java. List Arrays java.
ResultSet javax. Return the closest ancestor component, relative to the component returned from getCurrentComponent javax. Convenience method to return the named facet, if it exists, or null otherwise. Starting with "this", return the closest component in the ancestry that is a NamingContainer or null if none can be found. Return a mutable List representing the child UIComponent s associated with this component. Return an unmodifiable ordered List of all UIComponent resources of all supported targets.
Return an unmodifiable List of UIComponent s for the provided target agrument. Add argument component , which is assumed to represent a resource instance, as a resource to this view.
This method will be called by an implementation of invokeOnComponent javax. Return true if component is a composite component, otherwise false. Remove argument component , which is assumed to represent a resource instance, as a resource to this view.
Default implementation of of ClientBehavior. Decode any new state of this ClientBehavior from the request contained in the specified FacesContext. Represents a column that will be rendered in an HTML table element. Represents an HTML input element for a button of type submit or reset. Represents an HTML a element for a hyperlink that acts like a submit button. Represents an HTML script element for a function that acts like an ajax form submit. Represents a set of repeating data segregated into columns by child UIColumn components that will be rendered in an HTML table element.
Represents an HTML img element, used to retrieve and render a graphical image. By default, the rendererType property must be set to " javax. Represents an HTML input element of type "button" or image that may be used to link to a URL handled by the Faces Servlet resolved preemptively using the logical outcome defined by the outcome property.
Represents an HTML a hyperlink element that may be used to link to a URL handled by the Faces Servlet resolved preemptively using the logical outcome defined by the outcome property. Represents a component that looks up a localized message in a resource bundle, optionally uses it as a MessageFormat pattern string and substitutes in parameter values from nested UIParameter components, and renders the result. Represents an HTML label element, used to define an accessible label for a corresponding input element.
Renders the component value as text, optionally wrapping in a span element if I18N attributes, CSS styles or style classes are specified. Renders child components in a table, starting a new row after the specified number of columns. Represents an HTML input element of type checkbox. Represents a multiple-selection component that is rendered as a set of HTML input elements of type checkbox.
Represents a multiple-selection component that is rendered as an HTML select element, showing either all available options or the specified number of options. Represents a multiple-selection component that is rendered as an HTML select element, showing a single available option at a time. Represents a single-selection component that is rendered as an HTML select element, showing either all available options or the specified number of options.
Represents a single-selection component that is rendered as an HTML select element, showing a single available option at a time. Represents a single-selection component that is rendered as a set of HTML input elements of type radio.
This method will be called by an implementation of SearchKeywordResolver. Resolves multiple UIComponent s for the given expression. Given a NamingContainer component, returns the client ids of any components underneath the NamingContainer that should be visited.
Called by UIComponent. This method is called during component tree visits by VisitContext. The default behavior of this method is to call ResponseWriter. Write the start of an element, up to and including the element name. Write an object, after converting it to a String if necessary , and after performing any escaping appropriate for the markup language being rendered. Convert the value argument to one of the enum constants of the class provided in our constructor.
Convert the specified string value, which is associated with the specified UIComponent , into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. Convert the enum constant given by the value argument into a String. Convert the specified model object value, which is associated with the specified UIComponent , into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle.
Return the source UIComponent that sent this event. Return the UIComponent which was being processed when the exception was thrown. Construct a new event object from the Faces context, specified source component and action command. Construct a new event object from the specified source component and action command. Construct a new event object from the Faces context, specified source component and Ajax behavior. Construct a new event object from the specified source component and Ajax behavior.
Construct a new event object from the Faces context, specified source component and behavior. Construct a new event object from the specified source component and behavior. Pass the argument component to the superclass constructor.
Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component. Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component , during the lifecycle phase phaseId.
Construct a new event object from the Faces context and specified source component. Construct a new event object from the specified source component. Instantiate a new PostAddToViewEvent that indicates the argument component was just added to the view. Instantiate a new PostRestoreStateEvent that indicates the argument component just had its state restored. All Rights Reserved. Use is subject to license terms.
Skip navigation links. Uses of Class javax. Specialized user interface component classes for HTML. UICommand is a UIComponent that represents a user interface component which, when activated by the user, triggers an application specific "command" or "action".
UIData is a UIComponent that supports data binding to a collection of data objects represented by a DataModel instance, which is the current value of this component itself typically established via a ValueExpression. UIForm is a UIComponent that represents an input form to be presented to the user, and whose child components represent among other things the input fields to be included when the form is submitted.
UIInput is a UIComponent that represents a component that both displays output to the user like UIOutput components do and processes request parameters on the subsequent request that need to be decoded. This component is responsible for displaying messages for a specific UIComponent , identified by a clientId or component id relative to the closest ancestor NamingContainer.
The renderer for this component is responsible for obtaining the messages from the FacesContext and displaying them to the user. UINamingContainer is a convenience base class for components that wish to implement NamingContainer functionality.
UIOutput is a UIComponent that has a value, optionally retrieved from a model tier bean via a value expression, that is displayed to the user. UIParameter is a UIComponent that represents an optionally named configuration parameter for a parent component.
UISelectMany is a UIComponent that represents the user's choice of a zero or more items from among a discrete set of available options. UISelectOne is a UIComponent that represents the user's choice of zero or one items from among a discrete set of available options.
UIViewAction represents a method invocation that occurs during the request processing lifecycle, usually in response to an initial request, as opposed to a postback. Represents a column that will be rendered in an HTML table element. Represents an HTML input element for a button of type submit or reset. Represents an HTML a element for a hyperlink that acts like a submit button.
0コメント