[jboss-user] [JBoss Seam] - Binding the Scheduler
fduo
do-not-reply at jboss.com
Thu Apr 5 03:28:19 EDT 2007
I've also tried to use the Scheduler with the Binding method. Now I receveid a very strange exception message:
java.lang.ClassCastException: org.apache.myfaces.custom.schedule.HtmlSchedule cannot be cast to org.apache.myfaces.custom.schedule.HtmlSchedule
<ui:define name="body">
|
| <h1>Login</h1>
| <p>Please login using any username and password</p>
|
| <h:messages styleClass="message"/>
| <f:view>
| <h:form>
| <!-- The schedule itself -->
| <t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
| <t:schedule value="#{bindingScheduleHandler.model}" id="schedule1"
| binding="#{bindingScheduleHandler.schedule}"
| rendered="true" visibleEndHour="#{scheduleSettings.visibleEndHour}"
| visibleStartHour="#{scheduleSettings.visibleStartHour}"
| workingEndHour="#{scheduleSettings.workingEndHour}"
| workingStartHour="#{scheduleSettings.workingStartHour}"
| readonly="#{scheduleSettings.readonly}"
| theme="#{scheduleSettings.theme}"
| tooltip="#{scheduleSettings.tooltip}"
| headerDateFormat="#{scheduleSettings.headerDateFormat}"
| compactWeekRowHeight="#{scheduleSettings.compactWeekRowHeight}"
| compactMonthRowHeight="#{scheduleSettings.compactMonthRowHeight}"
| detailedRowHeight="#{scheduleSettings.detailedRowHeight}"
| mouseListener="#{bindingScheduleHandler.scheduleClicked}"
| action="#{bindingScheduleHandler.scheduleAction}"
| />
| <h:outputText value="#{bindingScheduleHandler.mouseActionText}"></h:outputText>
| </t:div>
| <!-- The column on the left, containing the calendar and other controls -->
| <t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
| <h:panelGrid columns="1">
| <t:inputCalendar id="scheduleNavigator"
| value="#{bindingScheduleHandler.model.selectedDate}" />
| <h:commandButton
| actionListener="#{bindingScheduleHandler.addSampleEntries}"
| value="add sample entries" />
| <h:commandButton
| actionListener="#{bindingScheduleHandler.addSampleHoliday}"
| value="add sample holiday" />
| </h:panelGrid>
| </t:div>
| </h:form>
| </f:view>
| </ui:define>
| </ui:composition>
Very strang this hole thing. I will try it on the Tomahawk list. I guess it's a Tomahawk problem?
regards
Fabio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034889#4034889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034889
More information about the jboss-user
mailing list