myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject svn commit: r548529 - in /myfaces/tomahawk/trunk/examples/simple/src/main: java/org/apache/myfaces/examples/schedule/ webapp/
Date Mon, 18 Jun 2007 23:16:55 GMT
Author: jlust
Date: Mon Jun 18 16:16:55 2007
New Revision: 548529

URL: http://svn.apache.org/viewvc?view=rev&rev=548529
Log:
refactoring of the schedule component to make it more maintainable and to improve compatibility
with Facelets.

Modified:
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/schedule_editsettings.jsp

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java?view=diff&rev=548529&r1=548528&r2=548529
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java
(original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java
Mon Jun 18 16:16:55 2007
@@ -73,6 +73,7 @@
 
     public void scheduleClicked(ScheduleMouseEvent event)
     {
+        log.info("scheduleClicked!!!" + event.getEventType());
         StringBuffer buffer = new StringBuffer();
         switch (event.getEventType())
         {

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java?view=diff&rev=548529&r1=548528&r2=548529
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java
(original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java
Mon Jun 18 16:16:55 2007
@@ -24,9 +24,9 @@
 
 import javax.faces.context.FacesContext;
 
+import org.apache.myfaces.custom.schedule.DefaultScheduleEntryRenderer;
 import org.apache.myfaces.custom.schedule.HtmlSchedule;
 import org.apache.myfaces.custom.schedule.model.ScheduleEntry;
-import org.apache.myfaces.custom.schedule.renderer.DefaultScheduleEntryRenderer;
 
 /**
  * An example ScheduleEntryRenderer that assigns a random color to each

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java?view=diff&rev=548529&r1=548528&r2=548529
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java
(original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java
Mon Jun 18 16:16:55 2007
@@ -218,4 +218,12 @@
     {
         this.expandToFitEntries = expandToFitEntries;
     }
+    
+    public String getMode() {
+        return String.valueOf(getModel().getMode());
+    }
+    
+    public void setMode(String mode) {
+        getModel().setMode(Integer.valueOf(mode).intValue());
+    }
 }

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/schedule_editsettings.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/schedule_editsettings.jsp?view=diff&rev=548529&r1=548528&r2=548529
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/schedule_editsettings.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/schedule_editsettings.jsp Mon Jun
18 16:16:55 2007
@@ -32,7 +32,7 @@
 		<h:messages tooltip="true" layout="table" globalOnly="false" />
 		<h:panelGrid columns="3">
 			<h:outputLabel for="mode" value="Display mode:" />
-			<h:selectOneRadio id="mode" value="#{scheduleSettings2.model.mode}">
+			<h:selectOneRadio id="mode" value="#{scheduleSettings2.mode}">
 				<f:selectItem itemValue="0" itemLabel="day"/>
 				<f:selectItem itemValue="1" itemLabel="workweek"/>
 				<f:selectItem itemValue="2" itemLabel="week" />



Mime
View raw message