Package javax.faces.el

Examples of javax.faces.el.PropertyResolver


    if (period < 0)
      propertyName = expr;
    else
      propertyName = expr.substring(0, period);

    PropertyResolver pr = context.getApplication().getPropertyResolver();
    var =  pr.getValue(var, propertyName);
   
    if (period < 0)
      return var;
    return _resolveProperty(context, var, expr.substring(period + 1));
  }
View Full Code Here


      tree.setRowIndex(i);
      if (viewIdProperty != null)
      {
        Object focusPath = tree.getRowKey();
        Object data = tree.getRowData();
        PropertyResolver resolver =
          context.getApplication().getPropertyResolver();
        Object viewIdObject = resolver.getValue(data, viewIdProperty);
        focusPathMap.put(viewIdObject, focusPath);
      }
      else
      {
        _LOG.warning("NULL_VIEWID");
View Full Code Here

  {
    String prop = getChildProperty();
    if (prop == null)
      return null;
   
    PropertyResolver resolver = SortableModel.__getPropertyResolver();
    return resolver.getValue(parentData, prop);
  }
View Full Code Here

        return false; // if there is no data in the table then nothing is sortable

      Object data = _model.getRowData();
      try
      {
        PropertyResolver resolver = __getPropertyResolver();
        Object propertyValue = resolver.getValue(data, property);

        // when the value is null, we don't know if we can sort it.
        // by default let's support sorting of null values, and let the user
        // turn off sorting if necessary:
        return (propertyValue instanceof Comparable) ||
View Full Code Here

     */
    @SuppressWarnings("deprecation")
    public static PropertyResolver getDelegatePR(ApplicationAssociate associate,
                                                 boolean provideDefault)  {

        PropertyResolver pr = associate.getLegacyPropertyResolver();
        if (pr == null) {
            pr = associate.getLegacyPRChainHead();
            if (pr == null && provideDefault) {
                pr = new DummyPropertyResolverImpl();
            }
View Full Code Here

     */
    @SuppressWarnings("deprecation")
    private static void addPropertyResolvers(CompositeELResolver target,
                                             ApplicationAssociate associate) {

        PropertyResolver pr = getDelegatePR(associate, false);
        if (pr != null) {
            target.add(new PropertyResolverChainWrapper(pr));
        }

    }
View Full Code Here

        // Acquire the session identifier for this request
        // (creating the session if necessary)
        Object session = context.getExternalContext().getSession(true);
        assert session != null;
        PropertyResolver pr = context.getApplication().getPropertyResolver();
        assert pr != null;
        byte id[] = ((String) pr.getValue(session, "id")).getBytes();

        // Acquire the timestamp we will use for this request
        long current = System.currentTimeMillis();
        if (current <= previous) {
            current = previous + 1;
View Full Code Here

        if (names.size() < 2) {
            return (base);
        }

        // Resolve the property names
        PropertyResolver pr = application().getPropertyResolver();
        for (int i = 1; i < names.size(); i++) {
            base = pr.getValue(base, (String) names.get(i));
        }

        // Return the resolved value
        return (base);
View Full Code Here

            econtext().getRequestMap().put(name, value);
            return;
        }

        // Resolve the property names
        PropertyResolver pr = application().getPropertyResolver();
        for (int i = 1; i < (names.size() - 1); i++) {
            // System.out.println("  property=" + names.get(i));
            base = pr.getValue(base, (String) names.get(i));
        }

        // Update the last property
        pr.setValue(base, (String) names.get(names.size() - 1), value);

    }
View Full Code Here

        if (names.size() < 2) {
            return true;
        }

        // Resolve the property names
        PropertyResolver pr = application().getPropertyResolver();
        for (int i = 1; i < names.size() - 1; i++) {
            base = pr.getValue(base, (String) names.get(i));
        }

        // Return the read only state of the final property
        return pr.isReadOnly(base, (String) names.get(names.size() - 1));

    }
View Full Code Here

TOP

Related Classes of javax.faces.el.PropertyResolver

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.