| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.core.Pages
@Scope(value=APPLICATION) @Intercept(value=NEVER) @Name(value="org.jboss.seam.core.pages") @Install(precedence=0) public class Pages
Holds metadata for pages defined in pages.xml, including page actions and page descriptions.
| Constructor Summary | |
|---|---|
| Pages() | |
| Method Summary | |
|---|---|
|  void | applyRequestParameterValues(javax.faces.context.FacesContext facesContext)Apply any page parameters passed as parameter values to the model. | 
|  void | applyViewRootValues(javax.faces.context.FacesContext facesContext)Apply any page parameters passed as view root attributes to the model. | 
|  String | encodePageParameters(javax.faces.context.FacesContext facesContext,
                     String url,
                     String viewId)Encode page parameters into a URL | 
|  boolean | enterPage(javax.faces.context.FacesContext facesContext)Call page actions, and validate the existence of a conversation for pages which require a long-running conversation, starting with the most general view id, ending at the most specific | 
|  Map<String,Object> | getConvertedParameters(javax.faces.context.FacesContext facesContext,
                       String viewId)Get the values of any page parameters by evaluating the value bindings against the model and converting to String. | 
|  Map<String,Object> | getConvertedParameters(javax.faces.context.FacesContext facesContext,
                       String viewId,
                       Set<String> overridden)Get the values of any page parameters by evaluating the value bindings against the model and converting to String. | 
|  String | getNoConversationViewId()The global setting for no-conversation-viewid. | 
|  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)Get the Page object for the given view id. | 
| protected  List<Page> | getPageStack(String viewId)Get the stack of Page objects, from least specific to most specific, that match the given view id. | 
| protected  Map<String,Object> | getParameters(String viewId)Get the values of any page parameters by evaluating the value bindings against the model. | 
|  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 | 
| static void | handleOutcome(javax.faces.context.FacesContext facesContext,
              String outcome,
              String fromAction)Call the JSF navigation handler | 
|  void | initialize() | 
| static Pages | instance() | 
|  boolean | navigate(javax.faces.context.FacesContext context,
         String actionExpression,
         String actionOutcomeValue)Run any navigation rule defined in pages.xml | 
|  void | setNoConversationViewId(String noConversationViewId) | 
|  void | storePageParameters(javax.faces.context.FacesContext facesContext)Store the page parameters to the JSF view root | 
| static String | toString(Object returnValue) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Pages()
| Method Detail | 
|---|
@Create public void initialize()
public boolean navigate(javax.faces.context.FacesContext context,
                        String actionExpression,
                        String actionOutcomeValue)
actionExpression - the action method binding expressionactionOutcomeValue - the outcome of the action method
public Page getPage(String viewId)
viewId - a JSF view idprotected List<Page> getPageStack(String viewId)
viewId - a JSF view idpublic boolean enterPage(javax.faces.context.FacesContext facesContext)
public static String toString(Object returnValue)
public static void handleOutcome(javax.faces.context.FacesContext facesContext,
                                 String outcome,
                                 String fromAction)
public static Pages instance()
public List<ResourceBundle> getResourceBundles(String viewId)
public Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext, String viewId)
viewId - the JSF view id
protected Map<String,Object> getParameters(String viewId)
viewId - the JSF view id
public Map<String,Object> getConvertedParameters(javax.faces.context.FacesContext facesContext, String viewId, Set<String> overridden)
viewId - the JSF view idoverridden - override certain parameter values
public void applyRequestParameterValues(javax.faces.context.FacesContext facesContext)
public void applyViewRootValues(javax.faces.context.FacesContext facesContext)
public String getNoConversationViewId()
public void setNoConversationViewId(String noConversationViewId)
public String encodePageParameters(javax.faces.context.FacesContext facesContext, String url, String viewId)
url - the base URLviewId - the JSF view id of the page
public void storePageParameters(javax.faces.context.FacesContext facesContext)
public String getNoConversationViewId(String viewId)
public Integer getTimeout(String viewId)
public static String getSuffix()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||