|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
String |
encodePageParameters(javax.faces.context.FacesContext facesContext,
String url,
String viewId,
Set<String> overridden)
Encode page parameters into a URL |
String |
encodeScheme(String viewId,
javax.faces.context.FacesContext context,
String 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. |
static String |
getCurrentViewId()
|
static Map<String,javax.faces.application.FacesMessage.Severity> |
getFacesMessageValuesMap()
|
Integer |
getHttpPort()
|
Integer |
getHttpsPort()
|
String |
getLoginViewId()
|
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. |
String |
getScheme(String viewId)
|
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 String |
getViewId(javax.faces.context.FacesContext facesContext)
|
Map<String,Object> |
getViewRootValues(javax.faces.context.FacesContext facesContext)
|
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 |
protected void |
noConversation()
|
protected void |
notLoggedIn()
|
void |
redirectToLoginView()
|
void |
redirectToNoConversationView()
|
void |
setHttpPort(Integer httpPort)
|
void |
setHttpsPort(Integer httpsPort)
|
void |
setLoginViewId(String loginViewId)
|
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 String encodeScheme(String viewId, javax.faces.context.FacesContext context, String url)
public void redirectToLoginView()
public void redirectToNoConversationView()
public String getScheme(String viewId)
protected void noConversation()
protected void notLoggedIn()
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
- excluded parameters
public void applyRequestParameterValues(javax.faces.context.FacesContext facesContext)
public void applyViewRootValues(javax.faces.context.FacesContext facesContext)
public Map<String,Object> getViewRootValues(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 String encodePageParameters(javax.faces.context.FacesContext facesContext, String url, String viewId, Set<String> overridden)
url
- the base URLviewId
- the JSF view id of the pageoverridden
- excluded parameters
public void storePageParameters(javax.faces.context.FacesContext facesContext)
public String getNoConversationViewId(String viewId)
public Integer getTimeout(String viewId)
public static String getSuffix()
public static Map<String,javax.faces.application.FacesMessage.Severity> getFacesMessageValuesMap()
public String getLoginViewId()
public void setLoginViewId(String loginViewId)
public static String getCurrentViewId()
public static String getViewId(javax.faces.context.FacesContext facesContext)
public Integer getHttpPort()
public void setHttpPort(Integer httpPort)
public Integer getHttpsPort()
public void setHttpsPort(Integer httpsPort)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |