/** Returns the implicit object of the specified name, or null * if not found. * <p>It is the same as getImplicit(null, comp, name). * @since 3.6.0 */ public static Object getImplicit(Component comp, String name) { return getImplicit(null, comp, name); }
/** Returns the implicit object of the specified name, or null * if not found. * <p>It is the same as getImplicit(page, null, name). * @since 3.6.0 */ public static Object getImplicit(Page page, String name) { return getImplicit(page, null, name); }
public Object getImplicit(String name) { return Components.getImplicit(_page, name); }
private Object myGetImplicit(Object x, String fdname) { return x instanceof Page ? Components.getImplicit((Page) x, fdname) : Components.getImplicit((Component) x, fdname); }
public Object getImplicit(String name) { return Components.getImplicit(_comp, name); }
private static Object getSysImplicit(String name) { final Object val = getCurrent(null); return val instanceof Component ? Components.getImplicit((Component) val, name) : val instanceof Page ? Components.getImplicit((Page) val, name) : null; }
/** Returns the implicit object. * * <p>It searches the implicit object stored with {@link #setImplicit}, * and also searches the system implicit objects by use of * {@link Components#getImplicit(Page, Component, String)}. * * @param name the variable to retrieve * @param defValue the default vale that is used if the implicit * object is not defined. */ public static Object getImplicit(String name, Object defValue) { final List<Implicit> implicits = _implicits.get(); if (implicits != null && !implicits.isEmpty()) //in case: beforeInterpret not called return implicits.get(0).getImplicit(name, defValue); Object val = getSysImplicit(name); return val != null ? val : defValue; }
return _component == null ? null : _component.getDesktop(); case SESSION: return _component == null ? null : Components.getImplicit(_component, "session"); case APPLICATION: return _component == null ? null : Components.getImplicit(_component, "application");
for (Scope scope : ss) { final String scopeName = scope.getName(); Object scopeObj = Components.getImplicit(_component, scopeName); if (scopeObj instanceof Map) { val = ((Map<?, ?>) scopeObj).get(name);
if (page != null) { //Bug #2823591, try to "load" into a detached(no page) component and NPE bean = Components.getImplicit(comp, beanid);