JBoss Rich Faces SVN: r3254 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-10-04 07:09:50 -0400 (Thu, 04 Oct 2007)
New Revision: 3254
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-1049 - improved description
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-10-04 10:56:28 UTC (rev 3253)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-10-04 11:09:50 UTC (rev 3254)
@@ -268,19 +268,14 @@
<section id="FilterConfiguration">
<?dbhtml filename="FilterConfiguration.html"?>
<title>Filter Configuration</title>
- <para>RichFaces uses filters for a correction of code received on an Ajax request. In case of a
+ <para>RichFaces uses a filter for a correction of code received on an Ajax request. In case of a
"regular" JSF request a browser makes correction independently. In case of
- Ajax request in order to prevent layout destruction it's needed to use filters,
+ Ajax request in order to prevent layout destruction it's needed to use a filter,
because a received code could differ from a code validated by a browser and a browser doesn't
make any corrections.</para>
- <para>In RichFaces 3.1 filter configuration becomes more flexible. There is no need to select
- between two different filters (Filter or Fast Filter) for the whole application as it was
- earlier. Now it's possible to configure different filters for different sets of pages
- for the same application. The previous variants of configuration for the Filter and Fast
- Filter are also available for backward compatibility (examples are placed below). </para>
+ <para>An example of how to set a Filter in a web.xml file of your application is placed below.</para>
- <para>The first one:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -294,21 +289,15 @@
...
]]></programlisting>
- <para>The second one:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+ <note>
+ <title>Note:</title>Fast Filter is deprecated and available only for backward compatibility
+ with previous RichFaces versions. Fast Filter usage isn't recomended, because there
+ is another way to use its functionality by means of <link linkend="Neko">Neko filter type</link>.</note>
- <programlisting role="XML"><![CDATA[...
- <filter>
- <display-name>RichFaces FastFilter</display-name>
- <filter-name>richfaces</filter-name>
- <filter-class>org.ajax4jsf.FastFilter</filter-class>
- </filter>
-...
-]]></programlisting>
+ <para>In RichFaces 3.1 filter configuration becomes more flexible. It's possible to
+ configure different filters for different sets of pages for the same application.</para>
- <para>In RichFaces 3.1 the possible filter types are:</para>
+ <para>The possible filter types are:</para>
<itemizedlist>
<listitem>
@@ -316,22 +305,21 @@
</listitem>
</itemizedlist>
- <para>Tidy filter corresponds to the former "Filter" and it's based on the
- Tidy parser. This filter is recommended for applications with complicated or non-standard
- markup when all necessary code corrections are made by the filter when a response comes from
- the server.</para>
+ <para>"TIDY" filter type based on the Tidy parser. This filter is recommended for applications with
+ complicated or non-standard markup when all necessary code corrections are made by the filter
+ when a response comes from the server.</para>
<itemizedlist>
<listitem>
- <para>NEKO</para>
+ <para id="Neko">NEKO</para>
</listitem>
</itemizedlist>
- <para>Neko filter corresponds to the former "Fast Filter" and it's based on
- the Neko parser. In case of using this filter code isn't strictly verified. Use this
- one if you are sure that your application markup is really strict for this filter. Otherwise
- it could cause lot's of errors and corrupt a layout as a result. This filter
- considerably accelerates all Ajax requests processing.</para>
+ <para>"NEKO" filter type corresponds to the former "Fast Filter" and it's
+ based on the Neko parser. In case of using this filter code isn't strictly verified.
+ Use this one if you are sure that your application markup is really strict for this filter.
+ Otherwise it could cause lot's of errors and corrupt a layout as a result. This
+ filter considerably accelerates all Ajax requests processing.</para>
<itemizedlist>
<listitem>
@@ -380,29 +368,25 @@
<para>The example shows that ORDER parameter defines the order in which particular filter types
are used for pages code correction. </para>
- <para> First of all "NONE" value is specified for the filter. Then 2 different
+ <para> First of all "NONE" type is specified for the filter. Then two different
sets of pages are defined for which two filter types (NONE and NEKO) are used correspondingly.
If a page relates to the first set that is defined in the following way: </para>
<programlisting role="XML"><![CDATA[<param-value>/pages/performance\.xhtml,/pages/default.*\.xhtml</param-value>,
]]></programlisting>
- <para> it's not corrected, because filter value for this page is defined as
+ <para> it's not corrected, because filter type for this page is defined as
"NONE". If a page is not from the first set, then "NEKO"
- value is set.</para>
+ type is set.</para>
<para>If a page relates to the second set that is defined in the following way:</para>
<programlisting role="XML"><![CDATA[<param-value>/pages/repeat\.xhtml</param-value>,
]]></programlisting>
- <para>then Neko filter is used for correction. If it's not related to the second set,
- "TIDY" value is set for the filter (Tidy filter is used for code
+ <para>then "NEKO" filter type is used for correction. If it's not related to the second set,
+ "TIDY" type is set for the filter ("TIDY" filter type is used for code
correction). </para>
- <note>
- <title>Note:</title> It's possible to configure different types (NONE, NEKO and TIDY)
- only for Filter. Fast Filter doesn't support this functionality. It's
- available for backward compatibility with previous RichFaces versions. </note>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-04 10:56:28 UTC (rev 3253)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-04 11:09:50 UTC (rev 3254)
@@ -691,7 +691,7 @@
<para>To avoid exception, don't forget that the component stores beans in
serialized view, but your bean should implement java.io.Serializable.</para>
</section>
- <section id="FilterUsageDamagesAnApplicationLayout">
+ <!--section id="FilterUsageDamagesAnApplicationLayout">
<?dbhtml filename="FilterUsageDamagesAnApplicationLayout.html"?>
<title>Why does filter usage damage an application layout?</title>
<para>RichFaces uses <property>filters</property> for correction of xhtml code
@@ -752,7 +752,7 @@
<property>forceparser parameter</property> default value is false
from this version. </important>
</para>
- </section>
+ </section-->
<section id="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest">
<?dbhtml filename="AFormIsNotSubmittedOrASetterIsNotCalledAfterAJAXrequest.html"?>
<title>Why form isn't submitted or setter isn't called after AJAX
17 years, 2 months
JBoss Rich Faces SVN: r3253 - branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-04 06:56:28 -0400 (Thu, 04 Oct 2007)
New Revision: 3253
Modified:
branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelImpl.java
branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelItemImpl.java
Log:
additional for RF-1031
Modified: branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelImpl.java
===================================================================
--- branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelImpl.java 2007-10-04 10:34:00 UTC (rev 3252)
+++ branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelImpl.java 2007-10-04 10:56:28 UTC (rev 3253)
@@ -22,10 +22,12 @@
package org.richfaces;
import java.text.DateFormat;
+import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
+import java.util.Random;
import org.richfaces.model.CalendarDataModel;
import org.richfaces.model.CalendarDataModelItem;
@@ -62,8 +64,20 @@
data.put("enLabel", enFormatter.format(date));
data.put("frLabel", frFormatter.format(date));
data.put("deLabel", deFormatter.format(date));
+ /*Calendar c = Calendar.getInstance();
+ c.setTime(date);
+ item.setDay(c.get(Calendar.DAY_OF_MONTH));*/
+
+ if (new Random().nextInt(10) > 5) {
+ item.setEnabled(true);
+ } else {
+ item.setEnabled(false);
+ }
+
item.setData(data);
-
+
+ System.out.println(item.getData() + " " + item.isEnabled());
+
return item;
}
Modified: branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelItemImpl.java
===================================================================
--- branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelItemImpl.java 2007-10-04 10:34:00 UTC (rev 3252)
+++ branches/3.1.x/samples/calendar-sample/src/main/java/org/richfaces/CalendarDataModelItemImpl.java 2007-10-04 10:56:28 UTC (rev 3253)
@@ -33,8 +33,18 @@
private Object data;
private String styleClass;
private Object toolTip;
+ private int day;
private boolean enabled = true;
+
+ public int getDay() {
+ return day;
+ }
+
+ public void setDay(int day) {
+ this.day = day;
+ }
+
/* (non-Javadoc)
* @see org.richfaces.component.CalendarDataModelItem#getData()
*/
@@ -97,5 +107,5 @@
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
-
+
}
17 years, 2 months
JBoss Rich Faces SVN: r3252 - trunk/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-04 06:34:00 -0400 (Thu, 04 Oct 2007)
New Revision: 3252
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
added some classnames
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2007-10-04 09:52:04 UTC (rev 3251)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2007-10-04 10:34:00 UTC (rev 3252)
@@ -395,6 +395,7 @@
<property hidden="true">
<name>localValueSet</name>
+ <classname>boolean</classname>
<description>localValueSet</description>
</property>
<property hidden="true">
17 years, 2 months
JBoss Rich Faces SVN: r3251 - trunk/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-04 05:52:04 -0400 (Thu, 04 Oct 2007)
New Revision: 3251
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
added classname for valid property
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2007-10-04 08:27:44 UTC (rev 3250)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2007-10-04 09:52:04 UTC (rev 3251)
@@ -41,7 +41,7 @@
org.ajax4jsf.tests.AbstractAjax4JsfTestCase
</superclassname>
</test>
- </tag>
+ </tag>
<!--
<taghandler>
<classname>org.ajax4jsf.tag.TestHandler</classname>
@@ -108,15 +108,18 @@
getDefaultPreloadEnd(getCurrentDateOrDefault())
</defaultvalue>
</property>
- <property >
+ <property>
<name>currentDate</name>
<classname>java.lang.Object</classname>
- <description>Defines current date</description>
+ <description>Defines current date</description>
</property>
<property>
<name>currentDateChangeListener</name>
<classname>javax.faces.el.MethodBinding</classname>
- <description>MethodBinding representing an action listener method that will be notified after date selection</description>
+ <description>
+ MethodBinding representing an action listener method
+ that will be notified after date selection
+ </description>
</property>
<property>
<name>datePattern</name>
@@ -124,7 +127,7 @@
<description>Defines date pattern</description>
<defaultvalue>"MMM d, yyyy"</defaultvalue>
</property>
-
+
<property>
<name>popup</name>
<classname>boolean</classname>
@@ -194,7 +197,7 @@
months. Should accept list with the month names
</description>
</property>
-
+
<property>
<name>toolTipMode</name>
<classname>java.lang.String</classname>
@@ -273,7 +276,7 @@
<description>
Style Class attribute for the popup button
</description>
- </property>
+ </property>
<property>
<name>zindex</name>
<classname>int</classname>
@@ -316,127 +319,97 @@
<property>
<name>ondateselect</name>
<classname>java.lang.String</classname>
- <description>
- onDateSelect event handler
- </description>
+ <description>onDateSelect event handler</description>
</property>
<property>
<name>ondateselected</name>
<classname>java.lang.String</classname>
- <description>
- onDateSelected event handler
- </description>
- </property>
+ <description>onDateSelected event handler</description>
+ </property>
<property>
<name>oncurrentdateselect</name>
<classname>java.lang.String</classname>
- <description>
- onCurrentDateSelect event handler
- </description>
- </property>
+ <description>onCurrentDateSelect event handler</description>
+ </property>
<property>
<name>onexpand</name>
<classname>java.lang.String</classname>
- <description>
- onExpand event handler
- </description>
+ <description>onExpand event handler</description>
</property>
<property>
<name>oncollapse</name>
<classname>java.lang.String</classname>
- <description>
- onCollapse event handler
- </description>
+ <description>onCollapse event handler</description>
</property>
<property>
<name>ondatemouseover</name>
<classname>java.lang.String</classname>
- <description>
- onDateMouseOver event handler
- </description>
- </property>
+ <description>onDateMouseOver event handler</description>
+ </property>
<property>
<name>ondatemouseout</name>
<classname>java.lang.String</classname>
- <description>
- onDateMouseOut event handler
- </description>
- </property>
-
+ <description>onDateMouseOut event handler</description>
+ </property>
+
<property>
<name>oninputchange</name>
<classname>java.lang.String</classname>
- <description>
- input onChange event handler
- </description>
+ <description>input onChange event handler</description>
</property>
<property>
<name>oninputselect</name>
<classname>java.lang.String</classname>
- <description>
- input onSelect event handler
- </description>
+ <description>input onSelect event handler</description>
</property>
<property>
<name>oninputfocus</name>
<classname>java.lang.String</classname>
- <description>
- input onFocus event handler
- </description>
+ <description>input onFocus event handler</description>
</property>
<property>
<name>oninputblur</name>
<classname>java.lang.String</classname>
- <description>
- input onBlur event handler
- </description>
+ <description>input onBlur event handler</description>
</property>
<property>
<name>oninputclick</name>
<classname>java.lang.String</classname>
- <description>
- input onClick event handler
- </description>
- </property>
+ <description>input onClick event handler</description>
+ </property>
<property>
<name>oninputkeypress</name>
<classname>java.lang.String</classname>
- <description>
- input onKeyPress event handler
- </description>
+ <description>input onKeyPress event handler</description>
</property>
<property>
<name>oninputkeydown</name>
<classname>java.lang.String</classname>
- <description>
- input onKeyDown event handler
- </description>
+ <description>input onKeyDown event handler</description>
</property>
<property>
<name>oninputkeyup</name>
<classname>java.lang.String</classname>
- <description>
- input onKeyUp event handler
- </description>
- </property>
-
+ <description>input onKeyUp event handler</description>
+ </property>
+
<property hidden="true">
<name>localValueSet</name>
<description>localValueSet</description>
</property>
<property hidden="true">
<name>valid</name>
+ <classname>boolean</classname>
<description>valid</description>
</property>
- <property hidden="true">
- <name>valid</name>
- <description>valid</description>
- </property>
<property>
<name>ajaxSingle</name>
<classname>boolean</classname>
- <description>if "true", submits ONLY one field/link, instead of all form controls</description>
+ <description>
+ if "true", submits ONLY one field/link, instead of all
+ form controls
+ </description>
<defaultvalue>true</defaultvalue>
</property>
@@ -444,24 +417,33 @@
<name>data</name>
<classname>java.lang.Object</classname>
</property>
-
+
<property>
<name>buttonIcon</name>
<classname>java.lang.String</classname>
- <description>Defines icon for the popup button element. The attribute is ignored if the "buttonLabel" is set</description>
+ <description>
+ Defines icon for the popup button element. The attribute
+ is ignored if the "buttonLabel" is set
+ </description>
</property>
-
+
<property>
<name>buttonLabel</name>
<classname>java.lang.String</classname>
- <description>Defines label for the popup button element. If the attribute is set "buttonIcon" and "buttonIconDisabled" are ignored
+ <description>
+ Defines label for the popup button element. If the
+ attribute is set "buttonIcon" and "buttonIconDisabled"
+ are ignored
</description>
</property>
-
+
<property>
<name>buttonIconDisabled</name>
<classname>java.lang.String</classname>
- <description>Defines disabled icon for the popup button element. The attribute is ignored if the "buttonLabel" is set</description>
+ <description>
+ Defines disabled icon for the popup button element. The
+ attribute is ignored if the "buttonLabel" is set
+ </description>
</property>
<property>
<name>mode</name>
@@ -469,26 +451,28 @@
<defaultvalue>UICalendar.CLIENT_MODE</defaultvalue>
<description>Valid values = ajax or client</description>
</property>
-
+
<property>
- <name>horizontalOffset</name>
- <classname>int</classname>
- <description>
- Sets the horizontal offset between button and calendar element conjunction point
- </description>
- <defaultvalue>0</defaultvalue>
- </property>
+ <name>horizontalOffset</name>
+ <classname>int</classname>
+ <description>
+ Sets the horizontal offset between button and calendar
+ element conjunction point
+ </description>
+ <defaultvalue>0</defaultvalue>
+ </property>
- <property>
- <name>verticalOffset</name>
- <classname>int</classname>
- <description>
- Sets the vertical offset between button and calendar element conjunction point
- </description>
- <defaultvalue>0</defaultvalue>
- </property>
-
+ <property>
+ <name>verticalOffset</name>
+ <classname>int</classname>
+ <description>
+ Sets the vertical offset between button and calendar
+ element conjunction point
+ </description>
+ <defaultvalue>0</defaultvalue>
+ </property>
+
</component>
- &listeners;
+ &listeners;
</components>
17 years, 2 months
JBoss Rich Faces SVN: r3250 - branches/3.1.x/test-applications/qa.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-10-04 04:27:44 -0400 (Thu, 04 Oct 2007)
New Revision: 3250
Added:
branches/3.1.x/test-applications/qa/QA test report Build RF3.1.1 CR2.xls
Log:
Added: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.1 CR2.xls
===================================================================
(Binary files differ)
Property changes on: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.1 CR2.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 2 months
JBoss Rich Faces SVN: r3248 - in trunk/test-applications/facelets/src/main: webapp/DataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-10-04 03:50:21 -0400 (Thu, 04 Oct 2007)
New Revision: 3248
Modified:
trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
Log:
bgcolor fix
Modified: trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-10-04 07:49:42 UTC (rev 3247)
+++ trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-10-04 07:50:21 UTC (rev 3248)
@@ -13,7 +13,6 @@
private List mounths = new ArrayList();
private List numbers = new ArrayList();
private String align;
- private String bgcolor;
private String border;
private String width;
private String columnsWidth;
@@ -22,7 +21,6 @@
public DataTable() {
align = "center";
- bgcolor = "aqua";
border = "1";
width = "400px";
columnsWidth = "200px";
@@ -109,14 +107,6 @@
this.align = align;
}
- public String getBgcolor() {
- return bgcolor;
- }
-
- public void setBgcolor(String bgcolor) {
- this.bgcolor = bgcolor;
- }
-
public String getBorder() {
return border;
}
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-10-04 07:49:42 UTC (rev 3247)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-10-04 07:50:21 UTC (rev 3248)
@@ -8,8 +8,8 @@
<rich:dataTable id="dataTableID" var="dataTableID"
value="#{dataTable.mounths}" rowKeyVar="key" styleClass="table"
captionClass="caption" rowClasses="rowa,rowb,rowc rowcc"
- headerClass="header" footerClass="footer"
- onRowClick="alert('row #{key}')" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="#{dataTable.bgcolor}"
+ headerClass="header" footerClass="footer" cellpadding="" cellspacing=""
+ onRowClick="alert('row #{key}')" rendered="#{dataTable.rendered}" align="#{dataTable.align}" bgcolor="red"
border="#{dataTable.border}" columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}" title="DataTableTite">
<f:facet name="caption">
<h:outputText value="caption" />
@@ -93,23 +93,6 @@
<a4j:support event="onchange" reRender="dataTableID"></a4j:support>
</h:inputText>
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{dataTable.bgcolor}">
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
- </h:selectOneMenu>
-
<h:outputText value="rendered:" />
<h:selectBooleanCheckbox value="#{dataTable.rendered}"
onclick="submit();" />
17 years, 2 months
JBoss Rich Faces SVN: r3246 - branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-04 03:04:23 -0400 (Thu, 04 Oct 2007)
New Revision: 3246
Modified:
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-1031
Modified: branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-10-04 07:01:05 UTC (rev 3245)
+++ branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-10-04 07:04:23 UTC (rev 3246)
@@ -941,13 +941,16 @@
if (this.daysData && this.daysData.index[currentYear+'-'+currentMonth]!=undefined)
{
var idx = this.daysData.index[currentYear+'-'+currentMonth];
- var firstDay = this.daysData.days[idx].day;
- while (dayCounter<firstDay)
+ if (this.daysData.startDate.getFullYear()==currentYear && this.daysData.startDate.getMonth()==currentMonth)
{
- this.days.push({day:dayCounter, isWeekend:this.isWeekend(p%7), _month:month});
+ var firstDay = firstDay=(this.daysData.days[idx].day ? this.daysData.days[idx].day : this.daysData.startDate.getDate());
+ while (dayCounter<firstDay)
+ {
+ this.days.push({day:dayCounter, isWeekend:this.isWeekend(p%7), _month:month});
- dayCounter++;
- p++;
+ dayCounter++;
+ p++;
+ }
}
var len = this.daysData.days.length;
17 years, 2 months
JBoss Rich Faces SVN: r3245 - branches/3.1.x/framework/api/src/main/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-04 03:01:05 -0400 (Thu, 04 Oct 2007)
New Revision: 3245
Modified:
branches/3.1.x/framework/api/src/main/java/org/richfaces/model/CalendarDataModelItem.java
Log:
RF-1031
Modified: branches/3.1.x/framework/api/src/main/java/org/richfaces/model/CalendarDataModelItem.java
===================================================================
--- branches/3.1.x/framework/api/src/main/java/org/richfaces/model/CalendarDataModelItem.java 2007-10-04 00:32:12 UTC (rev 3244)
+++ branches/3.1.x/framework/api/src/main/java/org/richfaces/model/CalendarDataModelItem.java 2007-10-04 07:01:05 UTC (rev 3245)
@@ -55,5 +55,14 @@
/**
*@return tool tip data that will be used in �batch� tooltip loading mode.
**/
- public Object getToolTip();
+ public Object getToolTip();
+
+ /**
+ *@return day of the month on which data must be shown.
+ **/
+ public int getDay();
+
}
+
+
+
17 years, 2 months