public String getClientId(FacesContext context) { String ownClientId = super.getClientId(context); if (_nodeId != null) { return ownClientId + NamingContainer.SEPARATOR_CHAR + _nodeId; } else { return ownClientId; } }
public String getClientId(FacesContext faces) { String id = super.getClientId(faces); if (this.index >= 0) { id = this.getBuffer().append(id).append( NamingContainer.SEPARATOR_CHAR).append(this.index) .toString(); } return id; }
public String getClientId(final FacesContext context) { final String clientId = super.getClientId(context); final int rowIndex = getRowIndex(); if (rowIndex == INITIAL_ROW_INDEX) { return clientId; } return clientId + NamingContainer.SEPARATOR_CHAR + rowIndex; }
public String getClientId(FacesContext context) { AssertionUtil.assertNotNull("context", context); String clientId = super.getClientId(context); if (rowIndex >= 0) { clientId = clientId + NamingContainer.SEPARATOR_CHAR + rowIndex; } return clientId; }
@Override public String getClientId(FacesContext context) { String clientId = super.getClientId(context); int rowIndex = getRowIndex(); if (rowIndex == -1) { return clientId; } return clientId + NamingContainer.SEPARATOR_CHAR + rowIndex; }
public String renderSliderJs2(FacesContext context, UIDataFltrSlider slider) throws IOException { String clientId = slider.getClientId(context); String formClientId = _findFormClientId(context, slider); String sliderClientId = slider.getClientId(context); String id = slider.getId(); String sliderHandlerScript = "function updateSlider1(value) {\n" + "$('"+ clientId +"slider_val').value = value;\n" + "try{\n" + "eval(document.forms['" + formClientId + "'].action);\n" + "}catch(exception){\n" + "}\n" + "}\n"; return sliderHandlerScript; }
public String getClientId(FacesContext context) { String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context); if (clientId == null) { clientId = super.getClientId(context); } return clientId; }
clientIdBuilder = new StringBuilder(super.getClientId(context)); baseClientId = clientIdBuilder.toString(); baseClientIdLength = (baseClientId.length() + 1); cid = clientIdBuilder.append(super.getClientId(context)) .append(UINamingContainer.getSeparatorChar(context)).append(rowIndex) .toString(); return super.getClientId(context);
protected void aggregateErrorMessageIfNeed(FacesContext context, String expression) { if (FacesMessageResource.hasMessages(expression)) { final String parentRowClientId = super.getClientId(context); final FacesMessage aggregateMessage = FacesMessageResource .getFacesMessage(expression); aggregateErrorMessage(aggregateMessage, context, parentRowClientId); } }
clientIdBuilder = new StringBuilder(super.getClientId(context)); baseClientId = clientIdBuilder.toString(); baseClientIdLength = (baseClientId.length() + 1); cid = clientIdBuilder.append(super.getClientId(context)) .append(UINamingContainer.getSeparatorChar(context)).append(rowIndex) .toString(); return super.getClientId(context);
clientIdBuilder = new StringBuilder(super.getClientId(context)); baseClientId = clientIdBuilder.toString(); baseClientIdLength = (baseClientId.length() + 1); cid = clientIdBuilder.append(super.getClientId(context)) .append(UINamingContainer.getSeparatorChar(context)).append(rowIndex) .toString(); return super.getClientId(context);
/** * Execute the setter method of the specified property on the underlying * component. * * @param propertyDescriptor specifies which property to write. * @throws IllegalArgumentException if the property is not writable. * @throws FacesException if any other problem occurs while invoking * the getter method. */ private void setComponentProperty(_PropertyDescriptorHolder propertyDescriptor, Object value) { Method writeMethod = propertyDescriptor.getWriteMethod(); if (writeMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() + " is not writable"); } try { writeMethod.invoke(_component, new Object[]{value}); } catch (Exception e) { FacesContext facesContext = _component.getFacesContext(); throw new FacesException("Could not set property " + propertyDescriptor.getName() + " of component " + _component.getClientId(facesContext) + " to value : " + value + " with type : " + (value == null ? "null" : value.getClass().getName()), e); } }
String baseClientId = super.getClientId(context);
/** * Execute the getter method of the specified property on the underlying * component. * * @param propertyDescriptor specifies which property to read. * @return the value returned by the getter method. * @throws IllegalArgumentException if the property is not readable. * @throws FacesException if any other problem occurs while invoking * the getter method. */ private Object getComponentProperty(_PropertyDescriptorHolder propertyDescriptor) { Method readMethod = propertyDescriptor.getReadMethod(); if (readMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() + " is not readable"); } try { return readMethod.invoke(_component, EMPTY_ARGS); } catch (Exception e) { FacesContext facesContext = _component.getFacesContext(); throw new FacesException("Could not get property " + propertyDescriptor.getName() + " of component " + _component.getClientId(facesContext), e); } }
public void processEvent(SystemEvent event) throws AbortProcessingException { FacesContext context = FacesContext.getCurrentInstance(); if (!EnvUtils.isICEfacesView(context)) { return; } UIComponentBase component = (UIComponentBase) ((PreRenderComponentEvent) event).getComponent(); boolean isDisabled = isAjaxDisabled(component); if (isDisabled) { UIForm theForm = getContainingForm(component); if ((component instanceof UIForm) || isAjaxDisabled(theForm)) { log.finer("Ajax is disabled, so disabling form submit capturing"); theForm.getAttributes().put( FormSubmit.DISABLE_CAPTURE_SUBMIT, "true"); //no need to list components if the form is ajaxDisabled return; } if (null != theForm) { String disabledList = (String) theForm.getAttributes() .get(DISABLED_LIST); if (null == disabledList) { //ensure that the final string contains spaces around //each id for accurate JavaScript test with indexOf disabledList = " "; } disabledList = disabledList + component.getClientId() + " "; theForm.getAttributes().put(DISABLED_LIST, disabledList); } } }
public String renderSliderJs1(FacesContext context, UIDataFltrSlider slider) throws IOException { String clientId = slider.getClientId(context); String sliderScript = "var dataFilterSlider = new Control.Slider('"+ clientId +"slider-handle', '"+ clientId +"slider-track', {\n" + "range: $R(" + slider.getStartRange() + "," + slider.getEndRange() + "),\n" + "values: [" + slider.getSliderRange() + "],\n" + "startSpan: '"+ clientId +"slider-trailer',\n" + "sliderValue:$('"+ clientId +"slider_val').value"; if (slider.isOnSlide()) { sliderScript = sliderScript + ",\nonSlide: function(v) { updateSlider1(v);}"; } if (slider.isOnChange()) { sliderScript = sliderScript + ",\nonChange: function(v) { updateSlider1(v);}\n"; } sliderScript = sliderScript + " });\n"; return sliderScript; }
if (clientId.equals(super.getClientId(context))) { pushComponentToEL(context, getCompositeComponentParent(this)); callback.invokeContextCallback(context, this);
this(component.getClientId(), true);
this(component.getClientId(), true);
this(component.getClientId(), true);