/** {@inheritDoc} */ @SuppressWarnings("unchecked") public void setProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name, Object value) throws OgnlException { factory.getPropertyAccessor((String) name, (T) target).setProperty(context, target, name, value); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public void setProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name, Object value) throws OgnlException { propertyAccessor.setProperty(context, nestedObjectExtractor .getNestedObject((T) target), name, value); }
public void setProperty(Map context, Object target, Object name, Object value) throws OgnlException { ObjectProxy proxy = (ObjectProxy) target; setupContext(context, proxy); OgnlRuntime.getPropertyAccessor(proxy.getValue().getClass()).setProperty(context, target, name, value); }
public static void setProperty(OgnlContext context, Object target, Object name, Object value) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty(context, target, name, value); }
public static final void setProperty( OgnlContext context, Object target, Object name, Object value ) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty( context, target, name, value ); }
public static void setProperty(OgnlContext context, Object target, Object name, Object value) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty(context, target, name, value); }
public void setProperty(Map context, Object target, Object name, Object value) throws OgnlException { String property = name.toString(); RequestContext requestContext = (RequestContext) target; if (property.equals("flowRequestContext")) { throw new OgnlException("The 'flowRequestContext' variable is not writeable"); } if (property.equals("currentUser")) { throw new OgnlException("The 'currentUser' variable is not writeable"); } if (property.equals("resourceBundle")) { throw new OgnlException("The 'resourceBundle' variable is not writeable"); } if (requestContext.getRequestScope().contains(property)) { requestContext.getRequestScope().put(property, value); } else if (requestContext.getFlashScope().contains(property)) { requestContext.getFlashScope().put(property, value); } else if (requestContext.inViewState() && requestContext.getViewScope().contains(property)) { requestContext.getViewScope().put(property, value); } else if (requestContext.getFlowScope().contains(property)) { requestContext.getFlowScope().put(property, value); } else if (requestContext.getConversationScope().contains(property)) { requestContext.getConversationScope().put(property, value); } else { delegate.setProperty(context, target, name, value); } }