本文整理了Java中javax.faces.lifecycle.Lifecycle.attachWindow()
方法的一些代码示例,展示了Lifecycle.attachWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lifecycle.attachWindow()
方法的具体详情如下:
包路径:javax.faces.lifecycle.Lifecycle
类名称:Lifecycle
方法名:attachWindow
[英]Create or restore the ClientWindow to be used to display the javax.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation for ClientWindowfor an overview of the feature. If javax.faces.context.ExternalContext#getClientWindow() returns null, create a new instance of ClientWindow
using the ClientWindowFactory. If the result is non-null, call ClientWindow#decode(javax.faces.context.FacesContext) on it. Store the new ClientWindow
by calling javax.faces.context.ExternalContext#setClientWindow(javax.faces.lifecycle.ClientWindow).
[中]创建或恢复用于显示javax的ClientWindow。面孔。组成部分UIViewRoot将在整个生命周期中运行。有关该功能的概述,请参阅ClientWindow的类文档。如果是javax。面孔。上下文ExternalContext#getClientWindow()返回null,使用ClientWindowFactory创建ClientWindow
的新实例。如果结果非空,则对其调用ClientWindow#decode(javax.faces.context.FacesContext)。通过调用javax存储新的ClientWindow
。面孔。上下文ExternalContext#setClientWindow(javax.faces.lifecycle.ClientWindow)。
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
protected void attachClientWindowToLifecycle(FacesContext facesContext, Lifecycle lifecycle) {
lifecycle.attachWindow(facesContext);
}
}
代码示例来源:origin: liferay/liferay-faces
protected void attachClientWindowToLifecycle(FacesContext facesContext, Lifecycle lifecycle) {
lifecycle.attachWindow(facesContext);
}
}
代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl
private static void delegateAttachWindow(FacesContext facesContext, Lifecycle lifecycle) throws Exception
{
//if there is an external wrapper (e.g. in case of other libs), we have to check
//the version of javax.faces.lifecycle.Lifecycle (>= or < v2.2)
//without the check and an old lib (in the classpath) #attachWindow would get ignored without exception
if (lifecycle instanceof LifecycleWrapper /*autom. provides #attachWindow*/ ||
lifecycle.getClass().getDeclaredMethod("attachWindow", FacesContext.class) != null)
{
lifecycle.attachWindow(facesContext);
}
}
代码示例来源:origin: com.sun.faces/jsf-api
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: javax/javaee-web-api
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: eclipse-ee4j/mojarra
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: org.glassfish/jakarta.faces
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: org.glassfish/javax.faces
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: javax.faces/javax.faces-api
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
public void attachWindow(FacesContext context)
{
getWrapped().attachWindow(context);
}
代码示例来源:origin: eclipse-ee4j/mojarra
@Override
public void attachWindow(FacesContext context) {
getWrapped().attachWindow(context);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
_lifecycle.attachWindow(facesContext);
代码示例来源:origin: org.glassfish/jakarta.faces
private void executeLifecyle(FacesContext context) throws IOException, ServletException {
try {
ResourceHandler handler = context.getApplication().getResourceHandler();
if (handler.isResourceRequest(context)) {
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
}
} catch (FacesException e) {
Throwable t = e.getCause();
if (t == null) {
throw new ServletException(e.getMessage(), e);
}
if (t instanceof ServletException) {
throw (ServletException) t;
}
if (t instanceof IOException) {
throw (IOException) t;
}
throw new ServletException(t.getMessage(), t);
}
}
代码示例来源:origin: org.glassfish/javax.faces
private void executeLifecyle(FacesContext context) throws IOException, ServletException {
try {
ResourceHandler handler = context.getApplication().getResourceHandler();
if (handler.isResourceRequest(context)) {
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
}
} catch (FacesException e) {
Throwable t = e.getCause();
if (t == null) {
throw new ServletException(e.getMessage(), e);
}
if (t instanceof ServletException) {
throw (ServletException) t;
}
if (t instanceof IOException) {
throw (IOException) t;
}
throw new ServletException(t.getMessage(), t);
}
}
代码示例来源:origin: eclipse-ee4j/mojarra
private void executeLifecyle(FacesContext context) throws IOException, ServletException {
try {
ResourceHandler handler = context.getApplication().getResourceHandler();
if (handler.isResourceRequest(context)) {
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
}
} catch (FacesException e) {
Throwable t = e.getCause();
if (t == null) {
throw new ServletException(e.getMessage(), e);
}
if (t instanceof ServletException) {
throw (ServletException) t;
}
if (t instanceof IOException) {
throw (IOException) t;
}
throw new ServletException(t.getMessage(), t);
}
}
代码示例来源:origin: eclipse-ee4j/mojarra
private void executeLifecyle(FacesContext context) throws IOException, ServletException {
try {
ResourceHandler handler = context.getApplication().getResourceHandler();
if (handler.isResourceRequest(context)) {
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
}
} catch (FacesException e) {
Throwable t = e.getCause();
if (t == null) {
throw new ServletException(e.getMessage(), e);
}
if (t instanceof ServletException) {
throw (ServletException) t;
}
if (t instanceof IOException) {
throw (IOException) t;
}
throw new ServletException(t.getMessage(), t);
}
}
代码示例来源:origin: javax/javaee-web-api
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
代码示例来源:origin: javax.faces/javax.faces-api
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
代码示例来源:origin: com.sun.faces/jsf-api
handler.handleResourceRequest(context);
} else {
lifecycle.attachWindow(context);
lifecycle.execute(context);
lifecycle.render(context);
内容来源于网络,如有侵权,请联系作者删除!