You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2005/11/29 21:13:21 UTC

svn commit: r349804 [1/11] - in /myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule: ./ model/ renderer/ resource/css/ resource/javascript/ util/

Author: skitching
Date: Tue Nov 29 12:12:53 2005
New Revision: 349804

URL: http://svn.apache.org/viewcvs?rev=349804&view=rev
Log:
Fix svn:eol-style and svn:keywords

Modified:
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/UIPlanner.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/UISchedule.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/AbstractScheduleModel.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/Day.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/DefaultScheduleEntry.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/PlannerEntity.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/PlannerModel.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/ScheduleDay.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/ScheduleEntry.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/ScheduleModel.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/model/SimpleScheduleModel.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/AbstractCompactScheduleRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/AbstractScheduleRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/PlannerRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/ScheduleCompactMonthRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/ScheduleCompactWeekRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/ScheduleDelegatingRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/renderer/ScheduleDetailedDayRenderer.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/css/default.css   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/css/evolution.css   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/css/outlookxp.css   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/css/schedule.css   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/javascript/alphaAPI.js   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/javascript/domLib.js   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/javascript/domTT.js   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/javascript/domTT_drag.js   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/resource/javascript/fadomatic.js   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/util/ScheduleEntryComparator.java   (contents, props changed)
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/util/ScheduleUtil.java   (contents, props changed)

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java Tue Nov 29 12:12:53 2005
@@ -1,100 +1,100 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.myfaces.custom.schedule;
-
-
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
-
-import org.apache.myfaces.component.UserRoleAware;
-
-
-/**
- *
- * @author Bruno Aranda (latest modification by $Author$)
- * @version $Revision$
- */
-public class HtmlPlanner
-    extends UIPlanner
-    implements UserRoleAware 
-    {
-
-//  ------------------ GENERATED CODE BEGIN (do not modify!) --------------------
-
-    public static final String COMPONENT_TYPE = "org.apache.myfaces.Planner";
-    public static final String COMPONENT_FAMILY = "javax.faces.Panel";
-    private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Planner";
-
-    private String _enabledOnUserRole = null;
-    private String _visibleOnUserRole = null;
-
-    public HtmlPlanner()
-    {
-        setRendererType(DEFAULT_RENDERER_TYPE);
-    }
-
-    public String getFamily()
-    {
-        return COMPONENT_FAMILY;
-    }
-
-    public void setEnabledOnUserRole(String enabledOnUserRole)
-    {
-        _enabledOnUserRole = enabledOnUserRole;
-    }
-
-    public String getEnabledOnUserRole()
-    {
-        if (_enabledOnUserRole != null) return _enabledOnUserRole;
-        ValueBinding vb = getValueBinding("enabledOnUserRole");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
-    }
-
-    public void setVisibleOnUserRole(String visibleOnUserRole)
-    {
-        _visibleOnUserRole = visibleOnUserRole;
-    }
-
-    public String getVisibleOnUserRole()
-    {
-        if (_visibleOnUserRole != null) return _visibleOnUserRole;
-        ValueBinding vb = getValueBinding("visibleOnUserRole");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
-    }
-
-
-
-    public Object saveState(FacesContext context)
-    {
-        Object values[] = new Object[3];
-        values[0] = super.saveState(context);
-        values[1] = _enabledOnUserRole;
-        values[2] = _visibleOnUserRole;
-        return ((Object) (values));
-    }
-
-    public void restoreState(FacesContext context, Object state)
-    {
-        Object values[] = (Object[])state;
-        super.restoreState(context, values[0]);
-        _enabledOnUserRole = (String)values[1];
-        _visibleOnUserRole = (String)values[2];
-    }
-//  ------------------ GENERATED CODE END ---------------------------------------
-    
-}
-//The End
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.myfaces.custom.schedule;
+
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+import org.apache.myfaces.component.UserRoleAware;
+
+
+/**
+ *
+ * @author Bruno Aranda (latest modification by $Author$)
+ * @version $Revision$
+ */
+public class HtmlPlanner
+    extends UIPlanner
+    implements UserRoleAware 
+    {
+
+//  ------------------ GENERATED CODE BEGIN (do not modify!) --------------------
+
+    public static final String COMPONENT_TYPE = "org.apache.myfaces.Planner";
+    public static final String COMPONENT_FAMILY = "javax.faces.Panel";
+    private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Planner";
+
+    private String _enabledOnUserRole = null;
+    private String _visibleOnUserRole = null;
+
+    public HtmlPlanner()
+    {
+        setRendererType(DEFAULT_RENDERER_TYPE);
+    }
+
+    public String getFamily()
+    {
+        return COMPONENT_FAMILY;
+    }
+
+    public void setEnabledOnUserRole(String enabledOnUserRole)
+    {
+        _enabledOnUserRole = enabledOnUserRole;
+    }
+
+    public String getEnabledOnUserRole()
+    {
+        if (_enabledOnUserRole != null) return _enabledOnUserRole;
+        ValueBinding vb = getValueBinding("enabledOnUserRole");
+        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+    }
+
+    public void setVisibleOnUserRole(String visibleOnUserRole)
+    {
+        _visibleOnUserRole = visibleOnUserRole;
+    }
+
+    public String getVisibleOnUserRole()
+    {
+        if (_visibleOnUserRole != null) return _visibleOnUserRole;
+        ValueBinding vb = getValueBinding("visibleOnUserRole");
+        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+    }
+
+
+
+    public Object saveState(FacesContext context)
+    {
+        Object values[] = new Object[3];
+        values[0] = super.saveState(context);
+        values[1] = _enabledOnUserRole;
+        values[2] = _visibleOnUserRole;
+        return ((Object) (values));
+    }
+
+    public void restoreState(FacesContext context, Object state)
+    {
+        Object values[] = (Object[])state;
+        super.restoreState(context, values[0]);
+        _enabledOnUserRole = (String)values[1];
+        _visibleOnUserRole = (String)values[2];
+    }
+//  ------------------ GENERATED CODE END ---------------------------------------
+    
+}
+//The End

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml Tue Nov 29 12:12:53 2005
@@ -1,19 +1,19 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE component PUBLIC
-  "-//MyFaces//DTD MyFaces component def 1.0//EN"
-  "http://myfaces.apache.org/dtd/Component.dtd">
-<component>
-    <component-class>org.apache.myfaces.custom.schedule.HtmlPlanner</component-class>
-    <base-class>org.apache.myfaces.custom.schedule.UIPlanner</base-class>
-    <component-type>org.apache.myfaces.Planner</component-type>
-    <component-family>javax.faces.Panel</component-family>
-    <renderer-type>org.apache.myfaces.Planner</renderer-type>
-    <field>
-        <name>enabledOnUserRole</name>
-        <type>java.lang.String</type>
-    </field>
-    <field>
-        <name>visibleOnUserRole</name>
-        <type>java.lang.String</type>
-    </field>
-</component>
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE component PUBLIC
+  "-//MyFaces//DTD MyFaces component def 1.0//EN"
+  "http://myfaces.apache.org/dtd/Component.dtd">
+<component>
+    <component-class>org.apache.myfaces.custom.schedule.HtmlPlanner</component-class>
+    <base-class>org.apache.myfaces.custom.schedule.UIPlanner</base-class>
+    <component-type>org.apache.myfaces.Planner</component-type>
+    <component-family>javax.faces.Panel</component-family>
+    <renderer-type>org.apache.myfaces.Planner</renderer-type>
+    <field>
+        <name>enabledOnUserRole</name>
+        <type>java.lang.String</type>
+    </field>
+    <field>
+        <name>visibleOnUserRole</name>
+        <type>java.lang.String</type>
+    </field>
+</component>

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java Tue Nov 29 12:12:53 2005
@@ -1,99 +1,99 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.myfaces.custom.schedule;
-
-
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
-
-import org.apache.myfaces.component.UserRoleAware;
-
-
-/**
- *
- * @author Bruno Aranda (latest modification by $Author$)
- * @version $Revision$
- */
-public class HtmlSchedule
-    extends UISchedule implements UserRoleAware
-{
-   
-//  ------------------ GENERATED CODE BEGIN (do not modify!) --------------------
-
-    public static final String COMPONENT_TYPE = "org.apache.myfaces.Schedule";
-    public static final String COMPONENT_FAMILY = "javax.faces.Panel";
-    private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Schedule";
-
-    private String _enabledOnUserRole = null;
-    private String _visibleOnUserRole = null;
-
-    public HtmlSchedule()
-    {
-        setRendererType(DEFAULT_RENDERER_TYPE);
-    }
-
-    public String getFamily()
-    {
-        return COMPONENT_FAMILY;
-    }
-
-    public void setEnabledOnUserRole(String enabledOnUserRole)
-    {
-        _enabledOnUserRole = enabledOnUserRole;
-    }
-
-    public String getEnabledOnUserRole()
-    {
-        if (_enabledOnUserRole != null) return _enabledOnUserRole;
-        ValueBinding vb = getValueBinding("enabledOnUserRole");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
-    }
-
-    public void setVisibleOnUserRole(String visibleOnUserRole)
-    {
-        _visibleOnUserRole = visibleOnUserRole;
-    }
-
-    public String getVisibleOnUserRole()
-    {
-        if (_visibleOnUserRole != null) return _visibleOnUserRole;
-        ValueBinding vb = getValueBinding("visibleOnUserRole");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
-    }
-
-
-
-    public Object saveState(FacesContext context)
-    {
-        Object values[] = new Object[3];
-        values[0] = super.saveState(context);
-        values[1] = _enabledOnUserRole;
-        values[2] = _visibleOnUserRole;
-        return ((Object) (values));
-    }
-
-    public void restoreState(FacesContext context, Object state)
-    {
-        Object values[] = (Object[])state;
-        super.restoreState(context, values[0]);
-        _enabledOnUserRole = (String)values[1];
-        _visibleOnUserRole = (String)values[2];
-    }
-//  ------------------ GENERATED CODE END ---------------------------------------
-	
-}
-//The End
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.myfaces.custom.schedule;
+
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+import org.apache.myfaces.component.UserRoleAware;
+
+
+/**
+ *
+ * @author Bruno Aranda (latest modification by $Author$)
+ * @version $Revision$
+ */
+public class HtmlSchedule
+    extends UISchedule implements UserRoleAware
+{
+   
+//  ------------------ GENERATED CODE BEGIN (do not modify!) --------------------
+
+    public static final String COMPONENT_TYPE = "org.apache.myfaces.Schedule";
+    public static final String COMPONENT_FAMILY = "javax.faces.Panel";
+    private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Schedule";
+
+    private String _enabledOnUserRole = null;
+    private String _visibleOnUserRole = null;
+
+    public HtmlSchedule()
+    {
+        setRendererType(DEFAULT_RENDERER_TYPE);
+    }
+
+    public String getFamily()
+    {
+        return COMPONENT_FAMILY;
+    }
+
+    public void setEnabledOnUserRole(String enabledOnUserRole)
+    {
+        _enabledOnUserRole = enabledOnUserRole;
+    }
+
+    public String getEnabledOnUserRole()
+    {
+        if (_enabledOnUserRole != null) return _enabledOnUserRole;
+        ValueBinding vb = getValueBinding("enabledOnUserRole");
+        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+    }
+
+    public void setVisibleOnUserRole(String visibleOnUserRole)
+    {
+        _visibleOnUserRole = visibleOnUserRole;
+    }
+
+    public String getVisibleOnUserRole()
+    {
+        if (_visibleOnUserRole != null) return _visibleOnUserRole;
+        ValueBinding vb = getValueBinding("visibleOnUserRole");
+        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+    }
+
+
+
+    public Object saveState(FacesContext context)
+    {
+        Object values[] = new Object[3];
+        values[0] = super.saveState(context);
+        values[1] = _enabledOnUserRole;
+        values[2] = _visibleOnUserRole;
+        return ((Object) (values));
+    }
+
+    public void restoreState(FacesContext context, Object state)
+    {
+        Object values[] = (Object[])state;
+        super.restoreState(context, values[0]);
+        _enabledOnUserRole = (String)values[1];
+        _visibleOnUserRole = (String)values[2];
+    }
+//  ------------------ GENERATED CODE END ---------------------------------------
+	
+}
+//The End

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml Tue Nov 29 12:12:53 2005
@@ -1,19 +1,19 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE component PUBLIC
-  "-//MyFaces//DTD MyFaces component def 1.0//EN"
-  "http://myfaces.apache.org/dtd/Component.dtd">
-<component>
-    <component-class>org.apache.myfaces.custom.schedule.HtmlSchedule</component-class>
-    <base-class>org.apache.myfaces.custom.schedule.UISchedule</base-class>
-    <component-type>org.apache.myfaces.Schedule</component-type>
-    <component-family>javax.faces.Panel</component-family>
-    <renderer-type>org.apache.myfaces.Schedule</renderer-type>
-    <field>
-        <name>enabledOnUserRole</name>
-        <type>java.lang.String</type>
-    </field>
-    <field>
-        <name>visibleOnUserRole</name>
-        <type>java.lang.String</type>
-    </field>
-</component>
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE component PUBLIC
+  "-//MyFaces//DTD MyFaces component def 1.0//EN"
+  "http://myfaces.apache.org/dtd/Component.dtd">
+<component>
+    <component-class>org.apache.myfaces.custom.schedule.HtmlSchedule</component-class>
+    <base-class>org.apache.myfaces.custom.schedule.UISchedule</base-class>
+    <component-type>org.apache.myfaces.Schedule</component-type>
+    <component-family>javax.faces.Panel</component-family>
+    <renderer-type>org.apache.myfaces.Schedule</renderer-type>
+    <field>
+        <name>enabledOnUserRole</name>
+        <type>java.lang.String</type>
+    </field>
+    <field>
+        <name>visibleOnUserRole</name>
+        <type>java.lang.String</type>
+    </field>
+</component>

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java Tue Nov 29 12:12:53 2005
@@ -1,469 +1,469 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.myfaces.custom.schedule;
-
-import javax.faces.application.Application;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.webapp.UIComponentTag;
-
-/**
- * <p>
- * JSP tag for the UIPlanner component
- * </p>
- *
- * @author Jurgen Lust (latest modification by $Author$)
- * @version $Revision$
- */
-public class PlannerTag extends UIComponentTag
-{
-    //~ Instance fields --------------------------------------------------------
-
-    private String gutterWidthInPixels;
-    private String headerDateFormat;
-    private String legend;
-    private String rendered;
-    private String theme;
-    private String tooltip;
-    private String value;
-    private String visibleEndHour;
-    private String visibleStartHour;
-    private String workingEndHour;
-    private String workingStartHour;
-
-    //~ Methods ----------------------------------------------------------------
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#getComponentType()
-     */
-    public String getComponentType()
-    {
-        return HtmlPlanner.COMPONENT_TYPE;
-    }
-
-    /**
-     * <p>
-     * The width of the gutter in pixels
-     * </p>
-     *
-     * @param gutterWidthInPixels The gutterWidthInPixels to set.
-     */
-    public void setGutterWidthInPixels(String gutterWidthInPixels)
-    {
-        this.gutterWidthInPixels = gutterWidthInPixels;
-    }
-
-    /**
-     * <p>
-     * The width of the gutter in pixels
-     * </p>
-     *
-     * @return Returns the gutterWidthInPixels.
-     */
-    public String getGutterWidthInPixels()
-    {
-        return gutterWidthInPixels;
-    }
-
-    /**
-     * <p>
-     * The dateformat used in the header
-     * </p>
-     *
-     * @param headerDateFormat The headerDateFormat to set.
-     */
-    public void setHeaderDateFormat(String headerDateFormat)
-    {
-        this.headerDateFormat = headerDateFormat;
-    }
-
-    /**
-     * <p>
-     * The dateformat used in the header
-     * </p>
-     *
-     * @return Returns the headerDateFormat.
-     */
-    public String getHeaderDateFormat()
-    {
-        return headerDateFormat;
-    }
-
-    /**
-     * <p>
-     * Should a legend be displayed?
-     * </p>
-     *
-     * @param legend The legend to set.
-     */
-    public void setLegend(String legend)
-    {
-        this.legend = legend;
-    }
-
-    /**
-     * <p>
-     * Should a legend be displayed?
-     * </p>
-     *
-     * @return Returns the legend.
-     */
-    public String getLegend()
-    {
-        return legend;
-    }
-
-    /**
-     * <p>
-     * Should this component be rendered?
-     * </p>
-     *
-     * @param rendered The rendered to set.
-     */
-    public void setRendered(String rendered)
-    {
-        this.rendered = rendered;
-    }
-
-    /**
-     * <p>
-     * Should this component be rendered?
-     * </p>
-     *
-     * @return Returns the rendered.
-     */
-    public String getRendered()
-    {
-        return rendered;
-    }
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#getRendererType()
-     */
-    public String getRendererType()
-    {
-        return UIPlanner.DEFAULT_RENDERER_TYPE;
-    }
-
-    /**
-     * <p>
-     * The theme of the planner component. This is the name of the
-     * CSS file that should be loaded when rendering the planner.
-     * Possible values are 'default', 'outlookxp', 'outlook2003',
-     * 'evolution'.
-     * </p>
-     * 
-     * @param theme The theme to set.
-     */
-    public void setTheme(String theme)
-    {
-        this.theme = theme;
-    }
-
-    /**
-     * <p>
-     * The theme of the planner component. This is the name of the
-     * CSS file that should be loaded when rendering the planner.
-     * Possible values are 'default', 'outlookxp', 'outlook2003',
-     * 'evolution'.
-     * </p>
-     * 
-     * @return Returns the theme.
-     */
-    public String getTheme()
-    {
-        return theme;
-    }
-
-    /**
-     * <p>
-     * Should tooltips be displayed?
-     * </p>
-     *
-     * @param tooltip The tooltip to set.
-     */
-    public void setTooltip(String tooltip)
-    {
-        this.tooltip = tooltip;
-    }
-
-    /**
-     * <p>
-     * Should tooltips be displayed?
-     * </p>
-     *
-     * @return Returns the tooltip.
-     */
-    public String getTooltip()
-    {
-        return tooltip;
-    }
-
-    /**
-     * <p>
-     * The value of the Planner component
-     * </p>
-     *
-     * @param value The value to set.
-     */
-    public void setValue(String value)
-    {
-        this.value = value;
-    }
-
-    /**
-     * <p>
-     * The value of the Planner component
-     * </p>
-     *
-     * @return Returns the value.
-     */
-    public String getValue()
-    {
-        return value;
-    }
-
-    /**
-     * <p>
-     * The visible end hour of the planner component
-     * </p>
-     *
-     * @param visibleEndHour The visibleEndHour to set.
-     */
-    public void setVisibleEndHour(String visibleEndHour)
-    {
-        this.visibleEndHour = visibleEndHour;
-    }
-
-    /**
-     * <p>
-     * The visible end hour of the planner component
-     * </p>
-     *
-     * @return Returns the visibleEndHour.
-     */
-    public String getVisibleEndHour()
-    {
-        return visibleEndHour;
-    }
-
-    /**
-     * <p>
-     * The visible start hour of the planner component
-     * </p>
-     *
-     * @param visibleStartHour The visibleStartHour to set.
-     */
-    public void setVisibleStartHour(String visibleStartHour)
-    {
-        this.visibleStartHour = visibleStartHour;
-    }
-
-    /**
-     * <p>
-     * The visible start hour of the planner component
-     * </p>
-     *
-     * @return Returns the visibleStartHour.
-     */
-    public String getVisibleStartHour()
-    {
-        return visibleStartHour;
-    }
-
-    /**
-     * <p>
-     * The working end hour of the planner component
-     * </p>
-     *
-     * @param workingEndHour The workingEndHour to set.
-     */
-    public void setWorkingEndHour(String workingEndHour)
-    {
-        this.workingEndHour = workingEndHour;
-    }
-
-    /**
-     * <p>
-     * The working end hour of the planner component
-     * </p>
-     *
-     * @return Returns the workingEndHour.
-     */
-    public String getWorkingEndHour()
-    {
-        return workingEndHour;
-    }
-
-    /**
-     * <p>
-     * The working start hour of the planner component
-     * </p>
-     *
-     * @param workingStartHour The workingStartHour to set.
-     */
-    public void setWorkingStartHour(String workingStartHour)
-    {
-        this.workingStartHour = workingStartHour;
-    }
-
-    /**
-     * <p>
-     * The working start hour of the planner component
-     * </p>
-     *
-     * @return Returns the workingStartHour.
-     */
-    public String getWorkingStartHour()
-    {
-        return workingStartHour;
-    }
-
-    /**
-     * @see javax.servlet.jsp.tagext.Tag#release()
-     */
-    public void release()
-    {
-        super.release();
-        visibleStartHour = null;
-        visibleEndHour = null;
-        workingStartHour = null;
-        workingEndHour = null;
-        headerDateFormat = null;
-        value = null;
-        theme = null;
-        tooltip = null;
-        legend = null;
-        gutterWidthInPixels = null;
-        rendered = null;
-    }
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
-     */
-    protected void setProperties(UIComponent component)
-    {
-        super.setProperties(component);
-
-        HtmlPlanner planner = (HtmlPlanner) component;
-        FacesContext context = FacesContext.getCurrentInstance();
-        Application app = context.getApplication();
-
-        if (rendered != null)
-        {
-            if (isValueReference(rendered))
-            {
-                planner.setValueBinding("rendered", app
-                        .createValueBinding(rendered));
-            }
-            else
-            {
-                planner.setRendered(Boolean.valueOf(rendered).booleanValue());
-            }
-        }
-
-        if (visibleStartHour != null)
-        {
-            if (isValueReference(visibleStartHour))
-            {
-                planner.setValueBinding("visibleStartHour", app
-                        .createValueBinding(visibleStartHour));
-            }
-            else
-            {
-                planner.setVisibleStartHour(new Integer(visibleStartHour)
-                        .intValue());
-            }
-        }
-
-        if (visibleEndHour != null)
-        {
-            if (isValueReference(visibleEndHour))
-            {
-                planner.setValueBinding("visibleEndHour", app
-                        .createValueBinding(visibleEndHour));
-            }
-            else
-            {
-                planner.setVisibleEndHour(new Integer(visibleEndHour)
-                        .intValue());
-            }
-        }
-
-        if (workingStartHour != null)
-        {
-            if (isValueReference(workingStartHour))
-            {
-                planner.setValueBinding("workingStartHour", app
-                        .createValueBinding(workingStartHour));
-            }
-            else
-            {
-                planner.setWorkingStartHour(new Integer(workingStartHour)
-                        .intValue());
-            }
-        }
-
-        if (workingEndHour != null)
-        {
-            if (isValueReference(workingEndHour))
-            {
-                planner.setValueBinding("workingEndHour", app
-                        .createValueBinding(workingEndHour));
-            }
-            else
-            {
-                planner.setWorkingEndHour(new Integer(workingEndHour)
-                        .intValue());
-            }
-        }
-
-        if ((value != null) && isValueReference(value))
-        {
-            planner.setValueBinding("value", app.createValueBinding(value));
-        }
-        else
-        {
-            throw new IllegalArgumentException(
-                    "The value property must be a value binding expression that points to a PlannerModel object.");
-        }
-
-        addAttribute(app, planner, "headerDateFormat", headerDateFormat);
-        addAttribute(app, planner, "theme", theme);
-        addAttribute(app, planner, "tooltip", tooltip);
-        addAttribute(app, planner, "legend", legend);
-        addAttribute(app, planner, "gutterWidthInPixels", gutterWidthInPixels);
-    }
-
-    private void addAttribute(Application app, UIComponent component,
-            String key, String value)
-    {
-        if ((key != null) && (value != null))
-        {
-            if (isValueReference(value))
-            {
-                component.setValueBinding(key, app
-                        .createValueBinding(value));
-            }
-            else
-            {
-                component.getAttributes().put(key, value);
-            }
-        }
-    }
-}
-//The End
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.myfaces.custom.schedule;
+
+import javax.faces.application.Application;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.webapp.UIComponentTag;
+
+/**
+ * <p>
+ * JSP tag for the UIPlanner component
+ * </p>
+ *
+ * @author Jurgen Lust (latest modification by $Author$)
+ * @version $Revision$
+ */
+public class PlannerTag extends UIComponentTag
+{
+    //~ Instance fields --------------------------------------------------------
+
+    private String gutterWidthInPixels;
+    private String headerDateFormat;
+    private String legend;
+    private String rendered;
+    private String theme;
+    private String tooltip;
+    private String value;
+    private String visibleEndHour;
+    private String visibleStartHour;
+    private String workingEndHour;
+    private String workingStartHour;
+
+    //~ Methods ----------------------------------------------------------------
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#getComponentType()
+     */
+    public String getComponentType()
+    {
+        return HtmlPlanner.COMPONENT_TYPE;
+    }
+
+    /**
+     * <p>
+     * The width of the gutter in pixels
+     * </p>
+     *
+     * @param gutterWidthInPixels The gutterWidthInPixels to set.
+     */
+    public void setGutterWidthInPixels(String gutterWidthInPixels)
+    {
+        this.gutterWidthInPixels = gutterWidthInPixels;
+    }
+
+    /**
+     * <p>
+     * The width of the gutter in pixels
+     * </p>
+     *
+     * @return Returns the gutterWidthInPixels.
+     */
+    public String getGutterWidthInPixels()
+    {
+        return gutterWidthInPixels;
+    }
+
+    /**
+     * <p>
+     * The dateformat used in the header
+     * </p>
+     *
+     * @param headerDateFormat The headerDateFormat to set.
+     */
+    public void setHeaderDateFormat(String headerDateFormat)
+    {
+        this.headerDateFormat = headerDateFormat;
+    }
+
+    /**
+     * <p>
+     * The dateformat used in the header
+     * </p>
+     *
+     * @return Returns the headerDateFormat.
+     */
+    public String getHeaderDateFormat()
+    {
+        return headerDateFormat;
+    }
+
+    /**
+     * <p>
+     * Should a legend be displayed?
+     * </p>
+     *
+     * @param legend The legend to set.
+     */
+    public void setLegend(String legend)
+    {
+        this.legend = legend;
+    }
+
+    /**
+     * <p>
+     * Should a legend be displayed?
+     * </p>
+     *
+     * @return Returns the legend.
+     */
+    public String getLegend()
+    {
+        return legend;
+    }
+
+    /**
+     * <p>
+     * Should this component be rendered?
+     * </p>
+     *
+     * @param rendered The rendered to set.
+     */
+    public void setRendered(String rendered)
+    {
+        this.rendered = rendered;
+    }
+
+    /**
+     * <p>
+     * Should this component be rendered?
+     * </p>
+     *
+     * @return Returns the rendered.
+     */
+    public String getRendered()
+    {
+        return rendered;
+    }
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#getRendererType()
+     */
+    public String getRendererType()
+    {
+        return UIPlanner.DEFAULT_RENDERER_TYPE;
+    }
+
+    /**
+     * <p>
+     * The theme of the planner component. This is the name of the
+     * CSS file that should be loaded when rendering the planner.
+     * Possible values are 'default', 'outlookxp', 'outlook2003',
+     * 'evolution'.
+     * </p>
+     * 
+     * @param theme The theme to set.
+     */
+    public void setTheme(String theme)
+    {
+        this.theme = theme;
+    }
+
+    /**
+     * <p>
+     * The theme of the planner component. This is the name of the
+     * CSS file that should be loaded when rendering the planner.
+     * Possible values are 'default', 'outlookxp', 'outlook2003',
+     * 'evolution'.
+     * </p>
+     * 
+     * @return Returns the theme.
+     */
+    public String getTheme()
+    {
+        return theme;
+    }
+
+    /**
+     * <p>
+     * Should tooltips be displayed?
+     * </p>
+     *
+     * @param tooltip The tooltip to set.
+     */
+    public void setTooltip(String tooltip)
+    {
+        this.tooltip = tooltip;
+    }
+
+    /**
+     * <p>
+     * Should tooltips be displayed?
+     * </p>
+     *
+     * @return Returns the tooltip.
+     */
+    public String getTooltip()
+    {
+        return tooltip;
+    }
+
+    /**
+     * <p>
+     * The value of the Planner component
+     * </p>
+     *
+     * @param value The value to set.
+     */
+    public void setValue(String value)
+    {
+        this.value = value;
+    }
+
+    /**
+     * <p>
+     * The value of the Planner component
+     * </p>
+     *
+     * @return Returns the value.
+     */
+    public String getValue()
+    {
+        return value;
+    }
+
+    /**
+     * <p>
+     * The visible end hour of the planner component
+     * </p>
+     *
+     * @param visibleEndHour The visibleEndHour to set.
+     */
+    public void setVisibleEndHour(String visibleEndHour)
+    {
+        this.visibleEndHour = visibleEndHour;
+    }
+
+    /**
+     * <p>
+     * The visible end hour of the planner component
+     * </p>
+     *
+     * @return Returns the visibleEndHour.
+     */
+    public String getVisibleEndHour()
+    {
+        return visibleEndHour;
+    }
+
+    /**
+     * <p>
+     * The visible start hour of the planner component
+     * </p>
+     *
+     * @param visibleStartHour The visibleStartHour to set.
+     */
+    public void setVisibleStartHour(String visibleStartHour)
+    {
+        this.visibleStartHour = visibleStartHour;
+    }
+
+    /**
+     * <p>
+     * The visible start hour of the planner component
+     * </p>
+     *
+     * @return Returns the visibleStartHour.
+     */
+    public String getVisibleStartHour()
+    {
+        return visibleStartHour;
+    }
+
+    /**
+     * <p>
+     * The working end hour of the planner component
+     * </p>
+     *
+     * @param workingEndHour The workingEndHour to set.
+     */
+    public void setWorkingEndHour(String workingEndHour)
+    {
+        this.workingEndHour = workingEndHour;
+    }
+
+    /**
+     * <p>
+     * The working end hour of the planner component
+     * </p>
+     *
+     * @return Returns the workingEndHour.
+     */
+    public String getWorkingEndHour()
+    {
+        return workingEndHour;
+    }
+
+    /**
+     * <p>
+     * The working start hour of the planner component
+     * </p>
+     *
+     * @param workingStartHour The workingStartHour to set.
+     */
+    public void setWorkingStartHour(String workingStartHour)
+    {
+        this.workingStartHour = workingStartHour;
+    }
+
+    /**
+     * <p>
+     * The working start hour of the planner component
+     * </p>
+     *
+     * @return Returns the workingStartHour.
+     */
+    public String getWorkingStartHour()
+    {
+        return workingStartHour;
+    }
+
+    /**
+     * @see javax.servlet.jsp.tagext.Tag#release()
+     */
+    public void release()
+    {
+        super.release();
+        visibleStartHour = null;
+        visibleEndHour = null;
+        workingStartHour = null;
+        workingEndHour = null;
+        headerDateFormat = null;
+        value = null;
+        theme = null;
+        tooltip = null;
+        legend = null;
+        gutterWidthInPixels = null;
+        rendered = null;
+    }
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
+     */
+    protected void setProperties(UIComponent component)
+    {
+        super.setProperties(component);
+
+        HtmlPlanner planner = (HtmlPlanner) component;
+        FacesContext context = FacesContext.getCurrentInstance();
+        Application app = context.getApplication();
+
+        if (rendered != null)
+        {
+            if (isValueReference(rendered))
+            {
+                planner.setValueBinding("rendered", app
+                        .createValueBinding(rendered));
+            }
+            else
+            {
+                planner.setRendered(Boolean.valueOf(rendered).booleanValue());
+            }
+        }
+
+        if (visibleStartHour != null)
+        {
+            if (isValueReference(visibleStartHour))
+            {
+                planner.setValueBinding("visibleStartHour", app
+                        .createValueBinding(visibleStartHour));
+            }
+            else
+            {
+                planner.setVisibleStartHour(new Integer(visibleStartHour)
+                        .intValue());
+            }
+        }
+
+        if (visibleEndHour != null)
+        {
+            if (isValueReference(visibleEndHour))
+            {
+                planner.setValueBinding("visibleEndHour", app
+                        .createValueBinding(visibleEndHour));
+            }
+            else
+            {
+                planner.setVisibleEndHour(new Integer(visibleEndHour)
+                        .intValue());
+            }
+        }
+
+        if (workingStartHour != null)
+        {
+            if (isValueReference(workingStartHour))
+            {
+                planner.setValueBinding("workingStartHour", app
+                        .createValueBinding(workingStartHour));
+            }
+            else
+            {
+                planner.setWorkingStartHour(new Integer(workingStartHour)
+                        .intValue());
+            }
+        }
+
+        if (workingEndHour != null)
+        {
+            if (isValueReference(workingEndHour))
+            {
+                planner.setValueBinding("workingEndHour", app
+                        .createValueBinding(workingEndHour));
+            }
+            else
+            {
+                planner.setWorkingEndHour(new Integer(workingEndHour)
+                        .intValue());
+            }
+        }
+
+        if ((value != null) && isValueReference(value))
+        {
+            planner.setValueBinding("value", app.createValueBinding(value));
+        }
+        else
+        {
+            throw new IllegalArgumentException(
+                    "The value property must be a value binding expression that points to a PlannerModel object.");
+        }
+
+        addAttribute(app, planner, "headerDateFormat", headerDateFormat);
+        addAttribute(app, planner, "theme", theme);
+        addAttribute(app, planner, "tooltip", tooltip);
+        addAttribute(app, planner, "legend", legend);
+        addAttribute(app, planner, "gutterWidthInPixels", gutterWidthInPixels);
+    }
+
+    private void addAttribute(Application app, UIComponent component,
+            String key, String value)
+    {
+        if ((key != null) && (value != null))
+        {
+            if (isValueReference(value))
+            {
+                component.setValueBinding(key, app
+                        .createValueBinding(value));
+            }
+            else
+            {
+                component.getAttributes().put(key, value);
+            }
+        }
+    }
+}
+//The End

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/PlannerTag.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java?rev=349804&r1=349803&r2=349804&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java Tue Nov 29 12:12:53 2005
@@ -1,630 +1,630 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.myfaces.custom.schedule;
-
-import javax.faces.application.Application;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.el.MethodBinding;
-import javax.faces.event.ActionEvent;
-import javax.faces.webapp.UIComponentTag;
-
-/**
- * <p>
- * JSP tag for the schedule component
- * </p>
- *
- * @author Jurgen Lust (latest modification by $Author$)
- * @version $Revision$
- */
-public class ScheduleTag extends UIComponentTag
-{
-    //~ Instance fields --------------------------------------------------------
-
-    private String action;
-    private String actionListener;
-    private String compactMonthRowHeight;
-    private String compactWeekRowHeight;
-    private String headerDateFormat;
-    private String immediate;
-    private String readonly;
-    private String rendered;
-    private String theme;
-    private String tooltip;
-    private String value;
-    private String visibleEndHour;
-    private String visibleStartHour;
-    private String workingEndHour;
-    private String workingStartHour;
-
-    //~ Methods ----------------------------------------------------------------
-
-    /**
-     * <p>
-     * The action of the JSF component
-     * </p>
-     *
-     * @param action The action to set.
-     */
-    public void setAction(String action)
-    {
-        this.action = action;
-    }
-
-    /**
-     * <p>
-     * The action of the JSF component
-     * </p>
-     *
-     * @return Returns the action.
-     */
-    public String getAction()
-    {
-        return action;
-    }
-
-    /**
-     * <p>
-     * The actionlistener of the JSF component
-     * </p>
-     *
-     * @param actionListener The actionListener to set.
-     */
-    public void setActionListener(String actionListener)
-    {
-        this.actionListener = actionListener;
-    }
-
-    /**
-     * <p>
-     * The actionlistener of the JSF component
-     * </p>
-     *
-     * @return Returns the actionListener.
-     */
-    public String getActionListener()
-    {
-        return actionListener;
-    }
-
-    /**
-     * <p>
-     * The height in pixels of a cell in the compact month view
-     * </p>
-     *
-     * @param compactMonthRowHeight The compactMonthRowHeight to set.
-     */
-    public void setCompactMonthRowHeight(String compactMonthRowHeight)
-    {
-        this.compactMonthRowHeight = compactMonthRowHeight;
-    }
-
-    /**
-     * <p>
-     * The height in pixels of a cell in the compact month view
-     * </p>
-     *
-     * @return Returns the compactMonthRowHeight.
-     */
-    public String getCompactMonthRowHeight()
-    {
-        return compactMonthRowHeight;
-    }
-
-    /**
-     * <p>
-     * The height in pixels of a cell in the compact week view
-     * </p>
-     *
-     * @param compactWeekRowHeight The compactWeekRowHeight to set.
-     */
-    public void setCompactWeekRowHeight(String compactWeekRowHeight)
-    {
-        this.compactWeekRowHeight = compactWeekRowHeight;
-    }
-
-    /**
-     * <p>
-     * The height in pixels of a cell in the compact week view
-     * </p>
-     *
-     * @return Returns the compactWeekRowHeight.
-     */
-    public String getCompactWeekRowHeight()
-    {
-        return compactWeekRowHeight;
-    }
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#getComponentType()
-     */
-    public String getComponentType()
-    {
-        return HtmlSchedule.COMPONENT_TYPE;
-    }
-
-    /**
-     * <p>
-     * The dateformat used in the header
-     * </p>
-     *
-     * @param headerDateFormat The headerDateFormat to set.
-     */
-    public void setHeaderDateFormat(String headerDateFormat)
-    {
-        this.headerDateFormat = headerDateFormat;
-    }
-
-    /**
-     * <p>
-     * The dateformat used in the header
-     * </p>
-     *
-     * @return Returns the headerDateFormat.
-     */
-    public String getHeaderDateFormat()
-    {
-        return headerDateFormat;
-    }
-
-    /**
-     * <p>
-     * The immediate property of the JSF component
-     * </p>
-     *
-     * @param immediate The immediate to set.
-     */
-    public void setImmediate(String immediate)
-    {
-        this.immediate = immediate;
-    }
-
-    /**
-     * <p>
-     * The immediate property of the JSF component
-     * </p>
-     *
-     * @return Returns the immediate.
-     */
-    public String getImmediate()
-    {
-        return immediate;
-    }
-
-    /**
-     * <p>
-     * The readonly property of the JSF component
-     * </p>
-     *
-     * @param readonly The readonly to set.
-     */
-    public void setReadonly(String readonly)
-    {
-        this.readonly = readonly;
-    }
-
-    /**
-     * <p>
-     * The readonly property of the JSF component
-     * </p>
-     *
-     * @return Returns the readonly.
-     */
-    public String getReadonly()
-    {
-        return readonly;
-    }
-
-    /**
-     * <p>
-     * Should this component be rendered?
-     * </p>
-     *
-     * @param rendered The rendered to set.
-     */
-    public void setRendered(String rendered)
-    {
-        this.rendered = rendered;
-    }
-
-    /**
-     * <p>
-     * Should this component be rendered?
-     * </p>
-     *
-     * @return Returns the rendered.
-     */
-    public String getRendered()
-    {
-        return rendered;
-    }
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#getRendererType()
-     */
-    public String getRendererType()
-    {
-        return UISchedule.DEFAULT_RENDERER_TYPE;
-    }
-
-    /**
-     * <p>
-     * The theme of the schedule component. This is the name of the
-     * CSS file that should be loaded when rendering the schedule.
-     * Possible values are 'default', 'outlookxp', 'evolution'.
-     * </p>
-     * 
-     * @param theme The theme to set.
-     */
-    public void setTheme(String theme)
-    {
-        this.theme = theme;
-    }
-
-    /**
-     * <p>
-     * The theme of the schedule component. This is the name of the
-     * CSS file that should be loaded when rendering the schedule.
-     * Possible values are 'default', 'outlookxp', 'evolution'.
-     * </p>
-     * 
-     * @return Returns the theme.
-     */
-    public String getTheme()
-    {
-        return theme;
-    }
-
-    /**
-     * <p>
-     * Should tooltips be displayed?
-     * </p>
-     *
-     * @param tooltip The tooltip to set.
-     */
-    public void setTooltip(String tooltip)
-    {
-        this.tooltip = tooltip;
-    }
-
-    /**
-     * <p>
-     * Should tooltips be displayed?
-     * </p>
-     *
-     * @return Returns the tooltip.
-     */
-    public String getTooltip()
-    {
-        return tooltip;
-    }
-
-    /**
-     * <p>
-     * The value of the JSF component
-     * </p>
-     *
-     * @param value The value to set.
-     */
-    public void setValue(String value)
-    {
-        this.value = value;
-    }
-
-    /**
-     * <p>
-     * The value of the JSF component
-     * </p>
-     *
-     * @return Returns the value.
-     */
-    public String getValue()
-    {
-        return value;
-    }
-
-    /**
-     * <p>
-     * The visible end hour of the schedule
-     * </p>
-     *
-     * @param visibleEndHour The visibleEndHour to set.
-     */
-    public void setVisibleEndHour(String visibleEndHour)
-    {
-        this.visibleEndHour = visibleEndHour;
-    }
-
-    /**
-     * <p>
-     * The visible end hour of the schedule
-     * </p>
-     *
-     * @return Returns the visibleEndHour.
-     */
-    public String getVisibleEndHour()
-    {
-        return visibleEndHour;
-    }
-
-    /**
-     * <p>
-     * The visible start hour of the schedule
-     * </p>
-     *
-     * @param visibleStartHour The visibleStartHour to set.
-     */
-    public void setVisibleStartHour(String visibleStartHour)
-    {
-        this.visibleStartHour = visibleStartHour;
-    }
-
-    /**
-     * <p>
-     * The visible start hour of the schedule
-     * </p>
-     *
-     * @return Returns the visibleStartHour.
-     */
-    public String getVisibleStartHour()
-    {
-        return visibleStartHour;
-    }
-
-    /**
-     * <p>
-     * The working end hour of the schedule
-     * </p>
-     *
-     * @param workingEndHour The workingEndHour to set.
-     */
-    public void setWorkingEndHour(String workingEndHour)
-    {
-        this.workingEndHour = workingEndHour;
-    }
-
-    /**
-     * <p>
-     * The working end hour of the schedule
-     * </p>
-     *
-     * @return Returns the workingEndHour.
-     */
-    public String getWorkingEndHour()
-    {
-        return workingEndHour;
-    }
-
-    /**
-     * <p>
-     * The working start hour of the schedule
-     * </p>
-     *
-     * @param workingStartHour The workingStartHour to set.
-     */
-    public void setWorkingStartHour(String workingStartHour)
-    {
-        this.workingStartHour = workingStartHour;
-    }
-
-    /**
-     * <p>
-     * The working start hour of the schedule
-     * </p>
-     *
-     * @return Returns the workingStartHour.
-     */
-    public String getWorkingStartHour()
-    {
-        return workingStartHour;
-    }
-
-    /**
-     * @see javax.servlet.jsp.tagext.Tag#release()
-     */
-    public void release()
-    {
-        super.release();
-        visibleStartHour = null;
-        visibleEndHour = null;
-        workingStartHour = null;
-        workingEndHour = null;
-        headerDateFormat = null;
-        value = null;
-        immediate = null;
-        actionListener = null;
-        action = null;
-        readonly = null;
-        theme = null;
-        tooltip = null;
-        rendered = null;
-    }
-
-    /**
-     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
-     */
-    protected void setProperties(UIComponent component)
-    {
-        super.setProperties(component);
-
-        HtmlSchedule schedule = (HtmlSchedule) component;
-        FacesContext context = FacesContext.getCurrentInstance();
-        Application app = context.getApplication();
-
-        if (rendered != null)
-        {
-            if (isValueReference(rendered))
-            {
-                schedule.setValueBinding("rendered", app
-                        .createValueBinding(rendered));
-            }
-            else
-            {
-                schedule.setRendered(Boolean.valueOf(rendered).booleanValue());
-            }
-        }
-
-        if (visibleStartHour != null)
-        {
-            if (isValueReference(visibleStartHour))
-            {
-                schedule.setValueBinding("visibleStartHour", app
-                        .createValueBinding(visibleStartHour));
-            }
-            else
-            {
-                schedule.setVisibleStartHour(new Integer(visibleStartHour)
-                        .intValue());
-            }
-        }
-
-        if (visibleEndHour != null)
-        {
-            if (isValueReference(visibleEndHour))
-            {
-                schedule.setValueBinding("visibleEndHour", app
-                        .createValueBinding(visibleEndHour));
-            }
-            else
-            {
-                schedule.setVisibleEndHour(new Integer(visibleEndHour)
-                        .intValue());
-            }
-        }
-
-        if (workingStartHour != null)
-        {
-            if (isValueReference(workingStartHour))
-            {
-                schedule.setValueBinding("workingStartHour", app
-                        .createValueBinding(workingStartHour));
-            }
-            else
-            {
-                schedule.setWorkingStartHour(new Integer(workingStartHour)
-                        .intValue());
-            }
-        }
-
-        if (workingEndHour != null)
-        {
-            if (isValueReference(workingEndHour))
-            {
-                schedule.setValueBinding("workingEndHour", app
-                        .createValueBinding(workingEndHour));
-            }
-            else
-            {
-                schedule.setWorkingEndHour(new Integer(workingEndHour)
-                        .intValue());
-            }
-        }
-
-        if (immediate != null)
-        {
-            if (isValueReference(immediate))
-            {
-                schedule.setValueBinding("immediate", app
-                        .createValueBinding(immediate));
-            }
-            else
-            {
-                schedule
-                        .setImmediate(Boolean.valueOf(immediate).booleanValue());
-            }
-        }
-
-        if (readonly != null)
-        {
-            if (isValueReference(readonly))
-            {
-                schedule.setValueBinding("readonly", app
-                        .createValueBinding(readonly));
-            }
-            else
-            {
-                schedule.setReadonly(Boolean.valueOf(readonly).booleanValue());
-            }
-        }
-
-        if (actionListener != null)
-        {
-            if (isValueReference(actionListener))
-            {
-                MethodBinding actionListenerBinding = app.createMethodBinding(
-                        actionListener, new Class[] { ActionEvent.class });
-                schedule.setActionListener(actionListenerBinding);
-            }
-            else
-            {
-                throw new IllegalArgumentException(
-                        "actionListener property must be a method-binding expression.");
-            }
-        }
-
-        if (action != null)
-        {
-            if (isValueReference(action))
-            {
-                MethodBinding actionBinding = app.createMethodBinding(action,
-                        new Class[] { ActionEvent.class });
-                schedule.setAction(actionBinding);
-            }
-            else
-            {
-                throw new IllegalArgumentException(
-                        "action property must be a method-binding expression.");
-            }
-        }
-
-        if ((value != null) && isValueReference(value))
-        {
-            schedule.setValueBinding("value", app.createValueBinding(value));
-        }
-        else
-        {
-            throw new IllegalArgumentException(
-                    "The value property must be a value binding expression that points to a SimpleScheduleModel object.");
-        }
-
-        addAttribute(app, schedule, "headerDateFormat", headerDateFormat);
-        addAttribute(app, schedule, "theme", theme);
-        addAttribute(app, schedule, "tooltip", tooltip);
-        addAttribute(app, schedule, "compactWeekRowHeight",
-                compactWeekRowHeight);
-        addAttribute(app, schedule, "compactMonthRowHeight",
-                compactMonthRowHeight);
-    }
-
-    private void addAttribute(Application app, UIComponent component,
-            String key, String value)
-    {
-        if ((key != null) && (value != null))
-        {
-            if (isValueReference(value))
-            {
-                component.setValueBinding(key, app
-                        .createValueBinding((String) value));
-            }
-            else
-            {
-                component.getAttributes().put(key, value);
-            }
-        }
-    }
-}
-//The End
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.myfaces.custom.schedule;
+
+import javax.faces.application.Application;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.MethodBinding;
+import javax.faces.event.ActionEvent;
+import javax.faces.webapp.UIComponentTag;
+
+/**
+ * <p>
+ * JSP tag for the schedule component
+ * </p>
+ *
+ * @author Jurgen Lust (latest modification by $Author$)
+ * @version $Revision$
+ */
+public class ScheduleTag extends UIComponentTag
+{
+    //~ Instance fields --------------------------------------------------------
+
+    private String action;
+    private String actionListener;
+    private String compactMonthRowHeight;
+    private String compactWeekRowHeight;
+    private String headerDateFormat;
+    private String immediate;
+    private String readonly;
+    private String rendered;
+    private String theme;
+    private String tooltip;
+    private String value;
+    private String visibleEndHour;
+    private String visibleStartHour;
+    private String workingEndHour;
+    private String workingStartHour;
+
+    //~ Methods ----------------------------------------------------------------
+
+    /**
+     * <p>
+     * The action of the JSF component
+     * </p>
+     *
+     * @param action The action to set.
+     */
+    public void setAction(String action)
+    {
+        this.action = action;
+    }
+
+    /**
+     * <p>
+     * The action of the JSF component
+     * </p>
+     *
+     * @return Returns the action.
+     */
+    public String getAction()
+    {
+        return action;
+    }
+
+    /**
+     * <p>
+     * The actionlistener of the JSF component
+     * </p>
+     *
+     * @param actionListener The actionListener to set.
+     */
+    public void setActionListener(String actionListener)
+    {
+        this.actionListener = actionListener;
+    }
+
+    /**
+     * <p>
+     * The actionlistener of the JSF component
+     * </p>
+     *
+     * @return Returns the actionListener.
+     */
+    public String getActionListener()
+    {
+        return actionListener;
+    }
+
+    /**
+     * <p>
+     * The height in pixels of a cell in the compact month view
+     * </p>
+     *
+     * @param compactMonthRowHeight The compactMonthRowHeight to set.
+     */
+    public void setCompactMonthRowHeight(String compactMonthRowHeight)
+    {
+        this.compactMonthRowHeight = compactMonthRowHeight;
+    }
+
+    /**
+     * <p>
+     * The height in pixels of a cell in the compact month view
+     * </p>
+     *
+     * @return Returns the compactMonthRowHeight.
+     */
+    public String getCompactMonthRowHeight()
+    {
+        return compactMonthRowHeight;
+    }
+
+    /**
+     * <p>
+     * The height in pixels of a cell in the compact week view
+     * </p>
+     *
+     * @param compactWeekRowHeight The compactWeekRowHeight to set.
+     */
+    public void setCompactWeekRowHeight(String compactWeekRowHeight)
+    {
+        this.compactWeekRowHeight = compactWeekRowHeight;
+    }
+
+    /**
+     * <p>
+     * The height in pixels of a cell in the compact week view
+     * </p>
+     *
+     * @return Returns the compactWeekRowHeight.
+     */
+    public String getCompactWeekRowHeight()
+    {
+        return compactWeekRowHeight;
+    }
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#getComponentType()
+     */
+    public String getComponentType()
+    {
+        return HtmlSchedule.COMPONENT_TYPE;
+    }
+
+    /**
+     * <p>
+     * The dateformat used in the header
+     * </p>
+     *
+     * @param headerDateFormat The headerDateFormat to set.
+     */
+    public void setHeaderDateFormat(String headerDateFormat)
+    {
+        this.headerDateFormat = headerDateFormat;
+    }
+
+    /**
+     * <p>
+     * The dateformat used in the header
+     * </p>
+     *
+     * @return Returns the headerDateFormat.
+     */
+    public String getHeaderDateFormat()
+    {
+        return headerDateFormat;
+    }
+
+    /**
+     * <p>
+     * The immediate property of the JSF component
+     * </p>
+     *
+     * @param immediate The immediate to set.
+     */
+    public void setImmediate(String immediate)
+    {
+        this.immediate = immediate;
+    }
+
+    /**
+     * <p>
+     * The immediate property of the JSF component
+     * </p>
+     *
+     * @return Returns the immediate.
+     */
+    public String getImmediate()
+    {
+        return immediate;
+    }
+
+    /**
+     * <p>
+     * The readonly property of the JSF component
+     * </p>
+     *
+     * @param readonly The readonly to set.
+     */
+    public void setReadonly(String readonly)
+    {
+        this.readonly = readonly;
+    }
+
+    /**
+     * <p>
+     * The readonly property of the JSF component
+     * </p>
+     *
+     * @return Returns the readonly.
+     */
+    public String getReadonly()
+    {
+        return readonly;
+    }
+
+    /**
+     * <p>
+     * Should this component be rendered?
+     * </p>
+     *
+     * @param rendered The rendered to set.
+     */
+    public void setRendered(String rendered)
+    {
+        this.rendered = rendered;
+    }
+
+    /**
+     * <p>
+     * Should this component be rendered?
+     * </p>
+     *
+     * @return Returns the rendered.
+     */
+    public String getRendered()
+    {
+        return rendered;
+    }
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#getRendererType()
+     */
+    public String getRendererType()
+    {
+        return UISchedule.DEFAULT_RENDERER_TYPE;
+    }
+
+    /**
+     * <p>
+     * The theme of the schedule component. This is the name of the
+     * CSS file that should be loaded when rendering the schedule.
+     * Possible values are 'default', 'outlookxp', 'evolution'.
+     * </p>
+     * 
+     * @param theme The theme to set.
+     */
+    public void setTheme(String theme)
+    {
+        this.theme = theme;
+    }
+
+    /**
+     * <p>
+     * The theme of the schedule component. This is the name of the
+     * CSS file that should be loaded when rendering the schedule.
+     * Possible values are 'default', 'outlookxp', 'evolution'.
+     * </p>
+     * 
+     * @return Returns the theme.
+     */
+    public String getTheme()
+    {
+        return theme;
+    }
+
+    /**
+     * <p>
+     * Should tooltips be displayed?
+     * </p>
+     *
+     * @param tooltip The tooltip to set.
+     */
+    public void setTooltip(String tooltip)
+    {
+        this.tooltip = tooltip;
+    }
+
+    /**
+     * <p>
+     * Should tooltips be displayed?
+     * </p>
+     *
+     * @return Returns the tooltip.
+     */
+    public String getTooltip()
+    {
+        return tooltip;
+    }
+
+    /**
+     * <p>
+     * The value of the JSF component
+     * </p>
+     *
+     * @param value The value to set.
+     */
+    public void setValue(String value)
+    {
+        this.value = value;
+    }
+
+    /**
+     * <p>
+     * The value of the JSF component
+     * </p>
+     *
+     * @return Returns the value.
+     */
+    public String getValue()
+    {
+        return value;
+    }
+
+    /**
+     * <p>
+     * The visible end hour of the schedule
+     * </p>
+     *
+     * @param visibleEndHour The visibleEndHour to set.
+     */
+    public void setVisibleEndHour(String visibleEndHour)
+    {
+        this.visibleEndHour = visibleEndHour;
+    }
+
+    /**
+     * <p>
+     * The visible end hour of the schedule
+     * </p>
+     *
+     * @return Returns the visibleEndHour.
+     */
+    public String getVisibleEndHour()
+    {
+        return visibleEndHour;
+    }
+
+    /**
+     * <p>
+     * The visible start hour of the schedule
+     * </p>
+     *
+     * @param visibleStartHour The visibleStartHour to set.
+     */
+    public void setVisibleStartHour(String visibleStartHour)
+    {
+        this.visibleStartHour = visibleStartHour;
+    }
+
+    /**
+     * <p>
+     * The visible start hour of the schedule
+     * </p>
+     *
+     * @return Returns the visibleStartHour.
+     */
+    public String getVisibleStartHour()
+    {
+        return visibleStartHour;
+    }
+
+    /**
+     * <p>
+     * The working end hour of the schedule
+     * </p>
+     *
+     * @param workingEndHour The workingEndHour to set.
+     */
+    public void setWorkingEndHour(String workingEndHour)
+    {
+        this.workingEndHour = workingEndHour;
+    }
+
+    /**
+     * <p>
+     * The working end hour of the schedule
+     * </p>
+     *
+     * @return Returns the workingEndHour.
+     */
+    public String getWorkingEndHour()
+    {
+        return workingEndHour;
+    }
+
+    /**
+     * <p>
+     * The working start hour of the schedule
+     * </p>
+     *
+     * @param workingStartHour The workingStartHour to set.
+     */
+    public void setWorkingStartHour(String workingStartHour)
+    {
+        this.workingStartHour = workingStartHour;
+    }
+
+    /**
+     * <p>
+     * The working start hour of the schedule
+     * </p>
+     *
+     * @return Returns the workingStartHour.
+     */
+    public String getWorkingStartHour()
+    {
+        return workingStartHour;
+    }
+
+    /**
+     * @see javax.servlet.jsp.tagext.Tag#release()
+     */
+    public void release()
+    {
+        super.release();
+        visibleStartHour = null;
+        visibleEndHour = null;
+        workingStartHour = null;
+        workingEndHour = null;
+        headerDateFormat = null;
+        value = null;
+        immediate = null;
+        actionListener = null;
+        action = null;
+        readonly = null;
+        theme = null;
+        tooltip = null;
+        rendered = null;
+    }
+
+    /**
+     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
+     */
+    protected void setProperties(UIComponent component)
+    {
+        super.setProperties(component);
+
+        HtmlSchedule schedule = (HtmlSchedule) component;
+        FacesContext context = FacesContext.getCurrentInstance();
+        Application app = context.getApplication();
+
+        if (rendered != null)
+        {
+            if (isValueReference(rendered))
+            {
+                schedule.setValueBinding("rendered", app
+                        .createValueBinding(rendered));
+            }
+            else
+            {
+                schedule.setRendered(Boolean.valueOf(rendered).booleanValue());
+            }
+        }
+
+        if (visibleStartHour != null)
+        {
+            if (isValueReference(visibleStartHour))
+            {
+                schedule.setValueBinding("visibleStartHour", app
+                        .createValueBinding(visibleStartHour));
+            }
+            else
+            {
+                schedule.setVisibleStartHour(new Integer(visibleStartHour)
+                        .intValue());
+            }
+        }
+
+        if (visibleEndHour != null)
+        {
+            if (isValueReference(visibleEndHour))
+            {
+                schedule.setValueBinding("visibleEndHour", app
+                        .createValueBinding(visibleEndHour));
+            }
+            else
+            {
+                schedule.setVisibleEndHour(new Integer(visibleEndHour)
+                        .intValue());
+            }
+        }
+
+        if (workingStartHour != null)
+        {
+            if (isValueReference(workingStartHour))
+            {
+                schedule.setValueBinding("workingStartHour", app
+                        .createValueBinding(workingStartHour));
+            }
+            else
+            {
+                schedule.setWorkingStartHour(new Integer(workingStartHour)
+                        .intValue());
+            }
+        }
+
+        if (workingEndHour != null)
+        {
+            if (isValueReference(workingEndHour))
+            {
+                schedule.setValueBinding("workingEndHour", app
+                        .createValueBinding(workingEndHour));
+            }
+            else
+            {
+                schedule.setWorkingEndHour(new Integer(workingEndHour)
+                        .intValue());
+            }
+        }
+
+        if (immediate != null)
+        {
+            if (isValueReference(immediate))
+            {
+                schedule.setValueBinding("immediate", app
+                        .createValueBinding(immediate));
+            }
+            else
+            {
+                schedule
+                        .setImmediate(Boolean.valueOf(immediate).booleanValue());
+            }
+        }
+
+        if (readonly != null)
+        {
+            if (isValueReference(readonly))
+            {
+                schedule.setValueBinding("readonly", app
+                        .createValueBinding(readonly));
+            }
+            else
+            {
+                schedule.setReadonly(Boolean.valueOf(readonly).booleanValue());
+            }
+        }
+
+        if (actionListener != null)
+        {
+            if (isValueReference(actionListener))
+            {
+                MethodBinding actionListenerBinding = app.createMethodBinding(
+                        actionListener, new Class[] { ActionEvent.class });
+                schedule.setActionListener(actionListenerBinding);
+            }
+            else
+            {
+                throw new IllegalArgumentException(
+                        "actionListener property must be a method-binding expression.");
+            }
+        }
+
+        if (action != null)
+        {
+            if (isValueReference(action))
+            {
+                MethodBinding actionBinding = app.createMethodBinding(action,
+                        new Class[] { ActionEvent.class });
+                schedule.setAction(actionBinding);
+            }
+            else
+            {
+                throw new IllegalArgumentException(
+                        "action property must be a method-binding expression.");
+            }
+        }
+
+        if ((value != null) && isValueReference(value))
+        {
+            schedule.setValueBinding("value", app.createValueBinding(value));
+        }
+        else
+        {
+            throw new IllegalArgumentException(
+                    "The value property must be a value binding expression that points to a SimpleScheduleModel object.");
+        }
+
+        addAttribute(app, schedule, "headerDateFormat", headerDateFormat);
+        addAttribute(app, schedule, "theme", theme);
+        addAttribute(app, schedule, "tooltip", tooltip);
+        addAttribute(app, schedule, "compactWeekRowHeight",
+                compactWeekRowHeight);
+        addAttribute(app, schedule, "compactMonthRowHeight",
+                compactMonthRowHeight);
+    }
+
+    private void addAttribute(Application app, UIComponent component,
+            String key, String value)
+    {
+        if ((key != null) && (value != null))
+        {
+            if (isValueReference(value))
+            {
+                component.setValueBinding(key, app
+                        .createValueBinding((String) value));
+            }
+            else
+            {
+                component.getAttributes().put(key, value);
+            }
+        }
+    }
+}
+//The End

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/ScheduleTag.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL