javax.faces.context.Flash.putNow()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中javax.faces.context.Flash.putNow()方法的一些代码示例,展示了Flash.putNow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flash.putNow()方法的具体详情如下:
包路径:javax.faces.context.Flash
类名称:Flash
方法名:putNow

Flash.putNow介绍

[英]Puts a value in the flash so that it can be accessed on this traversal of the lifecycle, rather than on the next traversal. This is simply an alias for putting a value in the request map.
EL Usage Example

<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> 
<!-- extra code removed --> 
<c:set target="#{flash.now}" property="bar" value="barValue" /> 
<p>Value of \#{flash.now.bar}, should be barValue.</p> 
<h:outputText value="#{flash.now.bar}" />

[中]将值放入闪存中,以便在生命周期的这一次遍历时可以访问它,而不是在下一次遍历时。这只是一个将值放入请求映射的别名。
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.now}" property="bar" value="barValue" /> 
<p>Value of \#{flash.now.bar}, should be barValue.</p> 
<h:outputText value="#{flash.now.bar}" />

代码示例

代码示例来源:origin: org.glassfish/javax.faces

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: javax/javaee-web-api

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: com.sun.faces/jsf-api

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 * 
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public void putNow(String key, Object value)
{
  getWrapped().putNow(key, value);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * <p class="changed_added_2_2">The default behavior of this method
 * is to call {@link Flash#putNow(String, Object)} on the wrapped
 * {@link Flash} object.</p>
 *
 * @since 2.2
 */
@Override
public void putNow(String key, Object value) {
  getWrapped().putNow(key, value);
}

相关文章