本文整理汇总了Java中javax.faces.application.Application.createMethodBinding方法的典型用法代码示例。如果您正苦于以下问题:Java Application.createMethodBinding方法的具体用法?Java Application.createMethodBinding怎么用?Java Application.createMethodBinding使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.faces.application.Application
的用法示例。
在下文中一共展示了Application.createMethodBinding方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setMethodBinding
import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component,
String attributeName,
String attributeValue, Class[] paramTypes)
{
if (attributeValue == null)
{
return;
}
if (UIComponentTag.isValueReference(attributeValue))
{
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
MethodBinding mb = app.createMethodBinding(attributeValue,
paramTypes);
component.getAttributes().put(attributeName, mb);
}
}
示例2: setMethodBinding
import javax.faces.application.Application; //导入方法依赖的package包/类
/**
* Set a MethodBinding on a component - used by tags setProperties() method.
*/
public static void setMethodBinding(UIComponent component, String name, String value,
Class[] paramTypes)
{
if (value == null)
{
return;
}
if (UIComponentTag.isValueReference(value))
{
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
MethodBinding mb = app.createMethodBinding(value, paramTypes);
component.getAttributes().put(name, mb);
}
}
示例3: setMethodBinding
import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component,
String attributeName, String attributeValue, Class[] paramTypes) {
if (attributeValue == null)
return;
if (UIComponentTag.isValueReference(attributeValue)) {
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
MethodBinding mb = app.createMethodBinding(attributeValue, paramTypes);
component.getAttributes().put(attributeName, mb);
}
}
示例4: setMethodBinding
import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component, String attributeName,
String attributeValue, Class[] paramTypes) {
if (attributeValue == null)
return;
if (UIComponentTag.isValueReference(attributeValue)) {
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
MethodBinding mb = app.createMethodBinding(attributeValue, paramTypes);
component.getAttributes().put(attributeName, mb);
}
}
示例5: setMethodBinding
import javax.faces.application.Application; //导入方法依赖的package包/类
public static void setMethodBinding(UIComponent component, String attributeName, String attributeValue, Class[] paramTypes) {
if (attributeValue == null) {
return;
}
if (UIComponentTag.isValueReference(attributeValue)) {
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
MethodBinding methodBinding = application.createMethodBinding(attributeValue, paramTypes);
component.getAttributes().put(attributeName, methodBinding);
}
}
示例6: bindButtonListener
import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener(String btnType) {
String listenerName = String.format("#{pfMenubar.btn%sAction}", btnType);
Application app = FacesContext.getCurrentInstance().getApplication();
return app.createMethodBinding(listenerName, new Class[0]);
}
示例7: bindButtonListener
import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener() {
Application app = FacesContext.getCurrentInstance().getApplication();
return app.createMethodBinding("#{dynForm.btnDocumentAction}",
new Class[]{ActionEvent.class});
}
示例8: bindListener
import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindListener(String binding) {
Application app = FacesContext.getCurrentInstance().getApplication();
return app.createMethodBinding(binding, new Class[]{ActionEvent.class});
}
示例9: bindOccursButtonListener
import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindOccursButtonListener() {
Application app = FacesContext.getCurrentInstance().getApplication();
return app.createMethodBinding("#{dynForm.btnOccursAction}",
new Class[]{ActionEvent.class});
}
示例10: bindButtonListener
import javax.faces.application.Application; //导入方法依赖的package包/类
private MethodBinding bindButtonListener() {
Application app = FacesContext.getCurrentInstance().getApplication();
return app.createMethodBinding("#{SessionBean.messagePanelOKBtnAction}",
new Class[]{ActionEvent.class});
}