本文整理了Java中javax.faces.application.ResourceDependency.target
方法的一些代码示例,展示了ResourceDependency.target
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceDependency.target
方法的具体详情如下:
包路径:javax.faces.application.ResourceDependency
类名称:ResourceDependency
方法名:target
暂无
代码示例来源:origin: com.github.albfernandez.richfaces/richfaces-core
@Override
public boolean apply(ResourceDependency resourceDependency) {
return !"body".equals(resourceDependency.target());
}
};
代码示例来源:origin: com.sun.faces/jsf-impl
public ResourceDependencyHandler(ResourceDependency[] dependencies) {
this.dependencies = dependencies;
Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
expressionsMap = new HashMap<ResourceDependency,Expressions>(dependencies.length, 1.0f);
for (ResourceDependency dep : dependencies) {
Expressions exprs = new Expressions();
exprs.name = dep.name();
String lib = dep.library();
if (lib.length() > 0) {
// Take special action to resolve the "this" library name
if ("this".equals(lib)) {
String thisLibrary = (String)
attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
assert(null != thisLibrary);
lib = thisLibrary;
}
exprs.library = lib;
}
String tgt = dep.target();
if (tgt.length() > 0) {
exprs.target = tgt;
}
expressionsMap.put(dep, exprs);
}
}
代码示例来源:origin: org.glassfish/jakarta.faces
public ResourceDependencyHandler(ResourceDependency[] dependencies) {
this.dependencies = dependencies;
Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
expressionsMap = new HashMap<>(dependencies.length, 1.0f);
for (ResourceDependency dep : dependencies) {
Expressions exprs = new Expressions();
exprs.name = dep.name();
String lib = dep.library();
if (lib.length() > 0) {
// Take special action to resolve the "this" library name
if ("this".equals(lib)) {
String thisLibrary = (String)
attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
assert(null != thisLibrary);
lib = thisLibrary;
}
exprs.library = lib;
}
String tgt = dep.target();
if (tgt.length() > 0) {
exprs.target = tgt;
}
expressionsMap.put(dep, exprs);
}
}
代码示例来源:origin: org.glassfish/javax.faces
public ResourceDependencyHandler(ResourceDependency[] dependencies) {
this.dependencies = dependencies;
Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
expressionsMap = new HashMap<>(dependencies.length, 1.0f);
for (ResourceDependency dep : dependencies) {
Expressions exprs = new Expressions();
exprs.name = dep.name();
String lib = dep.library();
if (lib.length() > 0) {
// Take special action to resolve the "this" library name
if ("this".equals(lib)) {
String thisLibrary = (String)
attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
assert(null != thisLibrary);
lib = thisLibrary;
}
exprs.library = lib;
}
String tgt = dep.target();
if (tgt.length() > 0) {
exprs.target = tgt;
}
expressionsMap.put(dep, exprs);
}
}
代码示例来源:origin: eclipse-ee4j/mojarra
public ResourceDependencyHandler(ResourceDependency[] dependencies) {
this.dependencies = dependencies;
Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
expressionsMap = new HashMap<>(dependencies.length, 1.0f);
for (ResourceDependency dep : dependencies) {
Expressions exprs = new Expressions();
exprs.name = dep.name();
String lib = dep.library();
if (lib.length() > 0) {
// Take special action to resolve the "this" library name
if ("this".equals(lib)) {
String thisLibrary = (String)
attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
assert(null != thisLibrary);
lib = thisLibrary;
}
exprs.library = lib;
}
String tgt = dep.target();
if (tgt.length() > 0) {
exprs.target = tgt;
}
expressionsMap.put(dep, exprs);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
String target = annotation.target();
if (target != null && target.length() > 0)
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.test/myfaces-test22
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.test/myfaces-test22
String target = annotation.target();
if (target != null && target.length() > 0)
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
String target = annotation.target();
if (target != null && target.length() > 0)
内容来源于网络,如有侵权,请联系作者删除!