/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
boolean contains(IComponent target, String id) { if (_parts.contains(id)) return true; Iterator it = _cycle.renderStackIterator(); while (it.hasNext()) { IComponent comp = (IComponent)it.next(); String compId = comp.getClientId(); if (comp != target && _parts.contains(compId)) return true; } return false; }
/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
/** * Determines if the specified component is contained in the * responses requested update parts. * @param target * The component to check for. * @return True if the request should capture the components output. */ public boolean contains(IComponent target) { if (target == null) return false; String id = target.getClientId(); return contains(target, id); }
public Object getObject() { try { return _component.getComponent(_componentId).getClientId(); } catch (Exception ex) { throw new ApplicationRuntimeException(ex.getMessage(), getLocation(), ex); } }
public Object getObject() { try { return _component.getComponent(_componentId).getClientId(); } catch (Exception ex) { throw new ApplicationRuntimeException(ex.getMessage(), getLocation(), ex); } }
void linkComponentEvents(IRequestCycle cycle, IComponent component) { ComponentEventProperty[] props = _invoker.getEventPropertyListeners(component.getExtendedId()); if (props == null) return; for (int i=0; i < props.length; i++) { String clientId = component.getClientId(); Map parms = new HashMap(); parms.put("clientId", clientId); parms.put("component", component); Object[][] events = getEvents(props[i], clientId); Object[][] formEvents = filterFormEvents(props[i], parms, cycle); if (events.length < 1 && formEvents.length < 1) continue; DirectEventServiceParameter dsp = new DirectEventServiceParameter((IDirectEvent)component, new Object[] {}, new String[] {}, false); parms.put("url", _eventEngine.getLink(false, dsp).getURL()); parms.put("events", events); parms.put("formEvents", formEvents); PageRenderSupport prs = TapestryUtils.getPageRenderSupport(cycle, component); Resource resource = getScript(component); _scriptSource.getScript(resource).execute(component, cycle, prs, parms); } }
void linkComponentEvents(IRequestCycle cycle, IComponent component) { ComponentEventProperty[] props = _invoker.getEventPropertyListeners(component.getExtendedId()); if (props == null) return; for (int i=0; i < props.length; i++) { String clientId = component.getClientId(); Map parms = new HashMap(); parms.put("clientId", clientId); parms.put("component", component); Object[][] events = getEvents(props[i], clientId); Object[][] formEvents = filterFormEvents(props[i], parms, cycle); if (events.length < 1 && formEvents.length < 1) continue; DirectEventServiceParameter dsp = new DirectEventServiceParameter((IDirectEvent)component, new Object[] {}, new String[] {}, false); parms.put("url", _eventEngine.getLink(false, dsp).getURL()); parms.put("events", events); parms.put("formEvents", formEvents); PageRenderSupport prs = TapestryUtils.getPageRenderSupport(cycle, component); Resource resource = getScript(component); _scriptSource.getScript(resource).execute(component, cycle, prs, parms); } }
public Object getObject() { try { List clientIds = new ArrayList(_componentIds.length); for (int i=0; i < _componentIds.length; i++) { if (_targets[i] == null) { if (_target.getComponents().containsKey(_componentIds[i])) { _targets[i] = _target.getComponent(_componentIds[i]); } else if (_target.getPage() != null) { _targets[i] = _target.getPage().getComponent(_componentIds[i]); } // if not found we're in trouble if (_targets[i] == null) throw new ApplicationRuntimeException(BindingMessages.unknownComponent(_target, _componentIds[i]), getLocation(), null); } clientIds.add(_targets[i].getClientId()); } return clientIds; } catch (Exception ex) { throw new ApplicationRuntimeException(ex.getMessage(), getLocation(), ex); } }
public Object getObject() { try { List clientIds = new ArrayList(_componentIds.length); for (int i=0; i < _componentIds.length; i++) { if (_targets[i] == null) { if (_target.getComponents().containsKey(_componentIds[i])) { _targets[i] = _target.getComponent(_componentIds[i]); } else if (_target.getPage() != null) { _targets[i] = _target.getPage().getComponent(_componentIds[i]); } // if not found we're in trouble if (_targets[i] == null) throw new ApplicationRuntimeException(BindingMessages.unknownComponent(_target, _componentIds[i]), getLocation(), null); } clientIds.add(_targets[i].getClientId()); } return clientIds; } catch (Exception ex) { throw new ApplicationRuntimeException(ex.getMessage(), getLocation(), ex); } }