Java Code Examples for javax.faces.application.Application#createMethodBinding()
The following examples show how to use
javax.faces.application.Application#createMethodBinding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 2
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 3
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
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); } }
Example 4
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 5
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 6
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 7
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * 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); } }
Example 8
Source File: TagUtil.java From sakai with Educational Community License v2.0 | 6 votes |
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); } }
Example 9
Source File: JsfTagUtils.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
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); } }
Example 10
Source File: Tags.java From sakai with Educational Community License v2.0 | 5 votes |
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); } }
Example 11
Source File: Tags.java From sakai with Educational Community License v2.0 | 5 votes |
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); } }
Example 12
Source File: Tags.java From sakai with Educational Community License v2.0 | 5 votes |
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); } }
Example 13
Source File: Tags.java From sakai with Educational Community License v2.0 | 5 votes |
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); } }
Example 14
Source File: MessagePanel.java From yawl with GNU Lesser General Public License v3.0 | 4 votes |
private MethodBinding bindButtonListener() { Application app = FacesContext.getCurrentInstance().getApplication(); return app.createMethodBinding("#{SessionBean.messagePanelOKBtnAction}", new Class[]{ActionEvent.class}); }
Example 15
Source File: DynFormFactory.java From yawl with GNU Lesser General Public License v3.0 | 4 votes |
private MethodBinding bindOccursButtonListener() { Application app = FacesContext.getCurrentInstance().getApplication(); return app.createMethodBinding("#{dynForm.btnOccursAction}", new Class[]{ActionEvent.class}); }
Example 16
Source File: DynFormFileUpload.java From yawl with GNU Lesser General Public License v3.0 | 4 votes |
private MethodBinding bindListener(String binding) { Application app = FacesContext.getCurrentInstance().getApplication(); return app.createMethodBinding(binding, new Class[]{ActionEvent.class}); }
Example 17
Source File: DocComponent.java From yawl with GNU Lesser General Public License v3.0 | 4 votes |
private MethodBinding bindButtonListener() { Application app = FacesContext.getCurrentInstance().getApplication(); return app.createMethodBinding("#{dynForm.btnDocumentAction}", new Class[]{ActionEvent.class}); }
Example 18
Source File: pfMenubar.java From yawl with GNU Lesser General Public License v3.0 | 4 votes |
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]); }