@JSFProperty(tagExcluded=true) @Override public boolean isRendered() { return super.isRendered(); }
@Override public boolean isRendered() { boolean rendered = super.isRendered(); if ( mBuildWidgetsSupport instanceof EncodeBeginSupport ) { ( (EncodeBeginSupport) mBuildWidgetsSupport ).isRendered( rendered ); } return rendered; }
@Override public boolean isRendered() { boolean rendered = super.isRendered(); if ( mBuildWidgetsSupport instanceof EncodeBeginSupport ) { ( (EncodeBeginSupport) mBuildWidgetsSupport ).isRendered( rendered ); } return rendered; }
@Override public boolean isRendered() { return getWrapped().isRendered(); }
@Override public boolean isRendered() { return getWrapped().isRendered(); }
/** * Returns whether the given UI input component is editable. That is when it is rendered, not disabled and not * readonly. * @param input The UI input component to be checked. * @return <code>true</code> if the given UI input component is editable. */ public static boolean isEditable(UIInput input) { return input.isRendered() && !Boolean.TRUE.equals(input.getAttributes().get("disabled")) && !Boolean.TRUE.equals(input.getAttributes().get("readonly")); }
/** * Returns whether the given UI input component is editable. That is when it is rendered, not disabled and not * readonly. * @param input The UI input component to be checked. * @return <code>true</code> if the given UI input component is editable. */ public static boolean isEditable(UIInput input) { return input.isRendered() && !Boolean.TRUE.equals(input.getAttributes().get("disabled")) && !Boolean.TRUE.equals(input.getAttributes().get("readonly")); }
public void processEvent(SystemEvent event) throws AbortProcessingException { FacesContext context = FacesContext.getCurrentInstance(); UIInput source = (UIInput) event.getSource(); Map<Object, Object> attributes = context.getAttributes(); if (!attributes.containsKey(DetectInvalidChild.class.getName()) && !source.isValid() && source.isRendered()) { attributes.put(DetectInvalidChild.class.getName(), source); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
/** * <p>Specialized decode behavior on top of that provided by the * superclass. In addition to the standard * <code>processDecodes</code> behavior inherited from {@link * UIComponentBase}, calls <code>validate()</code> if the the * <code>immediate</code> property is true; if the component is * invalid afterwards or a <code>RuntimeException</code> is thrown, * calls {@link FacesContext#renderResponse}. </p> * * @throws NullPointerException {@inheritDoc} */ @Override public void processDecodes(FacesContext context) { if (context == null) { throw new NullPointerException(); } // Skip processing if our rendered flag is false if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
public void processDecodes(FacesContext context) { AssertionUtil.assertNotNull("context", context); if (!isRendered()) { return; } super.processDecodes(context); if (isImmediate()) { executeValidate(context); } }
public void processValidators(FacesContext context) { AssertionUtil.assertNotNull("context", context); if (!isRendered()) { return; } super.processValidators(context); if (!isImmediate()) { executeValidate(context); } }
public void processUpdates(FacesContext context) { if (context == null) throw new NullPointerException("context"); if (!isRendered()) return; super.processUpdates(context); try { updateModel(context); } catch (RuntimeException e) { context.renderResponse(); throw e; } if (!isValid()) { context.renderResponse(); } }
public void processUpdates(FacesContext context) { AssertionUtil.assertNotNull("context", context); if (!isRendered()) { return; } try { updateModel(context); } catch (RuntimeException e) { context.renderResponse(); throw e; } super.processUpdates(context); renderResponseIfNotValid(context); }
public void processValidators(FacesContext context) { if (context == null) throw new NullPointerException("context"); if (!isRendered()) return; super.processValidators(context); if (!isImmediate()) { try { validate(context); } catch (RuntimeException e) { context.renderResponse(); throw e; } if (!isValid()) { context.renderResponse(); } } }