You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by olip <ol...@googlemail.com> on 2009/12/18 14:27:32 UTC

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Found out that on 5.1.0.1 it is still working (tapestry.js is rendered) but
5.1.0.2. it is no longer working

olip wrote:
> 
> 
> I have the same problems with T5.1.0.5.  I downgraded to 5.0.18 and the
> Tapestry.js reappears in my code again.
> 
> 
> 
> Eric Ma wrote:
>> 
>> 
>> Howard Lewis Ship wrote:
>>> 
>>> Well, you could verify that with a "view source"; it seems unlikely to
>>> me, but that would be a start towards investigating this.
>>> 
>>> Howard M. Lewis Ship
>>> 
>> 
>> Well, I had never had the need to explicitly include tapestry.js, until
>> today that is. T5 apparently does its magic behind the scenes.  Plus,
>> when
>> doing View Source for the pages in which the onsubmit handler works, I
>> cannot find tapestry.js.
>> 
>> After explicitly adding
>> @IncludeJavaScriptLibrary({"classpath:org/apache/tapestry5/tapestry.js"})
>> to the custom component, my problem is now resolved.  Howard, does that
>> give you a clue how to solve the problem at the root level?
>> 
>> Eric
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://old.nabble.com/-T5.1.0.5--%27Tapestry%27-is-undefined-JavaScript-error-on-form-submit-tp23834056p26840980.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/T5-1-0-5-Tapestry-is-undefined-JavaScript-error-on-form-submit-tp3012500p4186524.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Posted by olip <ol...@googlemail.com>.
Hey Joachim,
Thank you so much!
This works like a charm!

Thanks again for your quick help!

Joachim Van der Auwera (PROGS bvba) wrote:
> 
> Sometimes this is caused by the combine script settings which can give 
> problems in IE when the URL becomes too long. Switching off combine 
> scripts may help.
> 
> Kind regards,
> Joachim
> 
> olip wrote:
>> Found out that on 5.1.0.1 it is still working (tapestry.js is rendered)
>> but
>> 5.1.0.2. it is no longer working
>>
>> olip wrote:
>>   
>>> I have the same problems with T5.1.0.5.  I downgraded to 5.0.18 and the
>>> Tapestry.js reappears in my code again.
>>>
>>>
>>>
>>> Eric Ma wrote:
>>>     
>>>> Howard Lewis Ship wrote:
>>>>       
>>>>> Well, you could verify that with a "view source"; it seems unlikely to
>>>>> me, but that would be a start towards investigating this.
>>>>>
>>>>> Howard M. Lewis Ship
>>>>>
>>>>>         
>>>> Well, I had never had the need to explicitly include tapestry.js, until
>>>> today that is. T5 apparently does its magic behind the scenes.  Plus,
>>>> when
>>>> doing View Source for the pages in which the onsubmit handler works, I
>>>> cannot find tapestry.js.
>>>>
>>>> After explicitly adding
>>>> @IncludeJavaScriptLibrary({"classpath:org/apache/tapestry5/tapestry.js"})
>>>> to the custom component, my problem is now resolved.  Howard, does that
>>>> give you a clue how to solve the problem at the root level?
>>>>
>>>> Eric
>>>>
>>>>
>>>>
>>>>       
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/-T5.1.0.5--%27Tapestry%27-is-undefined-JavaScript-error-on-form-submit-tp23834056p26840980.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/-T5.1.0.5--%27Tapestry%27-is-undefined-JavaScript-error-on-form-submit-tp23834056p26844865.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Posted by Donny Nadolny <do...@gmail.com>.
Combine scripts is an optimization that Tapestry can do where it
combines all the javascript files in to one virtual file to minimize
the number of HTTP requests that the browser has to do.

As for your problem, you say you've included jQuery - are you setting
no conflict mode on? http://api.jquery.com/jQuery.noConflict/

Tapestry uses the Prototype javascript library, which uses the dollar
sign for a namespace. So does jQuery, which is what causes this
problem.

You can just open up your jQuery js and add "$.noConflict();" to the end.

On Tue, Dec 7, 2010 at 6:15 AM, rajesh <ra...@gmail.com> wrote:
>
> Hi,
>  I am getting "Tapestry is undefined" error on form submit. I have tried
> both Firefox 3.6.12 and IE 8 (Version: 8.0.6001.18702). On both the
> browsers, I am facing the same error.
>
> Can someone please explain what switching off combine scripts is?
>
> Here are the tapestry/jquery packages that I am using:
>
> tapestry5-annotations-5.1.0.5.jar
> tapestry-ioc-5.1.0.5.jar
> tapestry-core-5.1.0.5.jar
> jquery-1.4.2
>
> Regards
> Rajesh
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/T5-1-0-5-Tapestry-is-undefined-JavaScript-error-on-form-submit-tp2393118p3295600.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Posted by Jonathan Barker <jo...@gmail.com>.
I have hit this before, and I don't have a definitive reason.  But at least
you are not alone.

I have considered it may have something to do with the production setup
where the Tomcat instance sits behind a proxy and uses the AJP connector,
because I don't get it on my development system.



On Tue, Dec 7, 2010 at 6:15 AM, rajesh <ra...@gmail.com> wrote:

>
> Hi,
>  I am getting "Tapestry is undefined" error on form submit. I have tried
> both Firefox 3.6.12 and IE 8 (Version: 8.0.6001.18702). On both the
> browsers, I am facing the same error.
>
> Can someone please explain what switching off combine scripts is?
>
> Here are the tapestry/jquery packages that I am using:
>
> tapestry5-annotations-5.1.0.5.jar
> tapestry-ioc-5.1.0.5.jar
> tapestry-core-5.1.0.5.jar
> jquery-1.4.2
>
> Regards
> Rajesh
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-1-0-5-Tapestry-is-undefined-JavaScript-error-on-form-submit-tp2393118p3295600.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jonathan Barker
ITStrategic

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Posted by rajesh <ra...@gmail.com>.
Hi, 
 I am getting "Tapestry is undefined" error on form submit. I have tried
both Firefox 3.6.12 and IE 8 (Version: 8.0.6001.18702). On both the
browsers, I am facing the same error.

Can someone please explain what switching off combine scripts is? 

Here are the tapestry/jquery packages that I am using:

tapestry5-annotations-5.1.0.5.jar
tapestry-ioc-5.1.0.5.jar
tapestry-core-5.1.0.5.jar
jquery-1.4.2

Regards
Rajesh
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-1-0-5-Tapestry-is-undefined-JavaScript-error-on-form-submit-tp2393118p3295600.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

Posted by "Joachim Van der Auwera (PROGS bvba)" <jo...@progs.be>.
Sometimes this is caused by the combine script settings which can give 
problems in IE when the URL becomes too long. Switching off combine 
scripts may help.

Kind regards,
Joachim

olip wrote:
> Found out that on 5.1.0.1 it is still working (tapestry.js is rendered) but
> 5.1.0.2. it is no longer working
>
> olip wrote:
>   
>> I have the same problems with T5.1.0.5.  I downgraded to 5.0.18 and the
>> Tapestry.js reappears in my code again.
>>
>>
>>
>> Eric Ma wrote:
>>     
>>> Howard Lewis Ship wrote:
>>>       
>>>> Well, you could verify that with a "view source"; it seems unlikely to
>>>> me, but that would be a start towards investigating this.
>>>>
>>>> Howard M. Lewis Ship
>>>>
>>>>         
>>> Well, I had never had the need to explicitly include tapestry.js, until
>>> today that is. T5 apparently does its magic behind the scenes.  Plus,
>>> when
>>> doing View Source for the pages in which the onsubmit handler works, I
>>> cannot find tapestry.js.
>>>
>>> After explicitly adding
>>> @IncludeJavaScriptLibrary({"classpath:org/apache/tapestry5/tapestry.js"})
>>> to the custom component, my problem is now resolved.  Howard, does that
>>> give you a clue how to solve the problem at the root level?
>>>
>>> Eric
>>>
>>>
>>>
>>>       
>> -- 
>> View this message in context:
>> http://old.nabble.com/-T5.1.0.5--%27Tapestry%27-is-undefined-JavaScript-error-on-form-submit-tp23834056p26840980.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org