protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } else { return org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); } }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared_impl.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
/** * <p>Return the value of the <code>disabled</code> property.</p> */ public boolean isDisabled() { if (!Util.isEnabledOnUserRole(this)) { return true; } else { return super.isDisabled(); } }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared_impl.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
public static String getEditingMode(final HtmlInputText text) { if (text.isReadonly()) { return "readonly"; } else if (text.isDisabled()) { return "disabled"; } return "editable"; }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
public static String getEditingMode(final HtmlInputText text) { if (text.isReadonly()) { return "readonly"; } else if (text.isDisabled()) { return "disabled"; } return "editable"; }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared_impl.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } else { return org.apache.myfaces.shared_orchestra.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); } }
protected boolean isDisabled(FacesContext facesContext, UIComponent component) { //TODO: overwrite in extended HtmlTextRenderer and check for enabledOnUserRole if (component instanceof HtmlInputText) { return ((HtmlInputText)component).isDisabled(); } return org.apache.myfaces.shared.renderkit.RendererUtils.getBooleanAttribute(component, HTML.DISABLED_ATTR, false); }
public static String getEditingMode(final HtmlInputText text) { if (text.isReadonly()) { return "readonly"; } else if (text.isDisabled()) { return "disabled"; } return "editable"; }
/** * Boolean value to specify if the widget is disabled. * <P> * * @return Returns the value of the attribute, or false, if it hasn't been set * by the JSF file. */ public boolean isDisabled() { if (super.isDisabled()) return true; UIComponent ancestor = getParent(); while (ancestor != null) { if (ancestor instanceof IContentDisabled) { if (((IContentDisabled) ancestor).isContentDisabled()) { return true; } } ancestor = ancestor.getParent(); } return false; }
/** * Boolean value to specify if the widget is disabled. * <P> * * @return Returns the value of the attribute, or false, if it hasn't been set * by the JSF file. */ public boolean isDisabled() { if (super.isDisabled()) return true; UIComponent ancestor = getParent(); while (ancestor != null) { if (ancestor instanceof IContentDisabled) { if (((IContentDisabled) ancestor).isContentDisabled()) { return true; } } ancestor = ancestor.getParent(); } return false; }
private void renderInputField(ResponseWriter out, String text, String clientId, UIComponent component) throws IOException { out.startElement("input", component); out.writeAttribute("name", clientId, null); out.writeAttribute("id", clientId, null); if (text != null) { out.writeAttribute("value", text, "value"); } else { out.writeAttribute("value", "", "value"); } component.getAttributes().put("autocomplete","off"); HtmlRendererUtils.renderHTMLAttributes(out, component, HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED); if((component instanceof HtmlInputText) && ((HtmlInputText) component).isDisabled()) { out.writeAttribute(HTML.DISABLED_ATTR, Boolean.TRUE, null); } out.endElement("input"); }
dest.setConverter(src.getConverter()); dest.setDir(src.getDir()); dest.setDisabled(src.isDisabled()); dest.setLang(src.getLang()); dest.setLocalValueSet(src.isLocalValueSet());
dest.setConverter(src.getConverter()); dest.setDir(src.getDir()); dest.setDisabled(src.isDisabled()); dest.setLang(src.getLang()); dest.setLocalValueSet(src.isLocalValueSet());
dest.setConverter(src.getConverter()); dest.setDir(src.getDir()); dest.setDisabled(src.isDisabled()); dest.setLang(src.getLang()); dest.setLocalValueSet(src.isLocalValueSet());
dest.setConverter(src.getConverter()); dest.setDir(src.getDir()); dest.setDisabled(src.isDisabled()); dest.setLang(src.getLang()); dest.setLocalValueSet(src.isLocalValueSet());