You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Jeremy F. Kassis" <jk...@jkassis.com> on 2007/06/29 07:33:35 UTC
T4 T4.1.2: tapestry.form.registerForm is not a function
Just upgraded to T4.1.2. On pages with forms, I get the following error:
"tapestry.form.registerForm is not a function"
Using firebug, I...
1. Set a breakpoint on this line: require("tapestry.form");
2. clear the console
3. step over the function call
4. observe the GET requests for form.js *AND* form/validation.js *AND*
form_compat.js
The last two files are dependencies declared in the form.js file, so it even
seems that dojo is parsing this. It's just not parsing the money line:
tapestry.form={ blah blah blah };
My theory is that dojo is swallowing some errors here, but I'm open to
others. Any thoughts anyone?
--
View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
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: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by andyhot <an...@di.uoa.gr>.
What happens if:
a) you enable friendly urls for the asset service
b) you remove the base tag from within head (there's a parameter for
@Shell for this)
Jeremy F. Kassis wrote:
> Well. No luck on this one. I rolled back to T4.1.1 and everything works.
> Guess I'm waiting for T5. Thanks for your thoughts / help Jesse.
>
>
>
> Jeremy F. Kassis wrote:
>
>> Just to be clear, I "broke it more" to see what would happen and eliminate
>> the possibility that the defaultDojoPath and related IAsset declarations
>> were wrong. I changed them back, assuming they are right, but I don't have
>> any new theories.
>>
>> I'm using Firefox 2, which I know is a little bleeding edge, so I tried on
>> IE and get the same problem.
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by "Jeremy F. Kassis" <jk...@jkassis.com>.
Well. No luck on this one. I rolled back to T4.1.1 and everything works.
Guess I'm waiting for T5. Thanks for your thoughts / help Jesse.
Jeremy F. Kassis wrote:
>
> Just to be clear, I "broke it more" to see what would happen and eliminate
> the possibility that the defaultDojoPath and related IAsset declarations
> were wrong. I changed them back, assuming they are right, but I don't have
> any new theories.
>
> I'm using Firefox 2, which I know is a little bleeding edge, so I tried on
> IE and get the same problem.
>
>
--
View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11403973
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: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by "Jeremy F. Kassis" <jk...@jkassis.com>.
Just to be clear, I "broke it more" to see what would happen and eliminate
the possibility that the defaultDojoPath and related IAsset declarations
were wrong. I changed them back, assuming they are right, but I don't have
any new theories.
I'm using Firefox 2, which I know is a little bleeding edge, so I tried on
IE and get the same problem.
--
View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355832
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: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by "Jeremy F. Kassis" <jk...@jkassis.com>.
Good idea.
I restarted the server and loaded the page. Looks clean on the server-side.
Then, I "broke it more" by messing with one of IAsset declarations. I get
asset not found errors and the page fails to load. I'm attaching my page
source in case it might help.
http://www.nabble.com/file/p11355653/app.htm app.htm
Jessek wrote:
>
> And on the server do you get log warning messages about classpath
> resources
> not being found?
>
> Maybe your urls aren't being handled properly for some reason? I haven't
> tested anything without friendly urls in a while, maybe something there is
> broken.
>
> On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
>>
>>
>> Thanks for the quick reply.
>>
>> I cleared my browser cache, but no luck.
>>
>> Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
>> alert('hi'); lines embedded in the form.js file. Cleared my cache again
>> and
>> checked the GET request responses to make sure the browser was fetching
>> the
>> updated file. Loaded the page and got no alerts, so I'm updating my
>> theory.
>> I don't think dojo is parsing these. (Tangentially... do you know an
>> easier
>> way to do this?)
>>
>> One other datum supports this... I added <binding name="debugEnabled"
>> value="ognl:true"/> to the Shell component declaration. This causes the
>> following lines to appear in the page:
>> dojo.require("dojo.logging.Logger");
>> dojo.log.setLevel(dojo.log.getLevel("WARNING"));
>>
>> firefox complains that dojo.log.getLevel is not a function, so I'm
>> guessing
>> that none of the dojo.require statements are succeeding.
>>
>> Yowza!
>>
>>
>>
>>
>> Jessek wrote:
>> >
>> > Clear your browser cache? I've never seen/heard of something like this
>> so
>> > I
>> > don't have a lot of ideas.
>> >
>> > On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
>> >>
>> >>
>> >> Just upgraded to T4.1.2. On pages with forms, I get the following
>> error:
>> >> "tapestry.form.registerForm is not a function"
>> >>
>> >> Using firebug, I...
>> >> 1. Set a breakpoint on this line: require("tapestry.form");
>> >> 2. clear the console
>> >> 3. step over the function call
>> >> 4. observe the GET requests for form.js *AND* form/validation.js
>> *AND*
>> >> form_compat.js
>> >>
>> >> The last two files are dependencies declared in the form.js file, so
>> it
>> >> even
>> >> seems that dojo is parsing this. It's just not parsing the money line:
>> >> tapestry.form={ blah blah blah };
>> >>
>> >> My theory is that dojo is swallowing some errors here, but I'm open to
>> >> others. Any thoughts anyone?
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
>> >> 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
>> >>
>> >>
>> >
>> >
>> > --
>> > Jesse Kuhnert
>> > Tapestry/Dojo team member/developer
>> >
>> > Open source based consulting work centered around
>> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
>> 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
>>
>>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>
--
View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355653
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: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by Jesse Kuhnert <jk...@gmail.com>.
And on the server do you get log warning messages about classpath resources
not being found?
Maybe your urls aren't being handled properly for some reason? I haven't
tested anything without friendly urls in a while, maybe something there is
broken.
On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
>
>
> Thanks for the quick reply.
>
> I cleared my browser cache, but no luck.
>
> Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
> alert('hi'); lines embedded in the form.js file. Cleared my cache again
> and
> checked the GET request responses to make sure the browser was fetching
> the
> updated file. Loaded the page and got no alerts, so I'm updating my
> theory.
> I don't think dojo is parsing these. (Tangentially... do you know an
> easier
> way to do this?)
>
> One other datum supports this... I added <binding name="debugEnabled"
> value="ognl:true"/> to the Shell component declaration. This causes the
> following lines to appear in the page:
> dojo.require("dojo.logging.Logger");
> dojo.log.setLevel(dojo.log.getLevel("WARNING"));
>
> firefox complains that dojo.log.getLevel is not a function, so I'm
> guessing
> that none of the dojo.require statements are succeeding.
>
> Yowza!
>
>
>
>
> Jessek wrote:
> >
> > Clear your browser cache? I've never seen/heard of something like this
> so
> > I
> > don't have a lot of ideas.
> >
> > On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
> >>
> >>
> >> Just upgraded to T4.1.2. On pages with forms, I get the following
> error:
> >> "tapestry.form.registerForm is not a function"
> >>
> >> Using firebug, I...
> >> 1. Set a breakpoint on this line: require("tapestry.form");
> >> 2. clear the console
> >> 3. step over the function call
> >> 4. observe the GET requests for form.js *AND* form/validation.js
> *AND*
> >> form_compat.js
> >>
> >> The last two files are dependencies declared in the form.js file, so it
> >> even
> >> seems that dojo is parsing this. It's just not parsing the money line:
> >> tapestry.form={ blah blah blah };
> >>
> >> My theory is that dojo is swallowing some errors here, but I'm open to
> >> others. Any thoughts anyone?
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
> >> 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
> >>
> >>
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
> 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
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by "Jeremy F. Kassis" <jk...@jkassis.com>.
Thanks for the quick reply.
I cleared my browser cache, but no luck.
Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
alert('hi'); lines embedded in the form.js file. Cleared my cache again and
checked the GET request responses to make sure the browser was fetching the
updated file. Loaded the page and got no alerts, so I'm updating my theory.
I don't think dojo is parsing these. (Tangentially... do you know an easier
way to do this?)
One other datum supports this... I added <binding name="debugEnabled"
value="ognl:true"/> to the Shell component declaration. This causes the
following lines to appear in the page:
dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("WARNING"));
firefox complains that dojo.log.getLevel is not a function, so I'm guessing
that none of the dojo.require statements are succeeding.
Yowza!
Jessek wrote:
>
> Clear your browser cache? I've never seen/heard of something like this so
> I
> don't have a lot of ideas.
>
> On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
>>
>>
>> Just upgraded to T4.1.2. On pages with forms, I get the following error:
>> "tapestry.form.registerForm is not a function"
>>
>> Using firebug, I...
>> 1. Set a breakpoint on this line: require("tapestry.form");
>> 2. clear the console
>> 3. step over the function call
>> 4. observe the GET requests for form.js *AND* form/validation.js *AND*
>> form_compat.js
>>
>> The last two files are dependencies declared in the form.js file, so it
>> even
>> seems that dojo is parsing this. It's just not parsing the money line:
>> tapestry.form={ blah blah blah };
>>
>> My theory is that dojo is swallowing some errors here, but I'm open to
>> others. Any thoughts anyone?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
>> 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
>>
>>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>
--
View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
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: T4 T4.1.2: tapestry.form.registerForm is not a function
Posted by Jesse Kuhnert <jk...@gmail.com>.
Clear your browser cache? I've never seen/heard of something like this so I
don't have a lot of ideas.
On 6/29/07, Jeremy F. Kassis <jk...@jkassis.com> wrote:
>
>
> Just upgraded to T4.1.2. On pages with forms, I get the following error:
> "tapestry.form.registerForm is not a function"
>
> Using firebug, I...
> 1. Set a breakpoint on this line: require("tapestry.form");
> 2. clear the console
> 3. step over the function call
> 4. observe the GET requests for form.js *AND* form/validation.js *AND*
> form_compat.js
>
> The last two files are dependencies declared in the form.js file, so it
> even
> seems that dojo is parsing this. It's just not parsing the money line:
> tapestry.form={ blah blah blah };
>
> My theory is that dojo is swallowing some errors here, but I'm open to
> others. Any thoughts anyone?
>
>
> --
> View this message in context:
> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
> 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
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com