本文整理匯總了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});
}