Package javax.faces.component.behavior

Examples of javax.faces.component.behavior.ClientBehaviorContext


        // We only need to gather the parameters if there is a submitting behavior, so do
        // not incur the performance overhead if not needed
        data.params = CoreRenderer.getBehaviorParameters(component);
      }

      ClientBehaviorContext behaviorContext = ClientBehaviorContext.createClientBehaviorContext(
        facesContext, component, eventName, component.getClientId(facesContext), data.params);

      if (data.behaviorScripts == null)
      {
        data.behaviorScripts = new ArrayList<String>(behaviors.size());
View Full Code Here


                || attachedEventBehaviors.size() == 0) {
            target.append(STR_EMPTY);
            return false;
        }

        ClientBehaviorContext context = ClientBehaviorContext
                .createClientBehaviorContext(facesContext, uiComponent,
                        eventName, targetClientId,
                        params);

View Full Code Here

                || attachedEventBehaviors.size() == 0)
        {
            target.append(STR_EMPTY);
            return false;
        }
        ClientBehaviorContext context = ClientBehaviorContext
                .createClientBehaviorContext(facesContext, uiComponent,
                        eventName, targetClientId, params);
        boolean submitting = false;
       
        // List<ClientBehavior>  attachedEventBehaviors is  99% _DeltaList created in
View Full Code Here

                || attachedEventBehaviors.size() == 0) {
            target.append(STR_EMPTY);
            return false;
        }

        ClientBehaviorContext context = ClientBehaviorContext
                .createClientBehaviorContext(facesContext, uiComponent,
                        eventName, targetClientId,
                        params);

View Full Code Here

                || attachedEventBehaviors.size() == 0) {
            target.append(STR_EMPTY);
            return false;
        }

        ClientBehaviorContext context = ClientBehaviorContext
                .createClientBehaviorContext(facesContext, uiComponent,
                        eventName, uiComponent.getClientId(facesContext),
                        params);

View Full Code Here

                || attachedEventBehaviors.size() == 0)
        {
            target.append(STR_EMPTY);
            return false;
        }
        ClientBehaviorContext context = ClientBehaviorContext
                .createClientBehaviorContext(facesContext, uiComponent,
                        eventName, targetClientId, params);
        boolean submitting = false;
       
        // List<ClientBehavior>  attachedEventBehaviors is  99% _DeltaList created in
View Full Code Here

               
                if(hasEventBehaviors) {
                    String clientId = ((UIComponent) component).getClientId(context);
                    List<ClientBehaviorContext.Parameter> params = new ArrayList<ClientBehaviorContext.Parameter>();
                    params.add(new ClientBehaviorContext.Parameter(Constants.CLIENT_BEHAVIOR_RENDERING_MODE, ClientBehaviorRenderingMode.OBSTRUSIVE));
                    ClientBehaviorContext cbc = ClientBehaviorContext.createClientBehaviorContext(context, (UIComponent) component, behaviorEvent, clientId, params);
                    int size = eventBehaviors.size();
                    boolean chained = false;

                    if(size > 1 || hasEventValue) {
                        builder.append("PrimeFaces.bcn(this,event,[");
View Full Code Here

            if (hasEventValue) {
                builder.append(eventValue).append(";");
            }

            if (hasEventBehaviors) {
                ClientBehaviorContext cbc = ClientBehaviorContext.createClientBehaviorContext(context, (UIComponent) component, behaviorEventName, component.getClientId(context), Collections.EMPTY_LIST);
                int eventBehaviorSize = eventBehaviors.size();
                int commandSize = (command != null) ? (eventBehaviorSize + 1): eventBehaviorSize;

                if (commandSize > 1) {
                    boolean behaviorRendered = false;
View Full Code Here

                    writer.write(eventName + ":");
                    writer.write("function(ext) {");
                    for(Iterator<ClientBehavior> behaviorIter = eventBehaviors.iterator(); behaviorIter.hasNext();) {
                        ClientBehavior behavior = behaviorIter.next();
                        ClientBehaviorContext cbc = ClientBehaviorContext.createClientBehaviorContext(context, (UIComponent) component, eventName, clientId, params);
                        String script = behavior.getScript(cbc);

                        if(script != null) {
                            writer.write(script);
                        }
View Full Code Here

               params = Collections.emptyList();
            }

            for (int i = 0; i < behaviors.size(); i++) {
                ClientBehavior behavior = behaviors.get(i);
                ClientBehaviorContext cbc = ClientBehaviorContext.createClientBehaviorContext(context, component, event, clientId, params);
                String script = behavior.getScript(cbc);

                if(script != null)
                    sb.append(script).append(";");
            }
View Full Code Here

TOP

Related Classes of javax.faces.component.behavior.ClientBehaviorContext

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.