Hi Zied,

the form element with id="page::form" is rendered by the PageRenderer.
You have no tc:page in your source, so i can't see why this could happen.

What happens if you remove the <html><body> tags and replace the
h:form tag with a tc:page, and the div with a tc:panel?


Regards,
    Volker

2007/12/13, Zied Hamdi <[EMAIL PROTECTED]>:
> Hi Again,
>
> Examining the generated code further I have found this problem:
>
> the call is made from cells like this one:<tr><td style=
> "width: 100%;" onmouseover="return makeTrue(domTT_activate(this, event,
> 'caption', 'Menage', 'content', '&lt;i&gt;Alice du four&lt;/i&gt;', 'trail',
> true));"
> ><a href="#" onmouseup="fireEntrySelected('page', 'page:schedule',
> '360452');"
> ><div class="text" style="height: 100%; width: 100%;"
> >18:49: Menage</div></a></td></tr>
>
> whereas my form's name is
> <form name="page::form" action=
> "/IntoServicesWeb/contract/contract.jsf" id="page::form"
> method=
> "post" accept-charset="utf-8"
> >
> That's why the call document.forms[formId] with formId='page' returns null.
> Now that I know this, what do I have to do with it?
> Any ideas?
>
>
>
>
> 2007/12/13, Zied Hamdi <[EMAIL PROTECTED]>:
> >
> > Hi All,
> >
> > I have entred this problem earlier when I was in time evalution phasis.
> Today I'm concretely in dev mode and I don't have any solution (I was
> thinking ti was because of the context : tobago layouting etc.., so I
> simplified to the basis): here's my page it's the same one as in the
> tomahawk examples 1:
> >
> >
> > < html>
> >
> > < body>
> >
> > < f:view
> >
> >       xmlns= " http://www.w3.org/1999/xhtml";
> >
> >       xmlns:t= " http://myfaces.apache.org/tomahawk";
> >
> >       xmlns:tc= "
> http://myfaces.apache.org/tobago/component";
> >
> >       xmlns:tx= "
> http://myfaces.apache.org/tobago/extension";
> >
> >       xmlns:h= " http://java.sun.com/jsf/html";
> >
> >       xmlns:f= " http://java.sun.com/jsf/core";>
> >
> >       < h:form >
> >
> >             <!--  The schedule itself -->
> >
> >             < div style ="position: absolute; left: 220px; top: 5px;
> right: 5px;" ><t:schedule
> >
> >                   value
> ="#{contractCtrl.scheduleModel.model}"
> >
> >                   id ="schedule1"
> >
> >                   rendered ="true"
> >
> >                   visibleEndHour ="18"
> >
> >                   visibleStartHour ="8"
> >
> >                   workingEndHour ="17"
> >
> >                   workingStartHour ="9"
> >
> >                   readonly ="false"
> >
> >                   theme ="evolution"
> >
> >                   tooltip ="true" /></ div >
> >
> >       </ h:form>
> >
> > </ f:view>
> >
> > </ body>
> >
> > </ html>
> >
> >
> > It doesn't use anything more than facelets. What I receive is
> > Erreur : document.forms[formId] has no properties
> > Fichier source :
> http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11975349/schedule.HtmlSchedule/javascript/schedule.js
> > Ligne : 33
> >
> > I have the tomahawk example app
> myfaces-example-simple-1.1.7-SNAPSHOT.war  running on the
> same server without problems, so I think the only difference is the
> WEB-INF/lib directory: here's my app contents:
> > 02/10/2006  20:03            63ÿ966 avalon-framework-4.1.3.jar
> > 03/09/2007  17:05            48ÿ742 common-annotations.jar
> > 20/09/2006  17:30           188ÿ671 commons-beanutils-1.7.0.jar
> > 04/09/2007  14:21           188ÿ671 commons-beanutils.jar
> > 15/11/2006  10:16            46ÿ725 commons-codec-1.3.jar
> > 20/09/2006  17:30           559ÿ366 commons-collections-3.1.jar
> > 04/09/2007  14:21           559ÿ366 commons-collections.jar
> > 20/09/2006  17:30           139ÿ966 commons-digester-1.7.jar
> > 04/09/2007  14:21           139ÿ966 commons-digester.jar
> > 31/12/2006  17:01           112ÿ341 commons-el-1.0.jar
> > 25/01/2007  18:36            31ÿ909 commons-fileupload-1.1.1.jar
> > 20/09/2006  17:35            61ÿ562 commons-io-1.1.jar
> > 20/09/2006  17:30           207ÿ723 commons-lang-2.1.jar
> > 20/09/2006  18:35            52ÿ915 commons-logging-1.1.jar
> > 16/06/2007  23:10            72ÿ009 el-impl-1.0.jar
> > 13/12/2007  09:49                 0 info.txt
> > 18/12/2006  22:05           298ÿ368 jsf-facelets.jar
> > 03/09/2007  17:05            30ÿ483 jsf-tlds.jar
> > 13/03/2007  17:03           367ÿ444 log4j-1.2.14.jar
> > 02/10/2006  20:03            72ÿ150 logkit-1.0.1.jar
> > 16/06/2007  23:10             6ÿ882
> maven-repository-importer-1.1.jar
> > 19/10/2007  06:30           577ÿ125 tobago-core-1.0.12.jar
> > 07/10/2007  01:25            62ÿ217
> tobago-facelets-1.0.12-SNAPSHOT.jar
> > 07/10/2007  01:25            10ÿ728
> tobago-fileupload-1.0.12-SNAPSHOT.jar
> > 19/10/2007  06:59            12ÿ540
> tobago-theme-charlotteville-1.0.12.jar
> > 19/10/2007  06:56            35ÿ458
> tobago-theme-richmond-1.0.12.jar
> > 19/10/2007  06:45           254ÿ130
> tobago-theme-scarborough-1.0.12.jar
> > 19/10/2007  06:51            60ÿ566
> tobago-theme-speyside-1.0.12.jar
> > 19/10/2007  06:39            84ÿ940
> tobago-theme-standard-1.0.12.jar
> > 06/11/2007  13:44         2ÿ962ÿ674 tomahawk-1.1.7-SNAPSHOT.jar
> > 02/10/2007  14:23             9ÿ376 tomahawk-facelets-1.1.6.jar
> >
> > I don't have anything special in my conf files.
> >
> > Please if anyone has noticed an analogous problem, any hints will be
> greatly appreciated.
> >
> > Thanks,
> > Zied
>
>
>
> --
> Zied Hamdi
> zatreex.sourceforge.net


-- 
inexso - information exchange solutions GmbH
Bismarckstraße 13      | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX:  +49 441 4082 355 | www.inexso.de

Reply via email to