[JBoss Seam] - Binding the Scheduler
by fduo
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
19 years
[JBoss Portal] - Re: Migrate WebLogic Portal Application to JBoss
by thomas.heute@jboss.com
"swestbom" wrote : Warning JBoss Portal's navigation sucks big time. Don't expect much from the *object.xml, build your own, theirs is a complete Model 1 hack with lots of server side java producing html and other oddities. Really don't understand what they were thinking of.
Thanks for your constructive compliments, i don't even know what you are talking about... I think you got confused about defining objects and MVC mechanism. I don't see how you can relate -object.xml with Model 1... I'm also very glad that you produced all your HTML on the client side. Way to go ! If you are talking about the top banner writen in java, it's not great, but this is the *default* portal implementation.
It's great that you built your own, which is probably far better, too bad that you never contribute all the great stuff that you did.
I'm sure Spring guys will also love to learn about their "idiotic security stuff" that sounds very constructive to me.
At the end, i'm glad you recommend using JBoss Seam without ever tried it. By the way, you can pre-order the book here:
http://www.amazon.com/JBoss-Seam-Simplicity-Power-Beyond/dp/0131347969/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034876#4034876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034876
19 years