Examples of ClientAction


Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

    if (_isInput(context, node))
    {
      // render the id
      renderID(context, node);
      renderAttributesExceptID(context, node);
      ClientAction action = ClientActionUtils.getPrimaryClientAction
                                                     (context, node);
      String nameAttr = null;
      if(action != null)
      {
        String source = ((FireAction) action).getSource();
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

            "NAME_VALUES_ATTR only supports String arrays");
      return (String[]) nameValues;
    }
    else
    {
      ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                     node);
      Parameter[] params = null;
      String[] map = null;
      // If there's an action, and it can render on a link, then...
      if ((action != null) && (!action.renderAsEvent(context, node)))
      {
        // ...get the parameters from the client action, and use them
        params = action.getParameters(context, node);
      }

      if (params != null)
      {
        map = new String[params.length * 2];
 
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

        context.getResponseWriter().startElement(elementName, component);
        renderAttributes(context, node);

        // If we've got a ClientAction, let it write its dependencies
        // before we start rendering the link
        ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                       node);
        if (action != null)
          action.writeDependencies(context, node);
      }
    }
    else
    {
      // use link behavior
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

                                           _ON_CLICK_NONE);
    if (prop != _ON_CLICK_NONE)
      return prop;

    Object onClick = super.getOnClick(context, node);
    ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                   node);
    String actionScript = null;

    // TODO: This is a temporary way of setting blocking. Once the
    // AutoSubmitUtils makes it into the main branch, dump this and pass a
    // parameter to getSubmitScript(), which will tell it to look for and turn
    // on blocking. Similar code in LinkRenderer also has to change.
    if (action instanceof FireAction)
    {
      UIComponent component;
      component = node.getUIComponent();
      if ((component != null)
          && Boolean.TRUE.equals(component.getAttributes().get("blocking")))
        ((FireAction) action).setBlocking(true);
    }

    if (action != null)
      actionScript = action.getScript(context, node, Boolean.FALSE);

    Object chainedScript = BaseDesktopUtils.getChainedJS(onClick,
                                                      actionScript,
                                                      true);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

  private static void _writeClientActionDependency(
    UIXRenderingContext context,
    UINode node
    ) throws IOException
  {
    ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                   node);
    if (action != null)
    {
      action.writeDependencies(context, node);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

    UINode           node
    ) throws IOException
  {
    // If we've got a ClientAction, let it write its dependencies
    // before we start rendering the link
    ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                   node);
    if (action != null)
      action.writeDependencies(context, node);

    super.prerender( context, node);

    // Is this choice in a branch of the tree that is repeated
    boolean isRepeatingChoice = _isRepeatingChoice(context, node);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

  {
    super.postrender(context, node);

    // If we have a ClientAction which requires an explicit
    // trigger, render the trigger now...
    ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                   node);
    if ((action != null) && action.isTriggerRequired(context, node))
    {
      renderTrigger(context, node, action);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.action.ClientAction

    UIXRenderingContext context,
    UINode           node)
  {

    // Check for a ClientAction
    ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
                                                                   node);
    // If we've got a ClientAction and it does not require an
    // explicit trigger, get the script for the action.
    if ((action != null) && !action.isTriggerRequired(context, node))
    {
      return action.getScript(context, node, Boolean.FALSE);
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.jboss.jbossts.qa.astests.taskdefs.ClientAction

        Map<String, String> args = new HashMap<String, String> ();

        for (TaskProperty param : params)
            args.put(param.getKey(), param.getValue());

        ClientAction action = null;

        try
        {
            suspendFor(waitFor);
           
            action = (ClientAction) Class.forName(impl).newInstance();
        }
        catch (ClassCastException e)
        {
            System.err.println("Class " + impl + " does not implement " + ClientAction.class.getName());
        }
        catch (ClassNotFoundException e)
        {
            System.err.println("Cannot locate class " + impl);
        }
        catch (IllegalAccessException e)
        {
            e.printStackTrace();
        }
        catch (InstantiationException e)
        {
            System.err.println("Class " + impl + " cannot be instantiated: " + e.getMessage());
        }

        try
        {
            printResult(action.execute(config, args));
        }
        catch (Exception e)
        {
            System.out.println("Error executing test: " + e.getMessage());
            printResult(false);
View Full Code Here

Examples of org.jboss.test.jbossts.taskdefs.ClientAction

        Map<String, String> args = new HashMap<String, String> ();

        for (TaskProperty param : params)
            args.put(param.getKey(), param.getValue());

        ClientAction action = null;

        try
        {
            suspendFor(waitFor);
           
            action = (ClientAction) Class.forName(impl).newInstance();
        }
        catch (ClassCastException e)
        {
            System.err.println("Class " + impl + " does not implement " + ClientAction.class.getName());
        }
        catch (ClassNotFoundException e)
        {
            System.err.println("Cannot locate class " + impl);
        }
        catch (IllegalAccessException e)
        {
            e.printStackTrace();
        }
        catch (InstantiationException e)
        {
            System.err.println("Class " + impl + " cannot be instantiated: " + e.getMessage());
        }

        try
        {
            printResult(action.execute(config, args));
        }
        catch (Exception e)
        {
            System.out.println("Error executing test: " + e.getMessage());
            printResult(false);
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.