Package javax.faces.el

Examples of javax.faces.el.MethodBinding.invoke()


            FacesContext context = getFacesContext();

            MethodBinding mb = getActionListener();
            if (mb != null)
            {
                mb.invoke(context, new Object[]
                { event });
            }

            ActionListener defaultActionListener = context.getApplication()
                    .getActionListener();
View Full Code Here


        MethodBinding binding = getActionListener();

        if (binding != null) {
            FacesContext context = getFacesContext();
            binding.invoke(context, new Object[] { event });
        }
    }

    /**
     * <p>
 
View Full Code Here

            {               
              GraphicImageAjax graphicImageAjax = (GraphicImageAjax)component;
                try
                {
                  MethodBinding mbContentType = graphicImageAjax.getGetContentTypeMethod();
                  String contentType = (String)mbContentType.invoke(context,new Object[]{});
                 
                  MethodBinding mbBytes = graphicImageAjax.getGetBytesMethod();
                  byte[] bytes = (byte[])mbBytes.invoke(context,new Object[]{});
                 
                    //todo: fix this to work in PortletRequest as well
View Full Code Here

                {
                  MethodBinding mbContentType = graphicImageAjax.getGetContentTypeMethod();
                  String contentType = (String)mbContentType.invoke(context,new Object[]{});
                 
                  MethodBinding mbBytes = graphicImageAjax.getGetBytesMethod();
                  byte[] bytes = (byte[])mbBytes.invoke(context,new Object[]{});
                 
                    //todo: fix this to work in PortletRequest as well
                    if(context.getExternalContext().getResponse() instanceof HttpServletResponse)
                    {
                      HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
View Full Code Here

        int maxSuggestedCount = inputSuggestAjax.getMaxSuggestedItems()!=null
                      ? inputSuggestAjax.getMaxSuggestedItems().intValue()
                      : DEFAULT_MAX_SUGGESTED_ITEMS;
        if (inputSuggestAjax.getMaxSuggestedItems()!=null) {
          try{
            suggesteds = (Collection) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent),
                      new Integer(maxSuggestedCount)});
          }catch(MethodNotFoundException dummy){
            suggesteds = (List) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent)});
View Full Code Here

          try{
            suggesteds = (Collection) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent),
                      new Integer(maxSuggestedCount)});
          }catch(MethodNotFoundException dummy){
            suggesteds = (List) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent)});
          }
        } else {
          try{
            suggesteds = (List) mb.invoke(context,new Object[]{
View Full Code Here

            suggesteds = (List) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent)});
          }
        } else {
          try{
            suggesteds = (List) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent)});
          }catch(MethodNotFoundException dummy){
            suggesteds = (Collection) mb.invoke(context,new Object[]{
                        AjaxPhaseListener.getValueForComponent(context, uiComponent),
                        new Integer( DEFAULT_MAX_SUGGESTED_ITEMS )});
View Full Code Here

        } else {
          try{
            suggesteds = (List) mb.invoke(context,new Object[]{
                      AjaxPhaseListener.getValueForComponent(context, uiComponent)});
          }catch(MethodNotFoundException dummy){
            suggesteds = (Collection) mb.invoke(context,new Object[]{
                        AjaxPhaseListener.getValueForComponent(context, uiComponent),
                        new Integer( DEFAULT_MAX_SUGGESTED_ITEMS )});
          }
        }
       
View Full Code Here

            ScheduleMouseEvent mouseEvent = (ScheduleMouseEvent) event;
            MethodBinding mouseListener = getMouseListener();

            if (mouseListener != null)
            {
                mouseListener.invoke(context,
                        new Object[] { mouseEvent });
            }
        }
       
        //then invoke private ScheduleActionListener for set
View Full Code Here

            //Call registered actionListener if applies
            MethodBinding actionListener = getActionListener();
   
            if (actionListener != null)
            {
                actionListener.invoke(context, new Object[] { event });
            }
           
            //Since UISchedule is an ActionSource component,
            //we should call to the application actionListener
            //when an ActionEvent happens.
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.