You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ProAdmin Dariusz Dwornikowski <da...@proadmin.com.pl> on 2008/09/13 17:59:42 UTC

Problem with Javascript ( i suspect)

Hi,

Im doing application in 5.0.14. Everything worked nice, but now i have
got a problem with JS things, like datepicker and FCK from
t5components. They do not work, for example icon for datepicker shows
up, but no action when i click on it. Instead of FCK normal textarea
is shown. I can also see that :
<!--
Tapestry.onDOMLoaded(function()
....
 does not show up in source of page.
Only thing i did was making tapestry to generate XHTML, according to
wiki and this list. But i reverted all changes to eliminate them as
source of problem. Also i erased fck from tml. Still datepicker does
not work.

My application is very simple:

The tml is;

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<h1>Adding event</h1>
<t:form t:id="event">
	 <t:label t:for="title"/><br/>
	 <input type="text" t:id="title" t:type="TextField" t:value="title"
size="100"/> <br/><br/><br/>
	
	
	
	 <t:label t:for="author"/><input type="text" t:id="author"
t:type="TextField" t:value="author"/> <br/>
	 <t:label t:for="dateOfPublication"/><input type="text"
t:id="dateOfPublication" t:type="datefield"
t:value="dateOfPublication"/> <br/>
	 <t:label t:for="category"/><input type="select" t:id="category"
t:type="select" t:model="categories"/><br/><br/><br/><hr/>
	 <t:label t:for="file"/><input type="upload" t:id="file" t:type="Upload"/><br/>
	 <input type="submit" t:type="submit" t:id="submitButton" value="Submit"/>
</t:form>

</html>

And the page class for that was not changed.

How can i diagnose what is wrong? Logs say nothing.


-- 
Pozdrawiam,
	Dariusz Dwornikowski
------------------------------------
ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
dariusz.dwornikowski@proadmin.com.pl

Re: Problem with Javascript ( i suspect)

Posted by ProAdmin Dariusz Dwornikowski <da...@proadmin.com.pl>.
Yes. Im dumb. Sorry.

W dniu 14 września 2008 04:13 użytkownik Howard Lewis Ship
<hl...@gmail.com> napisał:
> The generated page must have a <html> element and a <body> element for
> the JavaScript integration to work.
>
> On Sat, Sep 13, 2008 at 8:59 AM, ProAdmin Dariusz Dwornikowski
> <da...@proadmin.com.pl> wrote:
>> Hi,
>>
>> Im doing application in 5.0.14. Everything worked nice, but now i have
>> got a problem with JS things, like datepicker and FCK from
>> t5components. They do not work, for example icon for datepicker shows
>> up, but no action when i click on it. Instead of FCK normal textarea
>> is shown. I can also see that :
>> <!--
>> Tapestry.onDOMLoaded(function()
>> ....
>>  does not show up in source of page.
>> Only thing i did was making tapestry to generate XHTML, according to
>> wiki and this list. But i reverted all changes to eliminate them as
>> source of problem. Also i erased fck from tml. Still datepicker does
>> not work.
>>
>> My application is very simple:
>>
>> The tml is;
>>
>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>> <h1>Adding event</h1>
>> <t:form t:id="event">
>>         <t:label t:for="title"/><br/>
>>         <input type="text" t:id="title" t:type="TextField" t:value="title"
>> size="100"/> <br/><br/><br/>
>>
>>
>>
>>         <t:label t:for="author"/><input type="text" t:id="author"
>> t:type="TextField" t:value="author"/> <br/>
>>         <t:label t:for="dateOfPublication"/><input type="text"
>> t:id="dateOfPublication" t:type="datefield"
>> t:value="dateOfPublication"/> <br/>
>>         <t:label t:for="category"/><input type="select" t:id="category"
>> t:type="select" t:model="categories"/><br/><br/><br/><hr/>
>>         <t:label t:for="file"/><input type="upload" t:id="file" t:type="Upload"/><br/>
>>         <input type="submit" t:type="submit" t:id="submitButton" value="Submit"/>
>> </t:form>
>>
>> </html>
>>
>> And the page class for that was not changed.
>>
>> How can i diagnose what is wrong? Logs say nothing.
>>
>>
>> --
>> Pozdrawiam,
>>        Dariusz Dwornikowski
>> ------------------------------------
>> ProAdmin
>> ul. Królowej Jadwigi 44/2
>> 61-872 Poznań
>> tel: 061 623-20-92
>> kom: 0601 59-64-74
>> fax: 061 623-20-93
>> www.proadmin.com.pl
>> dariusz.dwornikowski@proadmin.com.pl
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>



-- 
Pozdrawiam,
	Dariusz Dwornikowski
------------------------------------
ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
dariusz.dwornikowski@proadmin.com.pl

Re: Problem with Javascript ( i suspect)

Posted by Howard Lewis Ship <hl...@gmail.com>.
The generated page must have a <html> element and a <body> element for
the JavaScript integration to work.

On Sat, Sep 13, 2008 at 8:59 AM, ProAdmin Dariusz Dwornikowski
<da...@proadmin.com.pl> wrote:
> Hi,
>
> Im doing application in 5.0.14. Everything worked nice, but now i have
> got a problem with JS things, like datepicker and FCK from
> t5components. They do not work, for example icon for datepicker shows
> up, but no action when i click on it. Instead of FCK normal textarea
> is shown. I can also see that :
> <!--
> Tapestry.onDOMLoaded(function()
> ....
>  does not show up in source of page.
> Only thing i did was making tapestry to generate XHTML, according to
> wiki and this list. But i reverted all changes to eliminate them as
> source of problem. Also i erased fck from tml. Still datepicker does
> not work.
>
> My application is very simple:
>
> The tml is;
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <h1>Adding event</h1>
> <t:form t:id="event">
>         <t:label t:for="title"/><br/>
>         <input type="text" t:id="title" t:type="TextField" t:value="title"
> size="100"/> <br/><br/><br/>
>
>
>
>         <t:label t:for="author"/><input type="text" t:id="author"
> t:type="TextField" t:value="author"/> <br/>
>         <t:label t:for="dateOfPublication"/><input type="text"
> t:id="dateOfPublication" t:type="datefield"
> t:value="dateOfPublication"/> <br/>
>         <t:label t:for="category"/><input type="select" t:id="category"
> t:type="select" t:model="categories"/><br/><br/><br/><hr/>
>         <t:label t:for="file"/><input type="upload" t:id="file" t:type="Upload"/><br/>
>         <input type="submit" t:type="submit" t:id="submitButton" value="Submit"/>
> </t:form>
>
> </html>
>
> And the page class for that was not changed.
>
> How can i diagnose what is wrong? Logs say nothing.
>
>
> --
> Pozdrawiam,
>        Dariusz Dwornikowski
> ------------------------------------
> ProAdmin
> ul. Królowej Jadwigi 44/2
> 61-872 Poznań
> tel: 061 623-20-92
> kom: 0601 59-64-74
> fax: 061 623-20-93
> www.proadmin.com.pl
> dariusz.dwornikowski@proadmin.com.pl
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind