org.apache.myfaces.custom.calendar
Class HtmlCalendarRenderer

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended byorg.apache.myfaces.renderkit.html.HtmlRenderer
          extended byorg.apache.myfaces.custom.calendar.HtmlCalendarRenderer

public class HtmlCalendarRenderer
extends HtmlRenderer

$Log: HtmlCalendarRenderer.java,v $ Revision 1.16 2004/12/27 04:11:11 mmarinschek Data Table stores the state of facets of children; script tag is rendered with type attribute instead of language attribute, popup works better as a column in a data table Revision 1.15 2004/12/10 02:08:54 svieujot Share code with HtmlInputDate. Revision 1.14 2004/12/09 12:18:43 mmarinschek changes in Calendar-Renderer to check for submitted-value first Revision 1.13 2004/12/09 05:13:02 svieujot Mark potential bugs where we use the backing bean's value, and do not check for submitted value Revision 1.12 2004/12/02 22:26:23 svieujot Simplify the AddResource methods Revision 1.11 2004/12/01 20:25:10 svieujot Make the Extensions filter support css and image resources. Convert the popup calendar to use this new filter. Revision 1.10 2004/11/29 13:57:56 mmarinschek changes for input-calendar bugs Revision 1.9 2004/10/13 11:50:57 matze renamed packages to org.apache Revision 1.8 2004/09/06 08:41:48 tinytoony changes to calendar - rendering wrong weekday, check output-text behavior Revision 1.7 2004/07/28 18:00:47 tinytoony calendar; revisited again for complete i18 Revision 1.6 2004/07/28 17:13:54 tinytoony new calendar popup, revisited, global variables renamed to help with uniqueness Revision 1.5 2004/07/27 16:48:02 tinytoony new calendar popup, revisited Revision 1.4 2004/07/27 06:28:32 tinytoony new calendar component as a popup Revision 1.3 2004/07/01 21:53:11 mwessendorf ASF switch Revision 1.2 2004/04/20 14:39:12 royalts writeLink: added text.setValue(content), removed link.setValue(content) Revision 1.1 2004/03/31 11:58:34 manolito custom component refactoring Revision 1.6 2004/03/29 15:06:17 manolito no longer depends on specific LinkRenderer

Version:
$Revision: 1.16 $ $Date: 2004/12/27 04:11:11 $
Author:
Martin Marinschek (latest modification by $Author: mmarinschek $)

Nested Class Summary
static class HtmlCalendarRenderer.CalendarDateTimeConverter
           
 
Constructor Summary
HtmlCalendarRenderer()
           
 
Method Summary
static void addScriptAndCSSResources(javax.faces.context.FacesContext facesContext)
          Used by the x:inputDate renderer : HTMLDateRenderer
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object submittedValue)
           
static java.lang.String getLocalizedLanguageScript(java.text.DateFormatSymbols symbols, java.lang.String[] months, int firstDayOfWeek, HtmlInputCalendar inputCalendar)
           
static java.lang.String[] mapMonths(java.text.DateFormatSymbols symbols)
           
 
Methods inherited from class org.apache.myfaces.renderkit.html.HtmlRenderer
encodeChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCalendarRenderer

public HtmlCalendarRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Throws:
java.io.IOException

addScriptAndCSSResources

public static void addScriptAndCSSResources(javax.faces.context.FacesContext facesContext)
                                     throws java.io.IOException
Used by the x:inputDate renderer : HTMLDateRenderer

Throws:
java.io.IOException

getLocalizedLanguageScript

public static java.lang.String getLocalizedLanguageScript(java.text.DateFormatSymbols symbols,
                                                          java.lang.String[] months,
                                                          int firstDayOfWeek,
                                                          HtmlInputCalendar inputCalendar)

mapMonths

public static java.lang.String[] mapMonths(java.text.DateFormatSymbols symbols)

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent uiComponent,
                                          java.lang.Object submittedValue)
                                   throws javax.faces.convert.ConverterException
Throws:
javax.faces.convert.ConverterException