Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 95200 invoked from network); 12 Apr 2007 10:33:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Apr 2007 10:33:40 -0000 Received: (qmail 25153 invoked by uid 500); 12 Apr 2007 10:33:40 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 25117 invoked by uid 500); 12 Apr 2007 10:33:40 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 25106 invoked by uid 99); 12 Apr 2007 10:33:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 03:33:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 03:33:33 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Hbwc4-000061-Oo for users@myfaces.apache.org; Thu, 12 Apr 2007 03:33:12 -0700 Message-ID: <9956813.post@talk.nabble.com> Date: Thu, 12 Apr 2007 03:33:12 -0700 (PDT) From: fduo To: users@myfaces.apache.org Subject: Re: Seam and Tomahawk Scheduler In-Reply-To: <87ca32ad0704060140w58b6ed6x1932ea44263e8c7d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fabio.duo@swissonline.ch References: <001301c77757$1e8521d0$5b8f6570$@duo@swissonline.ch> <87ca32ad0704060140w58b6ed6x1932ea44263e8c7d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org It was exactly this. I was not thinking about that, stupid me. Thank you very much. Best regards Fabio Stefan Frank wrote: > > This sounds like a classloader-problem: You should maybe check where > you deploy your tomahawk-jars - maybe you have it in two different > locations (and thereby classloaders)? > > > 2007/4/5, Fabio Duo : >> Hello, >> >> I am trying to use the Tomahawk Scheduler Component together with seam. >> But >> I get some very strange behavior. I've tried the Binding Method and only >> filling the Model. I always used the example Paged and Classes. >> >> With the Binding Method I get a Error Message: >> java.lang.ClassCastException: >> org.apache.myfaces.custom.schedule.HtmlSchedule cannot be cast to org. >> apache.myfaces.custom.schedule.HtmlSchedule >> >> It doesn't makes a lot of sense in my opinion. >> >> If I give the Model to the Component I don't receive a Error, but I only >> see >> a Day view. Shows no entries and it's also impossible to change the view >> or >> update the model. >> >> >> Init: >> ..... >> ..... >> ScheduleModel model = new SimpleScheduleModel(); >> model.setMode(ScheduleModel.MONTH); >> scheduleHandler.setModel(model); >> HtmlSchedule schedule = new HtmlSchedule(); >> bindingScheduleHandler.setSchedule(schedule); >> Contexts.getSessionContext().set("bindingScheduleHandler", >> bindingScheduleHandler); >> Contexts.getSessionContext().set("scheduleHandler", scheduleHandler); >> Contexts.getSessionContext().set("scheduleSettings", scheduleSettings); >> Contexts.getSessionContext().set("model", model); >> ..... >> ..... >> >> >> Binding: >> >> Binding.xhtml: >> ....... >> ....... >> >> >>

Login

>>

Please login using any username and password

>> >> >> >> >> >> >> > 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}" >> /> >> > value="#{bindingScheduleHandler.mouseActionText}"> >> >> >> >> >> > >> value="#{bindingScheduleHandler.model.selectedDate}" /> >> > >> actionListener="#{bindingScheduleHandler.addSampleEntries}" >> value="add sample entries" /> >> > >> actionListener="#{bindingScheduleHandler.addSampleHoliday}" >> value="add sample holiday" /> >> >> >> >> >>
>> >> >> >> Model Value: >> >> > >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> > xmlns:s="http://jboss.com/products/seam/taglib" >> xmlns:ui="http://java.sun.com/jsf/facelets" >> xmlns:f="http://java.sun.com/jsf/core" >> xmlns:h="http://java.sun.com/jsf/html" >> xmlns:t="http://myfaces.apache.org/tomahawk"> >> >> >> >> >> >> >> >> > rendered="true" visibleEndHour="18" >> visibleStartHour="8" >> workingEndHour="17" workingStartHour="9" >> readonly="false" >> theme="evolution" tooltip="true"/> >> >> >> >> >> > value="#{model.selectedDate}" /> >> > >> actionListener="#{scheduleHandler.addSampleEntries}" >> value="add sample entries" /> >> > >> actionListener="#{scheduleHandler.addSampleHoliday}" >> value="add sample holiday" /> >> >> >> >> > id="globalMessages"/> >> >> >> >> >> I only extend the example Handler Classes with the seam name tag. >> @Name("") >> >> Any Ideas? >> I am out of Ideas, I don't see why doesn't work. >> >> Best regards >> Fabio >> >> >> >> > > -- View this message in context: http://www.nabble.com/Seam-and-Tomahawk-Scheduler-tf3531589.html#a9956813 Sent from the MyFaces - Users mailing list archive at Nabble.com.