本文整理了Java中javax.faces.context.Flash.isKeepMessages()
方法的一些代码示例,展示了Flash.isKeepMessages()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flash.isKeepMessages()
方法的具体详情如下:
包路径:javax.faces.context.Flash
类名称:Flash
方法名:isKeepMessages
[英]Return the value of this JavaBeans property for the flash for this session. This value determines whether or not any javax.faces.application.FacesMessageinstances queued in the current javax.faces.context.FacesContext must be preserved so they are accessible on the next traversal of the lifecycle on this session, regardless of the request being a redirect after post, or a normal postback. Map
accesses for the special key “keepMessages
” must return the value of this JavaBeans property.
EL Usage Example
First page
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<!-- extra code removed -->
<c:set target="#{flash}" property="keepMessages" value="true" />
Next page
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<!-- extra code removed -->
<h:messages /> Any messages present on the first page must be displayed on
this page.
[中]为该会话的闪存返回此JavaBeans属性的值。该值确定是否存在任何javax。面孔。应用FacesMessageinstances在当前javax中排队。面孔。上下文必须保留FacesContext,以便在下一次遍历此会话的生命周期时可以访问它们,而不管请求是post后重定向还是正常回发。对特殊键“keepMessages
”的Map
访问必须返回此JavaBeans属性的值。
EL使用示例
首页
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<!-- extra code removed -->
<c:set target="#{flash}" property="keepMessages" value="true" />
下一页
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<!-- extra code removed -->
<h:messages /> Any messages present on the first page must be displayed on
this page.
代码示例来源:origin: org.glassfish/javax.faces
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
@Override
public boolean isKeepMessages()
{
return getWrapped().isKeepMessages();
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: javax/javaee-web-api
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: com.sun.faces/jsf-api
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: org.glassfish/jakarta.faces
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: javax.faces/javax.faces-api
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* <p class="changed_added_2_2">The default behavior of this method
* is to call {@link Flash#isKeepMessages()} on the wrapped
* {@link Flash} object.</p>
*
* @since 2.2
*/
@Override
public boolean isKeepMessages() {
return getWrapped().isKeepMessages();
}
内容来源于网络,如有侵权,请联系作者删除!