Examples of UIParameter


Examples of javax.faces.component.UIParameter

               List<PathParameter> pathParams = m.getPatternParser().getPathParameters();

               int pathParamsFound = 0;
               for (PathParameter p : pathParams)
               {
                  UIParameter uip = new UIParameter();
                  String[] values = queryParams.get(p.getName());
                  if ((values != null) && (values.length > 0))
                  {
                     String value = values[0];
                     uip.setValue(value);
                     if ((value != null) && !"".equals(value))
                     {
                        pathParamsFound++;
                     }
                  }
                  queryParams.remove(p.getName());
                  uiParams.add(uip);
               }

               for (Entry<String, String[]> entry : queryParams.entrySet())
               {
                  UIParameter uip = new UIParameter();
                  uip.setName(entry.getKey());
                  uip.setValue(entry.getValue());
                  uiParams.add(uip);
               }

               if (pathParams.size() == pathParamsFound)
               {
View Full Code Here

Examples of javax.faces.component.UIParameter

        List<UIComponent> children = getChildren();
        Map<String, Object> parameters = new HashMap<String, Object>();

        for (UIComponent child : children) {
            if (child instanceof UIParameter) {
                UIParameter parameter = (UIParameter) child;
                parameters.put(parameter.getName(), (String) parameter.getValue());
            }

            if (child instanceof UIHashParameter) {
                UIHashParameter hashParameter = (UIHashParameter) child;
                String name = hashParameter.getName();
View Full Code Here

Examples of javax.faces.component.UIParameter

        Map<String, Object> parameters = new LinkedHashMap<String, Object>();

        if (component.getChildCount() > 0) {
            for (UIComponent child : component.getChildren()) {
                if (child instanceof UIParameter) {
                    UIParameter parameter = (UIParameter) child;
                    String name = parameter.getName();
                    Object value = createParameterValue(parameter);

                    if (null == name) {
                        throw new IllegalArgumentException(Messages.getMessage(Messages.UNNAMED_PARAMETER_ERROR,
                            component.getClientId(context)));
View Full Code Here

Examples of javax.faces.component.UIParameter

      StringBuilder builder = new StringBuilder(getActionURL(facesContext));
      builder.append("?").append(DynamicContentStreamer.DYNAMIC_CONTENT_PARAM).append("=").append(expressionParamValue);
     
      for(UIComponent kid : image.getChildren()) {
        if(kid instanceof UIParameter) {
          UIParameter param = (UIParameter) kid;
         
          builder.append("&").append(param.getName()).append("=").append(param.getValue());
        }
      }
     
      src = builder.toString();
    }
View Full Code Here

Examples of javax.faces.component.UIParameter

      req.append("'" + ComponentUtils.findClientIds(facesContext, component, source.getProcess()) + "'");
    }
   
    for(UIComponent child : component.getChildren()) {
      if(child instanceof UIParameter) {
        UIParameter parameter = (UIParameter) child;
       
        req.append(",");
        req.append("'" + parameter.getName() + "'");
        req.append(":");
        req.append("'" + parameter.getValue() + "'");
      }
    }
   
    req.append("});");
   
View Full Code Here

Examples of javax.faces.component.UIParameter

    String process = (String) component.getAttributes().get("process");
    boolean isPartialProcess = process != null;
   
    for(UIComponent child : component.getChildren()) {
      if(child instanceof UIParameter) {
        UIParameter parameter = (UIParameter) child;
        params.put(parameter.getName(), parameter.getValue());
      }
    }
   
    StringBuffer request = new StringBuffer();
    request.append("PrimeFaces.addSubmitParam('" + formId + "', {'" + decodeParam + "':'" + decodeParam + "'");
View Full Code Here

Examples of javax.faces.component.UIParameter

    Map<String,Object> params = new HashMap<String, Object>();
    boolean isPartialProcess = button.getProcess() != null;
   
    for(UIComponent component : button.getChildren()) {
      if(component instanceof UIParameter) {
        UIParameter parameter = (UIParameter) component;
        params.put(parameter.getName(), parameter.getValue());
      }
    }
   
    if(!params.isEmpty() || isPartialProcess) {
      StringBuffer request = new StringBuffer();
View Full Code Here

Examples of javax.faces.component.UIParameter

      StringBuilder builder = new StringBuilder(url);
      builder.append(DynamicContentStreamer.DYNAMIC_CONTENT_PARAM).append("=").append(expressionParamValue);
     
      for(UIComponent kid : image.getChildren()) {
        if(kid instanceof UIParameter) {
          UIParameter param = (UIParameter) kid;
         
          builder.append("&").append(param.getName()).append("=").append(param.getValue());
        }
      }
     
      return builder.toString();
    }
View Full Code Here

Examples of javax.faces.component.UIParameter

        List<UIComponent> l = link.getChildren();
        for (UIComponent c : l)
        {
            if (!(c instanceof UIParameter))
                continue;
            UIParameter p = (UIParameter)c;
            if (p.getName().equalsIgnoreCase(paramName))
            {   // param existis
                p.setValue(paramValue);
                return;
            }
        }
        // Not found, hence add
        UIParameter param = new UIParameter();
        param.setName(paramName);
        param.setValue(paramValue);
        link.getChildren().add(param);
    }
View Full Code Here

Examples of javax.faces.component.UIParameter

        // render the UIParameter children of the commandButton (since 2.0)
        for (UIComponent child : uiComponent.getChildren())
        {
            if (child.getClass().equals(UIParameter.class))
            {
                UIParameter parameter = (UIParameter) child;
                // check for the disable attribute
                if (parameter.isDisable())
                {
                    continue;
                }
                HtmlInputHidden parameterComponent = new HtmlInputHidden();
                parameterComponent.setId(parameter.getName());
                parameterComponent.setValue(parameter.getValue());
                parameterComponent.encodeAll(facesContext);
            }
        }
    }
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.