org.apache.myfaces.custom.calendar
Class HtmlCalendarRenderer
java.lang.Object
|
+--javax.faces.render.Renderer
|
+--org.apache.myfaces.renderkit.html.HtmlRenderer
|
+--org.apache.myfaces.custom.calendar.HtmlCalendarRenderer
- public class HtmlCalendarRenderer
- extends HtmlRenderer
$Log: HtmlCalendarRenderer.java,v $
Revision 1.21 2005/04/08 02:02:26 schof
Fixes MYFACES-167 (Thanks to David Heffelfinger for reporting the bug and supplying the patch.)
Revision 1.20 2005/02/11 14:11:04 mmarinschek
fixed jira 97
Revision 1.19 2005/02/11 13:24:01 mmarinschek
fix jira 60, showing fix in examples
Revision 1.18 2005/01/17 10:08:44 mmarinschek
trying to fix problem with added resources to header; css and js was not changeable by the user anymore...
Revision 1.17 2005/01/09 18:15:12 mmarinschek
small changes - better error handling, label renderer supports more hooks for sub-classes
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.21 $ $Date: 2005/04/08 02:02:26 $
- Author:
- Martin Marinschek (latest modification by $Author: schof $)
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 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 |
HtmlCalendarRenderer
public HtmlCalendarRenderer()
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeEnd
in class javax.faces.render.Renderer
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)
- Overrides:
decode
in class javax.faces.render.Renderer
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
- Overrides:
getConvertedValue
in class javax.faces.render.Renderer
javax.faces.convert.ConverterException