@Override public void setDisabled(boolean disabled) { getWrapped().setDisabled(disabled); }
@Override public void setDisabled(boolean disabled) { getWrapped().setDisabled(disabled); }
@Override public void setDisabled(boolean disabled) { getWrapped().setDisabled(disabled); }
@Override public void setDisabled(boolean disabled) { getWrapped().setDisabled(disabled); }
@Override public void setDisabled(boolean disabled) { getWrapped().setDisabled(disabled); }
AjaxBehavior ab = new AjaxBehavior(); Object disabled = readBeanAttribute(cb, "isDisabled"); ab.setDisabled((Boolean) disabled); ab.setOnerror((String) readBeanAttribute(cb, "getOnerror")); ab.setRender((Collection<String>) readBeanAttributeAsCollection(cb, "getUpdate"));
AjaxBehavior ab = new AjaxBehavior(); Object disabled = readBeanAttribute(cb, "isDisabled"); ab.setDisabled((Boolean) disabled); ab.setOnerror((String) readBeanAttribute(cb, "getOnerror")); ab.setRender((Collection<String>) readBeanAttributeAsCollection(cb, "getUpdate"));
@Override public void processEvent(ComponentSystemEvent componentSystemEvent) throws AbortProcessingException { CommandButton commandButton = (CommandButton) componentSystemEvent.getComponent(); // If the specified event indicates that the command button was added to the component tree, then if (componentSystemEvent instanceof PostAddToViewEvent) { // Add the default Ajax behavior in order to support the ajax attribute. This effectively simulates the // presence of a child f:ajax tag. RendererUtil.addDefaultAjaxBehavior(commandButton, commandButton.getExecute(), commandButton.getProcess(), "@all", commandButton.getRender(), commandButton.getUpdate(), "@none"); } // Otherwise, the specified event indicates that the command button is about to be rendered. If the ajax // attribute is true, then ensure that the AjaxBehavior is rendered. Otherwise, ensure that the AjaxBehavior is // not rendered. else { AjaxBehavior ajaxBehavior = RendererUtil.getDefaultAjaxBehavior(commandButton); ajaxBehavior.setDisabled(!commandButton.isAjax()); } } }
@Override public void processEvent(ComponentSystemEvent componentSystemEvent) throws AbortProcessingException { CommandLink commandLink = (CommandLink) componentSystemEvent.getComponent(); // If the specified event indicates that the command link was added to the component tree, then if (componentSystemEvent instanceof PostAddToViewEvent) { // Add the default Ajax behavior in order to support the ajax attribute. This effectively simulates the // presence of a child f:ajax tag. RendererUtil.addDefaultAjaxBehavior(commandLink, commandLink.getExecute(), commandLink.getProcess(), "@all", commandLink.getRender(), commandLink.getUpdate(), "@none"); } // Otherwise, the specified event indicates that the command link is about to be rendered. If the ajax // attribute is true, then ensure that the AjaxBehavior is rendered. Otherwise, ensure that the AjaxBehavior is // not rendered. else { AjaxBehavior ajaxBehavior = RendererUtil.getDefaultAjaxBehavior(commandLink); ajaxBehavior.setDisabled(!commandLink.isAjax()); } } }
ajaxBehavior.setDisabled(_disabled.getBoolean(faceletContext));
ajaxBehavior.setDisabled(_disabled.getBoolean(faceletContext));
ajaxBehavior.setDisabled(_disabled.getBoolean(faceletContext));