Hi Jurgen,
Thanks for your answer. Sorry I didn't look further to the bug list when it
throwed the IllegalState I rapidly put the 1.1.7 back :-).
The problem is that I'm using the tomahawk schedule inside a tobago view
root, I naturally have a tc:page that creates a form, but that's maybe not
recognized by the schedule as it maybe searches for a standard h:form. Do
you think it's the issue cause?
My context is: a layouting template in facelets with tobago as the main view
handler and tomahawk in scheduling (which is a very big vector in the app).
In the layouting template I have: <tc:view><tc:page>../ /
I've tried to put an explicit h:form directly around the schedule but I
still have the same error:
<h:form id="scheduleForm">
<t:schedule
id="schedule"
value="#{schedule.model}"
rendered="true"
tooltip="true"
entryRenderer="#{schedule.renderer}"
headerDateFormat="EEE dd"
hourNotation="24" />
</h:form>
2007/11/8, Jurgen Lust <[EMAIL PROTECTED]>:
>
> The IllegalStateException problem was described here:
> https://issues.apache.org/jira/browse/TOMAHAWK-971
>
> As for the javascript error, have you put your schedule inside a <h:form>?
>
>
> Jurgen
>
> 2007/11/7, Zied Hamdi <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I've beagan developing my app with the tomahawk 1.1.7 Snapshot
> > (expecting it will be stable when the project will finish). Unfortunately I
> > get a js error when I click on an entry:
> > Erreur : document.forms[formId] has no properties
> > Fichier source :
> > http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11944520/schedule.HtmlSchedule/javascript/schedule.js
> > Ligne : 33
> >
> > Trying t get back to 1.1.6 or 1.1.5 I have a even more serious problem:
> >
> > java.lang.IllegalStateException:
> > org.apache.myfaces.custom.schedule.UISchedule$ScheduleActionListener
> > javax.faces.component.StateHolderSaver.restore
> > (StateHolderSaver.java:98)
> >
> > javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1406)
> >
> > javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1272)
> > org.apache.myfaces.custom.schedule.UISchedule.restoreState
> > (UISchedule.java:378)
> >
> > org.apache.myfaces.custom.schedule.HtmlSchedule.restoreState(HtmlSchedule.java:189)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1141)
> > javax.faces.component.UIComponentBase.processRestoreState
> > (UIComponentBase.java:1157)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
> > javax.faces.component.UIComponentBase.processRestoreState
> > (UIComponentBase.java:1157)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
> > javax.faces.component.UIComponentBase.processRestoreState
> > (UIComponentBase.java:1157)
> >
> > javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
> >
> > com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:171)
> > com.sun.faces.application.ViewHandlerImpl.restoreView
> > (ViewHandlerImpl.java:290)
> >
> > org.apache.myfaces.tobago.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:113)
> >
> > com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310)
> > org.apache.myfaces.tobago.lifecycle.RestoreViewExecutor.execute
> > (RestoreViewExecutor.java:108)
> >
> > org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(TobagoLifecycle.java:102)
> >
> > org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(TobagoLifecycle.java:72)
> > javax.faces.webapp.FacesServlet.service
> > (FacesServlet.java:244)
> >
> > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
> >
> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> >
> > any idea?
> > Regards,
> > Zied
> >
> >
> > --
> > Zied Hamdi
> > zatreex.sourceforge.net
> >
>
>
>
> --
> I have a nine iron and I'm not afraid to use it
--
Zied Hamdi
zatreex.sourceforge.net