incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Robinson" <dannyjrobin...@gmail.com>
Subject inputDate should not render icon if 'chooseId' specified.
Date Sat, 02 Dec 2006 01:54:13 GMT
The current <tr:inputDate> implementation always renders an icon immediately
following the input field.  However, if you specify a <tr:chooseDate> to
render the calendar in-page, it shouldn't render the icon.  A simple patch
to SimpleInputDateRenderer fixes this (below).

If there's support for this, I'll submit a JIRA issue.

Danny

PATCH to
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputDateRenderer

  @Override
  protected void renderAfterTextField(
    FacesContext context,
    RenderingContext arc,
    UIComponent component,
    FacesBean bean) throws IOException
  {
      // Only render the icon if chooseId is not specified.
      if (_getChooseId(arc) == null)
          super.renderAfterTextField(context, arc, component, bean);
  }



-- 
Chordiant Software Inc.
www.chordiant.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message