Package org.ajax4jsf.event

Examples of org.ajax4jsf.event.AjaxListenerHelper


                ValueExpression ve = null;
                if (this.binding != null) {
                    ve = this.binding.getValueExpression(ctx,
                            AjaxListener.class);
                    // TODO - handle both JSF 1.2/1.1 cases.
                    listener = new AjaxListenerHelper(new LegacyValueBinding(ve));
                }
                if (listener == null) {
                    try {
                        listener = (AjaxListener) listenerType.newInstance();
                    } catch (Exception e) {
View Full Code Here


                ValueExpression ve = null;
                if (this.binding != null) {
                    ve = this.binding.getValueExpression(ctx,
                            AjaxListener.class);
                    // TODO - handle both JSF 1.2/1.1 cases.
                    listener = new AjaxListenerHelper(new LegacyValueBinding(ve));
                }
                if (listener == null) {
                    try {
                        listener = (AjaxListener) listenerType.newInstance();
                    } catch (Exception e) {
View Full Code Here

            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof AjaxSource) {
                AjaxListener listener;
                if(null != binding){
                   listener = new AjaxListenerHelper(new ValueBindingValueExpressionAdaptor(binding));
                } else {
        try {
                  String className = (String) type.getValue(FacesContext.getCurrentInstance().getELContext());
          listener = (AjaxListener) Class.forName(className).newInstance();
        } catch (Exception e) {
View Full Code Here

                  try {
          valueBinding = FacesContext.getCurrentInstance().getApplication().createValueBinding(binding);
                  } catch (ReferenceSyntaxException e) {
            throw new JspException(e);
          }
                  listener = new AjaxListenerHelper(valueBinding);
                } else {
                String className;
                if (UIComponentTag.isValueReference(type)) {
                    FacesContext facesContext = FacesContext
                            .getCurrentInstance();
View Full Code Here

TOP

Related Classes of org.ajax4jsf.event.AjaxListenerHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.