Package javax.faces.component

Examples of javax.faces.component.ActionSource.addActionListener()


        if (this.listenerMethod != null) {
            MethodExpression listenerMethodExpression = this.listenerMethod.getMethodExpression(ctx, Void.TYPE,
                new Class<?>[] { ActionEvent.class });

            as.addActionListener(new MethodExpressionActionListener(listenerMethodExpression));
        } else {
            ValueExpression b = null;
            if (this.binding != null) {
                b = this.binding.getValueExpression(ctx, ActionListener.class);
            }
View Full Code Here


            ValueExpression b = null;
            if (this.binding != null) {
                b = this.binding.getValueExpression(ctx, ActionListener.class);
            }
            ActionListener listener = new LazyActionListener(this.listenerType, b);
            as.addActionListener(listener);
        }
    }

    public String getFor() {
        String result = null;
View Full Code Here

        removeFromVE = removeFrom.getValueExpression(faceletContext, Object.class);
       
      ValueExpression valueVE = value.getValueExpression(faceletContext, Object.class);
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new Collector(addToVE, removeFromVE, valueVE));
    }
  }
}
View Full Code Here

      if(postProcessor != null) {
        postProcessorME = postProcessor.getMethodExpression(faceletContext, null, new Class[]{Object.class});
      }
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new DataExporter(targetVE, typeVE, fileNameVE, pageOnlyVE,excludeColumnsVE,encodingVE, preProcessorME, postProcessorME));
    }
  }

}
View Full Code Here

     
      if(contentDisposition != null)
        contentDispositionVE= contentDisposition.getValueExpression(faceletContext, String.class);
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new FileDownloadActionListener(valueVE, contentDispositionVE));
    }
  }
}
View Full Code Here

        ActionSource src = (ActionSource) parent;
        ValueExpression valueExpr = _value.getValueExpression(faceletContext, Object.class);
        ValueExpression targetExpr = _target.getValueExpression(faceletContext, Object.class);

        src.addActionListener(new SetPropertyListener(valueExpr, targetExpr));
    }

    public String getFor()
    {
        TagAttribute forAttribute = getAttribute("for");
View Full Code Here

        if (this.binding != null)
        {
            b = this.binding.getValueExpression(faceletContext, ActionListener.class);
        }
        ActionListener listener = new LazyActionListener(this.listenerType, b);
        as.addActionListener(listener);
    }

    /**
     * TODO: Document me!
     */
 
View Full Code Here

    if (!(component instanceof ActionSource)) {
      // TODO Message resource i18n
      throw new JspException("Component "+ component.getClass().getName() + " is not instanceof ActionSource");
    }
    ActionSource actionSource = (ActionSource) component;
    actionSource.addActionListener(new PopupActionListener(forComponent));
    return (SKIP_BODY);
  }

  /**
   * <p>Release references to any acquired resources.
View Full Code Here

  {
    if(ComponentSupport.isNew(parent))
    {
      ActionSource actionSource = (ActionSource)parent;
      ResetActionListener listener = new ResetActionListener();
      actionSource.addActionListener(listener);
    }
  }
}
View Full Code Here

      SetActionListener listener = new SetActionListener();
      listener.setValueBinding(SetActionListener.FROM_KEY,
                               new LegacyValueBinding(fromExpression));
      listener.setValueBinding(SetActionListener.TO_KEY,
                               new LegacyValueBinding(toExpression));
      actionSource.addActionListener(listener);
    }
  }

  private final TagAttribute _from;
  private final TagAttribute _to;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.