Author: amarkhel
Date: 2008-09-09 07:13:23 -0400 (Tue, 09 Sep 2008)
New Revision: 10375
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/modelImpl/CalendarDataModelImpl.java
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
Log:
Fix RF-4154 bug
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/modelImpl/CalendarDataModelImpl.java
===================================================================
---
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/modelImpl/CalendarDataModelImpl.java 2008-09-09
11:04:31 UTC (rev 10374)
+++
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/modelImpl/CalendarDataModelImpl.java 2008-09-09
11:13:23 UTC (rev 10375)
@@ -110,6 +110,12 @@
* @param valueChangeEvent handling
*/
public void valueChanged(ValueChangeEvent event) {
+ try {
+ Thread.currentThread().sleep(500);
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
System.out.println(event.getNewValue()+"selected");
setCurrentDate((Date)event.getNewValue());
Calendar calendar = Calendar.getInstance();
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
===================================================================
---
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2008-09-09
11:04:31 UTC (rev 10374)
+++
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2008-09-09
11:13:23 UTC (rev 10375)
@@ -10,11 +10,12 @@
}
.rich-calendar-header{
text-align:center;
- }
+ }
</style>
<h:form id="form">
<rich:messages/>
+ <a4j:jsFunction name="ajaxSubmit"
oncomplete="#{rich:component('panel')}.show()"
reRender="editContent" />
<rich:calendar value="#{calendarBean.selectedDate}"
popup="false" showApplyButton="false"
cellWidth="100px" cellHeight="100px"
@@ -25,14 +26,14 @@
<h:outputText value="Current Month" styleClass="header"/>
</h:panelGroup>
</f:facet>
- <a4j:outputPanel layout="block" id="cell">
+ <a4j:outputPanel layout="block" id="cell"
onclick="ajaxSubmit()" style="height: 100%;">
<h:panelGrid columns="1">
<h:outputText value="{day}" style="align:center"/>
<h:outputText value="{data.shortDescription}"/>
<h:outputText value="{data.description}"/>
</h:panelGrid>
</a4j:outputPanel>
- <a4j:support event="onchanged"
oncomplete="#{rich:component('panel')}.show()"
reRender="editContent"/>
+ <a4j:support event="onchanged" reRender="editContent" />
</rich:calendar>
</h:form>
<rich:modalPanel id="panel" resizeable="false">
Show replies by date