站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 API 英文版文档

Pages (JBoss Seam API Documentation) - JBoss Seam 1.1.0 API 英文版文档


org.jboss.seam.core
Class Pages

java.lang.Object
  extended by org.jboss.seam.core.Pages

@Scope(value=APPLICATION)
@Intercept(value=NEVER)
@Name(value="org.jboss.seam.core.pages")
@Install(precedence=0)
public class Pages
extends Object

Holds metadata for pages defined in pages.xml, including page actions and page descriptions.

Author:
Gavin King

Constructor Summary
Pages()
           
 
Method Summary
 void applyRequestParameterValues(javax.faces.context.FacesContext facesContext)
           
 void applyViewRootValues(javax.faces.context.FacesContext facesContext)
           
static boolean callAction(javax.faces.context.FacesContext facesContext)
           
 boolean callActions(javax.faces.context.FacesContext facesContext)
          Call page actions, from most general view id to most specific
 String encodePageParameters(javax.faces.context.FacesContext facesContext, String url, String viewId)
          Encode page parameters into a URL
 Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext, String viewId)
           
 Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext, String viewId, Set<String> overridden)
           
 String getNoConversationViewId()
           
 String getNoConversationViewId(String viewId)
          Search for a defined no-conversation-view-id, beginning with the most specific view id, then wildcarded view ids, and finally the global setting
 Page getPage(String viewId)
           
protected  List<Page> getPageStack(String viewId)
           
protected  Map<String,Object> getParameters(String viewId)
           
 List<ResourceBundle> getResourceBundles(String viewId)
          Build a list of page-scoped resource bundles, from most specific view id, to most general.
static String getSuffix()
           
 Integer getTimeout(String viewId)
          Search for a defined conversation timeout, beginning with the most specific view id, then wildcarded view ids, and finally the global setting from Manager
 void initialize()
           
static Pages instance()
           
 void setNoConversationViewId(String noConversationViewId)
           
 void storePageParameters(javax.faces.context.FacesContext facesContext)
          Store the page parameters to the JSF view root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pages

public Pages()
Method Detail

initialize

@Create
public void initialize()

getPage

public Page getPage(String viewId)

getPageStack

protected List<Page> getPageStack(String viewId)

callActions

public boolean callActions(javax.faces.context.FacesContext facesContext)
Call page actions, from most general view id to most specific


instance

public static Pages instance()

callAction

public static boolean callAction(javax.faces.context.FacesContext facesContext)

getResourceBundles

public List<ResourceBundle> getResourceBundles(String viewId)
Build a list of page-scoped resource bundles, from most specific view id, to most general.


getConvertedParameters

public Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext,
                                                 String viewId)

getParameters

protected Map<String,Object> getParameters(String viewId)

getConvertedParameters

public Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext,
                                                 String viewId,
                                                 Set<String> overridden)

applyRequestParameterValues

public void applyRequestParameterValues(javax.faces.context.FacesContext facesContext)

applyViewRootValues

public void applyViewRootValues(javax.faces.context.FacesContext facesContext)

getNoConversationViewId

public String getNoConversationViewId()

setNoConversationViewId

public void setNoConversationViewId(String noConversationViewId)

encodePageParameters

public String encodePageParameters(javax.faces.context.FacesContext facesContext,
                                   String url,
                                   String viewId)
Encode page parameters into a URL

Parameters:
url - the base URL
viewId - the JSF view id of the page
Returns:
the URL with parameters appended

storePageParameters

public void storePageParameters(javax.faces.context.FacesContext facesContext)
Store the page parameters to the JSF view root


getNoConversationViewId

public String getNoConversationViewId(String viewId)
Search for a defined no-conversation-view-id, beginning with the most specific view id, then wildcarded view ids, and finally the global setting


getTimeout

public Integer getTimeout(String viewId)
Search for a defined conversation timeout, beginning with the most specific view id, then wildcarded view ids, and finally the global setting from Manager


getSuffix

public static String getSuffix()