IT. Expert System.

Java Enterprise Edition (EE)

ViewMetadata


javax.faces.view
Class ViewMetadata

java.lang.Object
  javax.faces.view.ViewMetadata
public abstract class ViewMetadata
extends java.lang.Object

ViewMetadata is reponsible for extracting and providing view parameter metadata from VDL views. Because ViewDeclarationLanguage#getViewMetadata is required to return null for JSP views and non-null for views authored in Facelets for JSF 2, this specification only applys to Facelets for JSF 2.

Since:
2.0

Constructor Summary
ViewMetadata()
           
 
Method Summary
abstract  UIViewRoot createMetadataView(FacesContext context)
          

Creates a new UIViewRoot containing only view parameter metadata.

abstract  java.lang.String getViewId()
          

static java.util.Collection<UIViewParameter> getViewParameters(UIViewRoot root)
          

Utility method to extract view metadata from the provided UIViewRoot.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewMetadata

public ViewMetadata()
Method Detail

getViewId

public abstract java.lang.String getViewId()

Returns:
the view ID for which this ViewMetadata instance was created

createMetadataView

public abstract UIViewRoot createMetadataView(FacesContext context)

Creates a new UIViewRoot containing only view parameter metadata. The processing of building this UIViewRoot with metadata should not cause any events to be published to the application. The implementation must call FacesContext#setProcessingEvents passing false as the argument, at the beginning of the method, and pass true to the same method at the end. The implementation must ensure that this happens regardless of ant exceptions that may be thrown.

Parameters:
context - the FacesContext for the current request
Returns:
a UIViewRoot containing only view parameter metadata (if any)

getViewParameters

public static java.util.Collection<UIViewParameter> getViewParameters(UIViewRoot root)

Utility method to extract view metadata from the provided UIViewRoot.

Parameters:
root - the UIViewRoot from which the metadata will be extracted from
Returns:
a Collection of UIViewParameter instances. If the view has no metadata, the collection will be empty.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 14667 / 248391890. Delta: 0.03432 с