Author: ilya_shaikovsky
Date: 2008-08-11 10:46:53 -0400 (Mon, 11 Aug 2008)
New Revision: 10024
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml
Log:
organizer bugs fixes.
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2008-08-11
13:55:55 UTC (rev 10023)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/organiser.xhtml 2008-08-11
14:46:53 UTC (rev 10024)
@@ -4,16 +4,26 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .header{
+ font-weight:bold;
+ }
+ .rich-calendar-header{
+ text-align:center;
+ }
+ </style>
<h:form id="form">
<rich:messages/>
<rich:calendar value="#{calendarBean.selectedDate}"
popup="false" showApplyButton="false"
- cellWidth="120px" cellHeight="120px"
+ cellWidth="100px" cellHeight="100px"
boundaryDatesMode="none" showWeeksBar="false"
dataModel="#{calendarDataModel}" oncurrentdateselect="return
false" id="organizer"
valueChangeListener="#{calendarDataModel.valueChanged}"
showFooter="false">
<f:facet name="header">
- <h:outputText value="{currentMonthControl}"/>
+ <h:panelGroup>
+ <h:outputText value="Current Month" styleClass="header"/>
+ </h:panelGroup>
</f:facet>
<a4j:outputPanel layout="block" id="cell">
<h:panelGrid columns="1">
@@ -21,9 +31,6 @@
<h:outputText value="{data.shortDescription}"/>
<h:outputText value="{data.description}"/>
</h:panelGrid>
- <rich:contextMenu attached="true" disableDefaultMenu="true"
submitMode="ajax" event="oncontextmenu" id="menu">
- <rich:menuItem value="Disable({day})"/>
- </rich:contextMenu>
</a4j:outputPanel>
<a4j:support event="onchanged"
oncomplete="#{rich:component('panel')}.show()"
reRender="editContent"/>
</rich:calendar>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml 2008-08-11
13:55:55 UTC (rev 10023)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/organizer.xhtml 2008-08-11
14:46:53 UTC (rev 10024)
@@ -8,20 +8,28 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
<p>
- Description
+ This simple example shows the way of calendarDataModel usage for organizer creation.
</p>
<fieldset class="demo_fieldset">
<legend class="demo_legend">Calendar Demo</legend>
<div class="sample-container" >
<ui:include src="/richfaces/calendar/examples/organiser.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="openlabel" value="Page source" />
<ui:param name="sourcepath"
value="/richfaces/calendar/examples/organiser.xhtml"/>
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="openlabel" value="CalendarDataModelImpl.java"
/>
+ <ui:param name="sourcetype" value="java" />
+ <ui:param name="sourcepath"
value="/richfaces/calendar/snippets/CalendarDataModelImpl.java"/>
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="openlabel"
value="CalendarDataModelItemImpl.java" />
+ <ui:param name="sourcetype" value="java" />
+ <ui:param name="sourcepath"
value="/richfaces/calendar/snippets/CalendarDataModelItemImpl.java"/>
+ </ui:include>
</div>
</fieldset>
- <p>
- More description
- </p>
</ui:define>
</ui:composition>