RE: [5.3] JSONArray Error while submitting forms

2012-06-14 Thread Poder, Jacob
Sent

Should anyone else want to try as well, please let me know...

Best regards,
Jacob


-Original Message-
From: Muhammad Gelbana [mailto:m.gelb...@gmail.com] 
Sent: Wednesday, June 13, 2012 4:15 PM
To: Tapestry users
Subject: Re: [5.3] JSONArray Error while submitting forms

This is crazy !
Please send me your eclipse project with tha sample page causing the error.

On Wed, Jun 13, 2012 at 3:39 PM, Poder, Jacob
wrote:

> Okay, I created an eclipse maven project and added my simple test page 
> to that.
> The problem still occurs!
>
> Testing with various Tapestry versions (changing the version in the 
> pom) gives this:
> T5.3.3 - Error
> T5.3.2 - Error
> T5.2.6 - Success
>
> It seems that nobody has yet actually tried following my description 
> to reproduce and see if it could be a Tapestry bug???
>
> Best regards,
> Jacob
>
>
> From: Muhammad Gelbana [mailto:m.gelb...@gmail.com]
> Sent: Tuesday, June 12, 2012 5:06 PM
> To: Poder, Jacob
> Subject: Re: [5.3] JSONArray Error while submitting forms
>
> The only I did beat this was to use maven (as i'm used to) to create 
> the skeleton project structure, download the latest libraries and then 
> copy my pages\components classes\templates to the new project. It 
> worked for me this way.
> On Tue, Jun 12, 2012 at 4:24 PM, Poder, Jacob < 
> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>> wrote:
> No, not using maven...
> I use eclipse to build on my workstation and ant on our continous 
> integration build server. The error happens either way.
>
> Best regards,
> Jacob
>
> - Reply message -
> Fra: "Muhammad Gelbana" 
> mailto:m.gelb...@gmail.com>>
> Dato: tir., jun. 12, 2012 15:53
> Emne: [5.3] JSONArray Error while submitting forms
> Til: "Tapestry users"  users@tapestry.apache.org>>
> Are you packaging your application using maven ? Try to make a clean 
> build (mvn clean)
>
> On Tue, Jun 12, 2012 at 11:02 AM, Poder, Jacob < 
> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>
> > wrote:
>
> > Aha, the error ONLY occurs when the form is submitted by pressing return!
> >
> > So, 3 conditions to make this happen:
> > 1) IE8/9 browser
> > 2) Submit form using return button
> > 3) A validator (e.g. required/min/max) must have failed immediately
> before
> >
> > Best regards,
> > Jacob
> >
> > T5.3.3
> >
> > 
> > - To unsubscribe, e-mail: 
> > users-unsubscr...@tapestry.apache.org users-unsubscr...@tapestry.apache.org>
> > For additional commands, e-mail: users-h...@tapestry.apache.org users-h...@tapestry.apache.org>
> >
> >
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>
>
>
> --
> Regards,
> Muhammad Gelbana
> Java Developer
>
>


--
*Regards,*
*Muhammad Gelbana
Java Developer*

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



RE: [5.3] JSONArray Error while submitting forms

2012-06-13 Thread Poder, Jacob
Hi Bob,

Thanks for commenting.

I already tried this, please see earlier correspondence.
(http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-td5713753.html)


Best regards,
Jacob





-Original Message-
From: Bob Harner [mailto:bobhar...@gmail.com] 
Sent: Thursday, June 14, 2012 1:26 AM
To: Tapestry users
Subject: Re: [5.3] JSONArray Error while submitting forms

A shot in the dark... another thing to try would be to increment the value of 
the SymbolConstants.APPLICATION_VERSION symbol in your app module class 
(normally AppModule.java)



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



Re: [5.3] JSONArray Error while submitting forms

2012-06-13 Thread Bob Harner
A shot in the dark... another thing to try would be to increment the
value of the SymbolConstants.APPLICATION_VERSION symbol in your app
module class (normally AppModule.java)

On Wed, Jun 13, 2012 at 10:14 AM, Muhammad Gelbana  wrote:
> This is crazy !
> Please send me your eclipse project with tha sample page causing the error.
>
> On Wed, Jun 13, 2012 at 3:39 PM, Poder, Jacob
> wrote:
>
>> Okay, I created an eclipse maven project and added my simple test page to
>> that.
>> The problem still occurs!
>>
>> Testing with various Tapestry versions (changing the version in the pom)
>> gives this:
>> T5.3.3 - Error
>> T5.3.2 - Error
>> T5.2.6 - Success
>>
>> It seems that nobody has yet actually tried following my description to
>> reproduce and see if it could be a Tapestry bug???
>>
>> Best regards,
>> Jacob
>>
>>
>> From: Muhammad Gelbana [mailto:m.gelb...@gmail.com]
>> Sent: Tuesday, June 12, 2012 5:06 PM
>> To: Poder, Jacob
>> Subject: Re: [5.3] JSONArray Error while submitting forms
>>
>> The only I did beat this was to use maven (as i'm used to) to create the
>> skeleton project structure, download the latest libraries and then copy my
>> pages\components classes\templates to the new project. It worked for me
>> this way.
>> On Tue, Jun 12, 2012 at 4:24 PM, Poder, Jacob <
>> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>> wrote:
>> No, not using maven...
>> I use eclipse to build on my workstation and ant on our continous
>> integration build server. The error happens either way.
>>
>> Best regards,
>> Jacob
>>
>> - Reply message -
>> Fra: "Muhammad Gelbana" mailto:m.gelb...@gmail.com>>
>> Dato: tir., jun. 12, 2012 15:53
>> Emne: [5.3] JSONArray Error while submitting forms
>> Til: "Tapestry users" > users@tapestry.apache.org>>
>> Are you packaging your application using maven ? Try to make a clean build
>> (mvn clean)
>>
>> On Tue, Jun 12, 2012 at 11:02 AM, Poder, Jacob <
>> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>
>> > wrote:
>>
>> > Aha, the error ONLY occurs when the form is submitted by pressing return!
>> >
>> > So, 3 conditions to make this happen:
>> > 1) IE8/9 browser
>> > 2) Submit form using return button
>> > 3) A validator (e.g. required/min/max) must have failed immediately
>> before
>> >
>> > Best regards,
>> > Jacob
>> >
>> > T5.3.3
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org> users-unsubscr...@tapestry.apache.org>
>> > For additional commands, e-mail: users-h...@tapestry.apache.org> users-h...@tapestry.apache.org>
>> >
>> >
>>
>>
>> --
>> *Regards,*
>> *Muhammad Gelbana
>> Java Developer*
>>
>>
>>
>> --
>> Regards,
>> Muhammad Gelbana
>> Java Developer
>>
>>
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*

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



Re: [5.3] JSONArray Error while submitting forms

2012-06-13 Thread Muhammad Gelbana
This is crazy !
Please send me your eclipse project with tha sample page causing the error.

On Wed, Jun 13, 2012 at 3:39 PM, Poder, Jacob
wrote:

> Okay, I created an eclipse maven project and added my simple test page to
> that.
> The problem still occurs!
>
> Testing with various Tapestry versions (changing the version in the pom)
> gives this:
> T5.3.3 - Error
> T5.3.2 - Error
> T5.2.6 - Success
>
> It seems that nobody has yet actually tried following my description to
> reproduce and see if it could be a Tapestry bug???
>
> Best regards,
> Jacob
>
>
> From: Muhammad Gelbana [mailto:m.gelb...@gmail.com]
> Sent: Tuesday, June 12, 2012 5:06 PM
> To: Poder, Jacob
> Subject: Re: [5.3] JSONArray Error while submitting forms
>
> The only I did beat this was to use maven (as i'm used to) to create the
> skeleton project structure, download the latest libraries and then copy my
> pages\components classes\templates to the new project. It worked for me
> this way.
> On Tue, Jun 12, 2012 at 4:24 PM, Poder, Jacob <
> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>> wrote:
> No, not using maven...
> I use eclipse to build on my workstation and ant on our continous
> integration build server. The error happens either way.
>
> Best regards,
> Jacob
>
> - Reply message -
> Fra: "Muhammad Gelbana" mailto:m.gelb...@gmail.com>>
> Dato: tir., jun. 12, 2012 15:53
> Emne: [5.3] JSONArray Error while submitting forms
> Til: "Tapestry users"  users@tapestry.apache.org>>
> Are you packaging your application using maven ? Try to make a clean build
> (mvn clean)
>
> On Tue, Jun 12, 2012 at 11:02 AM, Poder, Jacob <
> jacob.po...@thermofisher.com<mailto:jacob.po...@thermofisher.com>
> > wrote:
>
> > Aha, the error ONLY occurs when the form is submitted by pressing return!
> >
> > So, 3 conditions to make this happen:
> > 1) IE8/9 browser
> > 2) Submit form using return button
> > 3) A validator (e.g. required/min/max) must have failed immediately
> before
> >
> > Best regards,
> > Jacob
> >
> > T5.3.3
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org users-unsubscr...@tapestry.apache.org>
> > For additional commands, e-mail: users-h...@tapestry.apache.org users-h...@tapestry.apache.org>
> >
> >
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>
>
>
> --
> Regards,
> Muhammad Gelbana
> Java Developer
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


RE: [5.3] JSONArray Error while submitting forms

2012-06-13 Thread Poder, Jacob
Okay, I created an eclipse maven project and added my simple test page to that.
The problem still occurs!

Testing with various Tapestry versions (changing the version in the pom) gives 
this:
T5.3.3 - Error
T5.3.2 - Error
T5.2.6 - Success

It seems that nobody has yet actually tried following my description to 
reproduce and see if it could be a Tapestry bug???

Best regards,
Jacob


From: Muhammad Gelbana [mailto:m.gelb...@gmail.com]
Sent: Tuesday, June 12, 2012 5:06 PM
To: Poder, Jacob
Subject: Re: [5.3] JSONArray Error while submitting forms

The only I did beat this was to use maven (as i'm used to) to create the 
skeleton project structure, download the latest libraries and then copy my 
pages\components classes\templates to the new project. It worked for me this 
way.
On Tue, Jun 12, 2012 at 4:24 PM, Poder, Jacob 
mailto:jacob.po...@thermofisher.com>> wrote:
No, not using maven...
I use eclipse to build on my workstation and ant on our continous integration 
build server. The error happens either way.

Best regards,
Jacob

- Reply message -
Fra: "Muhammad Gelbana" mailto:m.gelb...@gmail.com>>
Dato: tir., jun. 12, 2012 15:53
Emne: [5.3] JSONArray Error while submitting forms
Til: "Tapestry users" 
mailto:users@tapestry.apache.org>>
Are you packaging your application using maven ? Try to make a clean build
(mvn clean)

On Tue, Jun 12, 2012 at 11:02 AM, Poder, Jacob 
mailto:jacob.po...@thermofisher.com>
> wrote:

> Aha, the error ONLY occurs when the form is submitted by pressing return!
>
> So, 3 conditions to make this happen:
> 1) IE8/9 browser
> 2) Submit form using return button
> 3) A validator (e.g. required/min/max) must have failed immediately before
>
> Best regards,
> Jacob
>
> T5.3.3
>
> -
> To unsubscribe, e-mail: 
> users-unsubscr...@tapestry.apache.org<mailto:users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: 
> users-h...@tapestry.apache.org<mailto:users-h...@tapestry.apache.org>
>
>


--
*Regards,*
*Muhammad Gelbana
Java Developer*



--
Regards,
Muhammad Gelbana
Java Developer



Re: [5.3] JSONArray Error while submitting forms

2012-06-12 Thread Muhammad Gelbana
Are you packaging your application using maven ? Try to make a clean build
(mvn clean)

On Tue, Jun 12, 2012 at 11:02 AM, Poder, Jacob  wrote:

> Aha, the error ONLY occurs when the form is submitted by pressing return!
>
> So, 3 conditions to make this happen:
> 1) IE8/9 browser
> 2) Submit form using return button
> 3) A validator (e.g. required/min/max) must have failed immediately before
>
> Best regards,
> Jacob
>
> T5.3.3
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


RE: [5.3] JSONArray Error while submitting forms

2012-06-12 Thread Poder, Jacob
Aha, the error ONLY occurs when the form is submitted by pressing return!

So, 3 conditions to make this happen:
1) IE8/9 browser
2) Submit form using return button
3) A validator (e.g. required/min/max) must have failed immediately before

Best regards,
Jacob

T5.3.3

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



RE: [5.3] JSONArray Error while submitting forms

2012-06-11 Thread Poder, Jacob
Thank you for replying, it's much appreciated.

I did upgrade from earlier Tapestry versions as they were released. The code 
that fails was only added after the latest upgrade (5.3.3) so I can't say if it 
would fail on older versions.
I made sure to clear browser cache and I also changed the 
SymbolConstants.APPLICATION_VERSION to ensure a new path for all scripts etc. I 
have tested that this error happens on 3 different PCs, so browser cache is 
really not likely to be the culprit.

I hadn't set the SymbolConstants.MINIFICATION_ENABLED, but changing 
SymbolConstants.PRODUCTION_MODE implicitly changes MINIFICATION_ENABLED 
accordingly and the error happens both in development and production mode. I 
did try both true/false for MINIFICATION_ENABLED afterwards, but same result.

I also tested with "tapestry.compress-whitespace" true/false to see it that 
would make a difference, but no...

Please note that the error only occurs when the form field's validate 
requirement is not met. This causes setSubmittingElement (tapestry.js, line 
1545) to be called with null argument. This again adds a hidden null-value 
named "t:submit" to the form. The exception then happens in isFormCancelled() 
(Form.java, line 590) where the value of "t:submit" is literal "null" in IE 8/9 
and not simply null as in Firefox/Chrome.

Again, if someone could try out the simple Tapestry page below in 5.3.3 and IE 
8/9, I would love to hear the result?

Best regards,
Jacob

-Original Message-
From: Muhammad Gelbana [mailto:m.gelb...@gmail.com] 
Sent: Monday, June 11, 2012 5:22 PM
To: Tapestry users
Subject: Re: [5.3] JSONArray Error while submitting forms

How did this start happening ? Did you just modify the class path from pointing 
to an older tapestry version to a newer one ?

Please state your app configuration. Things like:
*SymbolConstants.MINIFICATION_ENABLED*


On Mon, Jun 11, 2012 at 9:43 AM, Poder, Jacob
wrote:

> Hi,
>
> I'm having the problem described here:
> https://issues.apache.org/jira/browse/TAP5-1777
>
> The issue has been closed as not a problem, but I'm still getting this 
> error even though I cleared browser cache as suggested. The error 
> happens in IE8 and IE9 but not in Firefox or Chrome.
> For me It's easily reproducible, so would someone please try below 
> Tapestry page example in an IE browser?
>
>
> 1)  Submit the form (using the default value of 0), by pressing enter
>
> 2)  A validation error is shown (validate="min=1")
>
> 3)  Change the value to a positive number, e.g. 10 and resubmit.
>
> The result is an exception "A JSONArray text must start with '[' at 
> character 1 of null".
>
> Thank you,
> Jacob
>
>
> // Test.java
> public class Test {
>
> @Property
> private int rowsPerPage;
> }
>
>
> // Test.tml
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
> 
> Form test
> 
> 
>
> 
>validate="min=1" />
> 
>
> 
> 
>



--
*Regards,*
*Muhammad Gelbana
Java Developer*

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



Re: [5.3] JSONArray Error while submitting forms

2012-06-11 Thread Muhammad Gelbana
How did this start happening ? Did you just modify the class path from
pointing to an older tapestry version to a newer one ?

Please state your app configuration. Things like:
*SymbolConstants.MINIFICATION_ENABLED*


On Mon, Jun 11, 2012 at 9:43 AM, Poder, Jacob
wrote:

> Hi,
>
> I'm having the problem described here:
> https://issues.apache.org/jira/browse/TAP5-1777
>
> The issue has been closed as not a problem, but I'm still getting this
> error even though I cleared browser cache as suggested. The error happens
> in IE8 and IE9 but not in Firefox or Chrome.
> For me It's easily reproducible, so would someone please try below
> Tapestry page example in an IE browser?
>
>
> 1)  Submit the form (using the default value of 0), by pressing enter
>
> 2)  A validation error is shown (validate="min=1")
>
> 3)  Change the value to a positive number, e.g. 10 and resubmit.
>
> The result is an exception "A JSONArray text must start with '[' at
> character 1 of null".
>
> Thank you,
> Jacob
>
>
> // Test.java
> public class Test {
>
> @Property
> private int rowsPerPage;
> }
>
>
> // Test.tml
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
> 
> Form test
> 
> 
>
> 
>validate="min=1" />
> 
>
> 
> 
>



-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: [5.3] JSONArray Error while submitting forms

2012-02-05 Thread Peter Stavrinides
Thanks Michael, much appreciated, as I would never have guessed that! I will 
give it a try.


Peter

- Original Message -

From: "Michael Gentry" 
To: "Tapestry users" 
Sent: Friday, 3 February, 2012 6:31:49 PM
Subject: Re: [5.3] JSONArray Error while submitting forms

Hi Peter,

When you upgrade your T5 version (say, 5.3.1 to 5.3.2), you need to
update your application version, too, because T5 includes your
application version in the asset path, but does NOT include the T5
version, which can lead to confusion.

If your AppModule.java has:

public static void
contributeApplicationDefaults(MappedConfiguration
configuration)
{
...
configuration.add(SymbolConstants.APPLICATION_VERSION, "1.2-SNAPSHOT");
...
}

Change it to be "1.2.1-SNAPSHOT" or "1.3-SNAPSHOT" and your asset
paths should change and the browser should fetch a fresh copy.

mrg


On Fri, Feb 3, 2012 at 9:22 AM, Peter Stavrinides
 wrote:
> We are seeing this error too in production, not sure how to solve it though, 
> clearing the cache is only a solution in development.
>
>
> Cheers,
> Peter
>
> - Original Message -
>
> From: "Muhammad Gelbana" 
> To: "Tapestry users" 
> Sent: Tuesday, 10 January, 2012 9:11:23 PM
> Subject: Re: [5.3] JSONArray Error while submitting forms
>
> When I had this problem, clearing the cache didn't solve it. I had move all
> my classes\tml\resources manually from my old tapestry project to a new
> tapestry 5.3.1 skeleton project.
>
> On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak wrote:
>
>> I think clearing the cache is not the full answer to this problem.
>> There aught to be a better answer. Perhaps versioning the formdata element?
>>
>>
>> On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp 
>> wrote:
>>
>> > I have already answered to this.
>> >
>> > The clearing of the cache seems to have solved my problem as well.
>> >
>> > 2012/1/10 Muhammad Gelbana 
>> >
>> >> Shouldn't Gunnar decide first if the issue should be closed or not ? 
>> >>
>> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner 
>> wrote:
>> >>
>> >>> Is anyone still seeing this problem after clearing the browser cache?
>> >>> If not, we'll be able to close TAP5-1777.
>> >>>
>> >>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
>> >>> wrote:
>> >>>> Hi Josh (and others),
>> >>>>
>> >>>> I was using Chrome and then tried my app in Safari and it worked in
>> >>>> Safari. I then cleared my Chrome cache and it started working in
>> >>>> Chrome, too. I suspect some JS was being cached somewhere that was 
>> >>>> making things incompatible. Hope that helps others, too.
>> >>>>
>> >>>> Thanks,
>> >>>>
>> >>>> mrg
>> >>>>
>> >>>>
>> >>>> On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry > >
>> >>> wrote:
>> >>>>> Hi Josh,
>> >>>>>
>> >>>>> Better late than never? :-)
>> >>>>>
>> >>>>> Here is with 5.3.1, which still didn't help:
>> >>>>>
>> >>>>>
>> >>>
>> >>
>> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>> >>>>> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
>> >>>>>
>> >>>
>> >>
>> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
>> >>>>>
>> >>>
>> >>
>> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
>> >>>>> t:submit:submitNext
>> >>>>> jumpToPage:
>> >>>>> radiogroup:USM
>> >>>>> submitNext:Continue >
>> >>>>> Response Headersview source
>> >>>>>
>> >>>>> The t:form is defined as:
>> >>>>>
>> >>>>> 
>> >>>>>
>> >>>>> The t:submit is defined as:
>> >>>>>
>> >>>>> > >>>>> value="Continue >" tabindex="100" />
>> &

Re: [5.3] JSONArray Error while submitting forms

2012-02-03 Thread Michael Gentry
Hi Peter,

When you upgrade your T5 version (say, 5.3.1 to 5.3.2), you need to
update your application version, too, because T5 includes your
application version in the asset path, but does NOT include the T5
version, which can lead to confusion.

If your AppModule.java has:

public static void
contributeApplicationDefaults(MappedConfiguration
configuration)
{
...
configuration.add(SymbolConstants.APPLICATION_VERSION, "1.2-SNAPSHOT");
...
}

Change it to be "1.2.1-SNAPSHOT" or "1.3-SNAPSHOT" and your asset
paths should change and the browser should fetch a fresh copy.

mrg


On Fri, Feb 3, 2012 at 9:22 AM, Peter Stavrinides
 wrote:
> We are seeing this error too in production, not sure how to solve it though, 
> clearing the cache is only a solution in development.
>
>
> Cheers,
> Peter
>
> - Original Message -
>
> From: "Muhammad Gelbana" 
> To: "Tapestry users" 
> Sent: Tuesday, 10 January, 2012 9:11:23 PM
> Subject: Re: [5.3] JSONArray Error while submitting forms
>
> When I had this problem, clearing the cache didn't solve it. I had move all
> my classes\tml\resources manually from my old tapestry project to a new
> tapestry 5.3.1 skeleton project.
>
> On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak wrote:
>
>> I think clearing the cache is not the full answer to this problem.
>> There aught to be a better answer. Perhaps versioning the formdata element?
>>
>>
>> On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp 
>> wrote:
>>
>> > I have already answered to this.
>> >
>> > The clearing of the cache seems to have solved my problem as well.
>> >
>> > 2012/1/10 Muhammad Gelbana 
>> >
>> >> Shouldn't Gunnar decide first if the issue should be closed or not ?
>> >>
>> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner 
>> wrote:
>> >>
>> >>> Is anyone still seeing this problem after clearing the browser cache?
>> >>> If not, we'll be able to close TAP5-1777.
>> >>>
>> >>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
>> >>> wrote:
>> >>>> Hi Josh (and others),
>> >>>>
>> >>>> I was using Chrome and then tried my app in Safari and it worked in
>> >>>> Safari. I then cleared my Chrome cache and it started working in
>> >>>> Chrome, too. I suspect some JS was being cached somewhere that was
>> >>>> making things incompatible. Hope that helps others, too.
>> >>>>
>> >>>> Thanks,
>> >>>>
>> >>>> mrg
>> >>>>
>> >>>>
>> >>>> On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry > >
>> >>> wrote:
>> >>>>> Hi Josh,
>> >>>>>
>> >>>>> Better late than never? :-)
>> >>>>>
>> >>>>> Here is with 5.3.1, which still didn't help:
>> >>>>>
>> >>>>>
>> >>>
>> >>
>> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>> >>>>> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
>> >>>>>
>> >>>
>> >>
>> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
>> >>>>>
>> >>>
>> >>
>> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
>> >>>>> t:submit:submitNext
>> >>>>> jumpToPage:
>> >>>>> radiogroup:USM
>> >>>>> submitNext:Continue >
>> >>>>> Response Headersview source
>> >>>>>
>> >>>>> The t:form is defined as:
>> >>>>>
>> >>>>> 
>> >>>>>
>> >>>>> The t:submit is defined as:
>> >>>>>
>> >>>>> > >>>>> value="Continue >" tabindex="100" />
>> >>>>>
>> >>>>> Thanks,
>> >>>>>
>> >>>>> mrg
>> >>>>>
>> >>>>>
>> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <
>> joshcanfi...@gma

Re: [5.3] JSONArray Error while submitting forms

2012-02-03 Thread Peter Stavrinides
We are seeing this error too in production, not sure how to solve it though, 
clearing the cache is only a solution in development.


Cheers,
Peter

- Original Message -

From: "Muhammad Gelbana" 
To: "Tapestry users" 
Sent: Tuesday, 10 January, 2012 9:11:23 PM
Subject: Re: [5.3] JSONArray Error while submitting forms

When I had this problem, clearing the cache didn't solve it. I had move all
my classes\tml\resources manually from my old tapestry project to a new
tapestry 5.3.1 skeleton project.

On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak wrote:

> I think clearing the cache is not the full answer to this problem.
> There aught to be a better answer. Perhaps versioning the formdata element?
>
>
> On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp 
> wrote:
>
> > I have already answered to this.
> >
> > The clearing of the cache seems to have solved my problem as well.
> >
> > 2012/1/10 Muhammad Gelbana 
> >
> >> Shouldn't Gunnar decide first if the issue should be closed or not ?
> >>
> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner 
> wrote:
> >>
> >>> Is anyone still seeing this problem after clearing the browser cache?
> >>> If not, we'll be able to close TAP5-1777.
> >>>
> >>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
> >>> wrote:
> >>>> Hi Josh (and others),
> >>>>
> >>>> I was using Chrome and then tried my app in Safari and it worked in 
> >>>> Safari. I then cleared my Chrome cache and it started working in
> >>>> Chrome, too. I suspect some JS was being cached somewhere that was
> >>>> making things incompatible. Hope that helps others, too.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> mrg
> >>>>
> >>>>
> >>>> On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry  >
> >>> wrote:
> >>>>> Hi Josh,
> >>>>>
> >>>>> Better late than never? :-)
> >>>>>
> >>>>> Here is with 5.3.1, which still didn't help:
> >>>>>
> >>>>>
> >>>
> >>
> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> >>>>> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> >>>>>
> >>>
> >>
> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> >>>>>
> >>>
> >>
> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> >>>>> t:submit:submitNext
> >>>>> jumpToPage:
> >>>>> radiogroup:USM
> >>>>> submitNext:Continue >
> >>>>> Response Headersview source
> >>>>>
> >>>>> The t:form is defined as:
> >>>>>
> >>>>> 
> >>>>>
> >>>>> The t:submit is defined as:
> >>>>>
> >>>>>  >>>>> value="Continue >" tabindex="100" />
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> mrg
> >>>>>
> >>>>>
> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <
> joshcanfi...@gmail.com
> >>>
> >>> wrote:
> >>>>>> A copy of the request would be helpful. It seems like in the first
> >>>>>> report the "t:submit" parameter was coming back as a quoted string,
> >>>>>> but later reports seem to have it fixed by checking if it's empty.
> >>>>>>
> >>>>>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
> >>>>>>  wrote:
> >>>>>>> I have no idea! For sure there must be something special with your
> >>> case, my
> >>>>>>> case and Seamus case.
> >>>>>>>
> >>>>>>> Or perhaps we are the only one using form's :-)
> >>>>>>>
> >>>>>>> My browser is Chrome ...
> >>>>>>>
> >>>>>>> I have coded around the problem for now by using my own 5.3.1 as 
> >>> reported
> >>>>>>

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Muhammad Gelbana
When I had this problem, clearing the cache didn't solve it. I had move all
my classes\tml\resources manually from my old tapestry project to a new
tapestry 5.3.1 skeleton project.

On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak wrote:

> I think clearing the cache is not the full answer to this problem.
> There aught to be a better answer. Perhaps versioning the formdata element?
>
>
> On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp 
> wrote:
>
> > I have already answered to this.
> >
> > The clearing of the cache seems to have solved my problem as well.
> >
> > 2012/1/10 Muhammad Gelbana 
> >
> >> Shouldn't Gunnar decide first if the issue should be closed or not ?
> >>
> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner 
> wrote:
> >>
> >>> Is anyone still seeing this problem after clearing the browser cache?
> >>> If not, we'll be able to close TAP5-1777.
> >>>
> >>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
> >>> wrote:
>  Hi Josh (and others),
> 
>  I was using Chrome and then tried my app in Safari and it worked in
>  Safari.  I then cleared my Chrome cache and it started working in
>  Chrome, too.  I suspect some JS was being cached somewhere that was
>  making things incompatible.  Hope that helps others, too.
> 
>  Thanks,
> 
>  mrg
> 
> 
>  On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry  >
> >>> wrote:
> > Hi Josh,
> >
> > Better late than never?  :-)
> >
> > Here is with 5.3.1, which still didn't help:
> >
> >
> >>>
> >>
> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> > 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> >
> >>>
> >>
> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> >
> >>>
> >>
> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> > t:submit:submitNext
> > jumpToPage:
> > radiogroup:USM
> > submitNext:Continue >
> > Response Headersview source
> >
> > The t:form is defined as:
> >
> > 
> >
> > The t:submit is defined as:
> >
> >  > value="Continue >" tabindex="100" />
> >
> > Thanks,
> >
> > mrg
> >
> >
> > On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <
> joshcanfi...@gmail.com
> >>>
> >>> wrote:
> >> A copy of the request would be helpful. It seems like in the first
> >> report the "t:submit" parameter was coming back as a quoted string,
> >> but later reports seem to have it fixed by checking if it's empty.
> >>
> >> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
> >>  wrote:
> >>> I have no idea! For sure there must be something special with your
> >>> case, my
> >>> case and Seamus case.
> >>>
> >>> Or perhaps we are the only one using form's :-)
> >>>
> >>> My browser is Chrome ...
> >>>
> >>> I have coded around the problem for now by using my own 5.3.1 as
> >>> reported
> >>> above.
> >>>
> >>>
> >>> 2011/12/7 Muhammad Gelbana 
> >>>
>  But how come this issue isn't causing enough noise !!! We must
> have
>  something common in our code that is very unique !!!
>  I can't figure out what could be unique in my login page !!..2
> >> fields
>  form...1 submit button...1 event handling method !
> 
>  On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
>  wrote:
> 
> > I just created an issue for this
> > https://issues.apache.org/jira/browse/TAP5-1777
> >
> > I would love to see a fix for this otherwise I must go into
> >>> production
>  with
> > my own brewed 5.3.1
> > or revert to 5.2.6.
> >
> > Thanks in advance,
> > Gunnar Eketrapp
> >
> > 2011/12/7 Muhammad Gelbana 
> >
> >> Facing the same issue !! I didn't expect that to happen and it
> >>> will
>  take
> >> sometime to revert back to 5.2.6 :(
> >>
> >> I cleared my browser's cache and made sure I'm using tapestry's
> >>> latest
> >> css\js...still having the same problem with a form that has
> >>> nothing to
>  do
> >> ajax !
> >>
> >> On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> >> wrote:
> >>
> >>> if (raw != null && *!raw.isEmpty() &&*
> >>>   new *JSONArray(raw)*.getString(1).equals
> >>>
> >>> This seems to have solved the problem.
> >>>
> >>> I made this fix in *Form.java, Submit.java* and
> >>> *LinkSubmit.java*.
> > Built
> >>> and installed my own 5.3.1 in my local maven repo.
> >>>
> >>> Rebuilt my project and now 

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Lenny Primak
I think clearing the cache is not the full answer to this problem.
There aught to be a better answer. Perhaps versioning the formdata element?


On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp  wrote:

> I have already answered to this.
> 
> The clearing of the cache seems to have solved my problem as well.
> 
> 2012/1/10 Muhammad Gelbana 
> 
>> Shouldn't Gunnar decide first if the issue should be closed or not ?
>> 
>> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner  wrote:
>> 
>>> Is anyone still seeing this problem after clearing the browser cache?
>>> If not, we'll be able to close TAP5-1777.
>>> 
>>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
>>> wrote:
 Hi Josh (and others),
 
 I was using Chrome and then tried my app in Safari and it worked in
 Safari.  I then cleared my Chrome cache and it started working in
 Chrome, too.  I suspect some JS was being cached somewhere that was
 making things incompatible.  Hope that helps others, too.
 
 Thanks,
 
 mrg
 
 
 On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry 
>>> wrote:
> Hi Josh,
> 
> Better late than never?  :-)
> 
> Here is with 5.3.1, which still didn't help:
> 
> 
>>> 
>> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> 
>>> 
>> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> 
>>> 
>> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> t:submit:submitNext
> jumpToPage:
> radiogroup:USM
> submitNext:Continue >
> Response Headersview source
> 
> The t:form is defined as:
> 
> 
> 
> The t:submit is defined as:
> 
>  value="Continue >" tabindex="100" />
> 
> Thanks,
> 
> mrg
> 
> 
> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield >> 
>>> wrote:
>> A copy of the request would be helpful. It seems like in the first
>> report the "t:submit" parameter was coming back as a quoted string,
>> but later reports seem to have it fixed by checking if it's empty.
>> 
>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
>>  wrote:
>>> I have no idea! For sure there must be something special with your
>>> case, my
>>> case and Seamus case.
>>> 
>>> Or perhaps we are the only one using form's :-)
>>> 
>>> My browser is Chrome ...
>>> 
>>> I have coded around the problem for now by using my own 5.3.1 as
>>> reported
>>> above.
>>> 
>>> 
>>> 2011/12/7 Muhammad Gelbana 
>>> 
 But how come this issue isn't causing enough noise !!! We must have
 something common in our code that is very unique !!!
 I can't figure out what could be unique in my login page !!..2
>> fields
 form...1 submit button...1 event handling method !
 
 On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
 wrote:
 
> I just created an issue for this
> https://issues.apache.org/jira/browse/TAP5-1777
> 
> I would love to see a fix for this otherwise I must go into
>>> production
 with
> my own brewed 5.3.1
> or revert to 5.2.6.
> 
> Thanks in advance,
> Gunnar Eketrapp
> 
> 2011/12/7 Muhammad Gelbana 
> 
>> Facing the same issue !! I didn't expect that to happen and it
>>> will
 take
>> sometime to revert back to 5.2.6 :(
>> 
>> I cleared my browser's cache and made sure I'm using tapestry's
>>> latest
>> css\js...still having the same problem with a form that has
>>> nothing to
 do
>> ajax !
>> 
>> On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
>> wrote:
>> 
>>> if (raw != null && *!raw.isEmpty() &&*
>>>   new *JSONArray(raw)*.getString(1).equals
>>> 
>>> This seems to have solved the problem.
>>> 
>>> I made this fix in *Form.java, Submit.java* and
>>> *LinkSubmit.java*.
> Built
>>> and installed my own 5.3.1 in my local maven repo.
>>> 
>>> Rebuilt my project and now I can login and run the app again.
>>> 
>>> It has been been very quiet in this thread ...
>>> 
>>> Can anyone (that understands web development) give a comment
>>> ...
 please
>> ...
>>> 
>>> Thanks in advance,
>>> Gunnar Eketrapp
>>> 
>>> 
>>> 
>>> 2011/12/6 Gunnar Eketrapp 
>>> 
 A possible solution would be to make a code around in the
>>> method
 isFormCancelled() in Form

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Gunnar Eketrapp
I have already answered to this.

The clearing of the cache seems to have solved my problem as well.

2012/1/10 Muhammad Gelbana 

> Shouldn't Gunnar decide first if the issue should be closed or not ?
>
> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner  wrote:
>
> > Is anyone still seeing this problem after clearing the browser cache?
> > If not, we'll be able to close TAP5-1777.
> >
> > On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
> > wrote:
> > > Hi Josh (and others),
> > >
> > > I was using Chrome and then tried my app in Safari and it worked in
> > > Safari.  I then cleared my Chrome cache and it started working in
> > > Chrome, too.  I suspect some JS was being cached somewhere that was
> > > making things incompatible.  Hope that helps others, too.
> > >
> > > Thanks,
> > >
> > > mrg
> > >
> > >
> > > On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry 
> > wrote:
> > >> Hi Josh,
> > >>
> > >> Better late than never?  :-)
> > >>
> > >> Here is with 5.3.1, which still didn't help:
> > >>
> > >>
> >
> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> > >> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> > >>
> >
> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> > >>
> >
> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> > >> t:submit:submitNext
> > >> jumpToPage:
> > >> radiogroup:USM
> > >> submitNext:Continue >
> > >> Response Headersview source
> > >>
> > >> The t:form is defined as:
> > >>
> > >> 
> > >>
> > >> The t:submit is defined as:
> > >>
> > >>  > >> value="Continue >" tabindex="100" />
> > >>
> > >> Thanks,
> > >>
> > >> mrg
> > >>
> > >>
> > >> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield  >
> > wrote:
> > >>> A copy of the request would be helpful. It seems like in the first
> > >>> report the "t:submit" parameter was coming back as a quoted string,
> > >>> but later reports seem to have it fixed by checking if it's empty.
> > >>>
> > >>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
> > >>>  wrote:
> >  I have no idea! For sure there must be something special with your
> > case, my
> >  case and Seamus case.
> > 
> >  Or perhaps we are the only one using form's :-)
> > 
> >  My browser is Chrome ...
> > 
> >  I have coded around the problem for now by using my own 5.3.1 as
> > reported
> >  above.
> > 
> > 
> >  2011/12/7 Muhammad Gelbana 
> > 
> > > But how come this issue isn't causing enough noise !!! We must have
> > > something common in our code that is very unique !!!
> > > I can't figure out what could be unique in my login page !!..2
> fields
> > > form...1 submit button...1 event handling method !
> > >
> > > On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
> > > wrote:
> > >
> > > > I just created an issue for this
> > > > https://issues.apache.org/jira/browse/TAP5-1777
> > > >
> > > > I would love to see a fix for this otherwise I must go into
> > production
> > > with
> > > > my own brewed 5.3.1
> > > > or revert to 5.2.6.
> > > >
> > > > Thanks in advance,
> > > > Gunnar Eketrapp
> > > >
> > > > 2011/12/7 Muhammad Gelbana 
> > > >
> > > > > Facing the same issue !! I didn't expect that to happen and it
> > will
> > > take
> > > > > sometime to revert back to 5.2.6 :(
> > > > >
> > > > > I cleared my browser's cache and made sure I'm using tapestry's
> > latest
> > > > > css\js...still having the same problem with a form that has
> > nothing to
> > > do
> > > > > ajax !
> > > > >
> > > > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> > > > > wrote:
> > > > >
> > > > > > if (raw != null && *!raw.isEmpty() &&*
> > > > > >new *JSONArray(raw)*.getString(1).equals
> > > > > >
> > > > > > This seems to have solved the problem.
> > > > > >
> > > > > > I made this fix in *Form.java, Submit.java* and
> > *LinkSubmit.java*.
> > > > Built
> > > > > > and installed my own 5.3.1 in my local maven repo.
> > > > > >
> > > > > > Rebuilt my project and now I can login and run the app again.
> > > > > >
> > > > > > It has been been very quiet in this thread ...
> > > > > >
> > > > > > Can anyone (that understands web development) give a comment
> > ...
> > > please
> > > > > ...
> > > > > >
> > > > > > Thanks in advance,
> > > > > > Gunnar Eketrapp
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2011/12/6 Gunnar Eketrapp 
> > > > > >
> > > > > > > A possible solution would be to make a code around in the
> > method
> > > > > > > isFormCancelled() in Form.java.
> > > > > > >
> > > > > > > 

Re: [5.3] JSONArray Error while submitting forms

2012-01-09 Thread Muhammad Gelbana
Shouldn't Gunnar decide first if the issue should be closed or not ?

On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner  wrote:

> Is anyone still seeing this problem after clearing the browser cache?
> If not, we'll be able to close TAP5-1777.
>
> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry 
> wrote:
> > Hi Josh (and others),
> >
> > I was using Chrome and then tried my app in Safari and it worked in
> > Safari.  I then cleared my Chrome cache and it started working in
> > Chrome, too.  I suspect some JS was being cached somewhere that was
> > making things incompatible.  Hope that helps others, too.
> >
> > Thanks,
> >
> > mrg
> >
> >
> > On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry 
> wrote:
> >> Hi Josh,
> >>
> >> Better late than never?  :-)
> >>
> >> Here is with 5.3.1, which still didn't help:
> >>
> >>
> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> >> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> >>
> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> >>
> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> >> t:submit:submitNext
> >> jumpToPage:
> >> radiogroup:USM
> >> submitNext:Continue >
> >> Response Headersview source
> >>
> >> The t:form is defined as:
> >>
> >> 
> >>
> >> The t:submit is defined as:
> >>
> >>  >> value="Continue >" tabindex="100" />
> >>
> >> Thanks,
> >>
> >> mrg
> >>
> >>
> >> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield 
> wrote:
> >>> A copy of the request would be helpful. It seems like in the first
> >>> report the "t:submit" parameter was coming back as a quoted string,
> >>> but later reports seem to have it fixed by checking if it's empty.
> >>>
> >>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
> >>>  wrote:
>  I have no idea! For sure there must be something special with your
> case, my
>  case and Seamus case.
> 
>  Or perhaps we are the only one using form's :-)
> 
>  My browser is Chrome ...
> 
>  I have coded around the problem for now by using my own 5.3.1 as
> reported
>  above.
> 
> 
>  2011/12/7 Muhammad Gelbana 
> 
> > But how come this issue isn't causing enough noise !!! We must have
> > something common in our code that is very unique !!!
> > I can't figure out what could be unique in my login page !!..2 fields
> > form...1 submit button...1 event handling method !
> >
> > On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
> > wrote:
> >
> > > I just created an issue for this
> > > https://issues.apache.org/jira/browse/TAP5-1777
> > >
> > > I would love to see a fix for this otherwise I must go into
> production
> > with
> > > my own brewed 5.3.1
> > > or revert to 5.2.6.
> > >
> > > Thanks in advance,
> > > Gunnar Eketrapp
> > >
> > > 2011/12/7 Muhammad Gelbana 
> > >
> > > > Facing the same issue !! I didn't expect that to happen and it
> will
> > take
> > > > sometime to revert back to 5.2.6 :(
> > > >
> > > > I cleared my browser's cache and made sure I'm using tapestry's
> latest
> > > > css\js...still having the same problem with a form that has
> nothing to
> > do
> > > > ajax !
> > > >
> > > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> > > > wrote:
> > > >
> > > > > if (raw != null && *!raw.isEmpty() &&*
> > > > >new *JSONArray(raw)*.getString(1).equals
> > > > >
> > > > > This seems to have solved the problem.
> > > > >
> > > > > I made this fix in *Form.java, Submit.java* and
> *LinkSubmit.java*.
> > > Built
> > > > > and installed my own 5.3.1 in my local maven repo.
> > > > >
> > > > > Rebuilt my project and now I can login and run the app again.
> > > > >
> > > > > It has been been very quiet in this thread ...
> > > > >
> > > > > Can anyone (that understands web development) give a comment
> ...
> > please
> > > > ...
> > > > >
> > > > > Thanks in advance,
> > > > > Gunnar Eketrapp
> > > > >
> > > > >
> > > > >
> > > > > 2011/12/6 Gunnar Eketrapp 
> > > > >
> > > > > > A possible solution would be to make a code around in the
> method
> > > > > > isFormCancelled() in Form.java.
> > > > > >
> > > > > > /Gunnar
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >   if (raw != null &&
> > > > > > new *JSONArray(raw)*
> > > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > > > {
> > > > > > return true;
> > > > > > }
> > > > > > 
> > > > > >
> > > > > >
> > > > > >   if

Re: [5.3] JSONArray Error while submitting forms

2012-01-09 Thread Bob Harner
Is anyone still seeing this problem after clearing the browser cache?
If not, we'll be able to close TAP5-1777.

On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry  wrote:
> Hi Josh (and others),
>
> I was using Chrome and then tried my app in Safari and it worked in
> Safari.  I then cleared my Chrome cache and it started working in
> Chrome, too.  I suspect some JS was being cached somewhere that was
> making things incompatible.  Hope that helps others, too.
>
> Thanks,
>
> mrg
>
>
> On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry  wrote:
>> Hi Josh,
>>
>> Better late than never?  :-)
>>
>> Here is with 5.3.1, which still didn't help:
>>
>> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
>> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
>> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
>> t:submit:submitNext
>> jumpToPage:
>> radiogroup:USM
>> submitNext:Continue >
>> Response Headersview source
>>
>> The t:form is defined as:
>>
>> 
>>
>> The t:submit is defined as:
>>
>> > value="Continue >" tabindex="100" />
>>
>> Thanks,
>>
>> mrg
>>
>>
>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield  wrote:
>>> A copy of the request would be helpful. It seems like in the first
>>> report the "t:submit" parameter was coming back as a quoted string,
>>> but later reports seem to have it fixed by checking if it's empty.
>>>
>>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
>>>  wrote:
 I have no idea! For sure there must be something special with your case, my
 case and Seamus case.

 Or perhaps we are the only one using form's :-)

 My browser is Chrome ...

 I have coded around the problem for now by using my own 5.3.1 as reported
 above.


 2011/12/7 Muhammad Gelbana 

> But how come this issue isn't causing enough noise !!! We must have
> something common in our code that is very unique !!!
> I can't figure out what could be unique in my login page !!..2 fields
> form...1 submit button...1 event handling method !
>
> On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
> wrote:
>
> > I just created an issue for this
> > https://issues.apache.org/jira/browse/TAP5-1777
> >
> > I would love to see a fix for this otherwise I must go into production
> with
> > my own brewed 5.3.1
> > or revert to 5.2.6.
> >
> > Thanks in advance,
> > Gunnar Eketrapp
> >
> > 2011/12/7 Muhammad Gelbana 
> >
> > > Facing the same issue !! I didn't expect that to happen and it will
> take
> > > sometime to revert back to 5.2.6 :(
> > >
> > > I cleared my browser's cache and made sure I'm using tapestry's latest
> > > css\js...still having the same problem with a form that has nothing to
> do
> > > ajax !
> > >
> > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> > > wrote:
> > >
> > > > if (raw != null && *!raw.isEmpty() &&*
> > > >                new *JSONArray(raw)*.getString(1).equals
> > > >
> > > > This seems to have solved the problem.
> > > >
> > > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
> > Built
> > > > and installed my own 5.3.1 in my local maven repo.
> > > >
> > > > Rebuilt my project and now I can login and run the app again.
> > > >
> > > > It has been been very quiet in this thread ...
> > > >
> > > > Can anyone (that understands web development) give a comment ...
> please
> > > ...
> > > >
> > > > Thanks in advance,
> > > > Gunnar Eketrapp
> > > >
> > > >
> > > >
> > > > 2011/12/6 Gunnar Eketrapp 
> > > >
> > > > > A possible solution would be to make a code around in the method
> > > > > isFormCancelled() in Form.java.
> > > > >
> > > > > /Gunnar
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >   if (raw != null &&
> > > > >                 new *JSONArray(raw)*
> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > >         {
> > > > >             return true;
> > > > >         }
> > > > > 
> > > > >
> > > > >
> > > > >   if (raw != null && *!raw.isEmpty() &&*
> > > > >                 new *JSONArray(raw)*
> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > >         {
> > > > >             return true;
> > > > >         }
> > > > >
> > > > >
> > > > >
> > > > > 2011/12/6 Seamus 
> > > > >
> > > > >> Anyone have a solution to this. I have a form which I dont 
> > > > >> believe
> > is

Re: [5.3] JSONArray Error while submitting forms

2012-01-09 Thread Michael Gentry
Hi Josh (and others),

I was using Chrome and then tried my app in Safari and it worked in
Safari.  I then cleared my Chrome cache and it started working in
Chrome, too.  I suspect some JS was being cached somewhere that was
making things incompatible.  Hope that helps others, too.

Thanks,

mrg


On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry  wrote:
> Hi Josh,
>
> Better late than never?  :-)
>
> Here is with 5.3.1, which still didn't help:
>
> t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
> Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
> j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
> t:submit:submitNext
> jumpToPage:
> radiogroup:USM
> submitNext:Continue >
> Response Headersview source
>
> The t:form is defined as:
>
> 
>
> The t:submit is defined as:
>
>  value="Continue >" tabindex="100" />
>
> Thanks,
>
> mrg
>
>
> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield  wrote:
>> A copy of the request would be helpful. It seems like in the first
>> report the "t:submit" parameter was coming back as a quoted string,
>> but later reports seem to have it fixed by checking if it's empty.
>>
>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
>>  wrote:
>>> I have no idea! For sure there must be something special with your case, my
>>> case and Seamus case.
>>>
>>> Or perhaps we are the only one using form's :-)
>>>
>>> My browser is Chrome ...
>>>
>>> I have coded around the problem for now by using my own 5.3.1 as reported
>>> above.
>>>
>>>
>>> 2011/12/7 Muhammad Gelbana 
>>>
 But how come this issue isn't causing enough noise !!! We must have
 something common in our code that is very unique !!!
 I can't figure out what could be unique in my login page !!..2 fields
 form...1 submit button...1 event handling method !

 On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
 wrote:

 > I just created an issue for this
 > https://issues.apache.org/jira/browse/TAP5-1777
 >
 > I would love to see a fix for this otherwise I must go into production
 with
 > my own brewed 5.3.1
 > or revert to 5.2.6.
 >
 > Thanks in advance,
 > Gunnar Eketrapp
 >
 > 2011/12/7 Muhammad Gelbana 
 >
 > > Facing the same issue !! I didn't expect that to happen and it will
 take
 > > sometime to revert back to 5.2.6 :(
 > >
 > > I cleared my browser's cache and made sure I'm using tapestry's latest
 > > css\js...still having the same problem with a form that has nothing to
 do
 > > ajax !
 > >
 > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
 > > wrote:
 > >
 > > > if (raw != null && *!raw.isEmpty() &&*
 > > >                new *JSONArray(raw)*.getString(1).equals
 > > >
 > > > This seems to have solved the problem.
 > > >
 > > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
 > Built
 > > > and installed my own 5.3.1 in my local maven repo.
 > > >
 > > > Rebuilt my project and now I can login and run the app again.
 > > >
 > > > It has been been very quiet in this thread ...
 > > >
 > > > Can anyone (that understands web development) give a comment ...
 please
 > > ...
 > > >
 > > > Thanks in advance,
 > > > Gunnar Eketrapp
 > > >
 > > >
 > > >
 > > > 2011/12/6 Gunnar Eketrapp 
 > > >
 > > > > A possible solution would be to make a code around in the method
 > > > > isFormCancelled() in Form.java.
 > > > >
 > > > > /Gunnar
 > > > >
 > > > >
 > > > >
 > > > >
 > > > >
 > > > >   if (raw != null &&
 > > > >                 new *JSONArray(raw)*
 > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
 > > > >         {
 > > > >             return true;
 > > > >         }
 > > > > 
 > > > >
 > > > >
 > > > >   if (raw != null && *!raw.isEmpty() &&*
 > > > >                 new *JSONArray(raw)*
 > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
 > > > >         {
 > > > >             return true;
 > > > >         }
 > > > >
 > > > >
 > > > >
 > > > > 2011/12/6 Seamus 
 > > > >
 > > > >> Anyone have a solution to this. I have a form which I dont believe
 > is
 > > > >> making
 > > > >> use of any ajax (unless tapestry is and I dont know about it I am
 > > using
 > > > >> the
 > > > >> current T5.3 release) and I get this error. When inspecting my
 page
 > in
 > > > >> chrome and looking at the resources I see prototype 1.7 and
 > > > scriptaculous
 > > > >>

Re: [5.3] JSONArray Error while submitting forms

2012-01-09 Thread Michael Gentry
Hi Josh,

Better late than never?  :-)

Here is with 5.3.1, which still didn't help:

t:formdata:H4sIAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO
Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN
j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA==
t:submit:submitNext
jumpToPage:
radiogroup:USM
submitNext:Continue >
Response Headersview source

The t:form is defined as:



The t:submit is defined as:



Thanks,

mrg


On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield  wrote:
> A copy of the request would be helpful. It seems like in the first
> report the "t:submit" parameter was coming back as a quoted string,
> but later reports seem to have it fixed by checking if it's empty.
>
> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
>  wrote:
>> I have no idea! For sure there must be something special with your case, my
>> case and Seamus case.
>>
>> Or perhaps we are the only one using form's :-)
>>
>> My browser is Chrome ...
>>
>> I have coded around the problem for now by using my own 5.3.1 as reported
>> above.
>>
>>
>> 2011/12/7 Muhammad Gelbana 
>>
>>> But how come this issue isn't causing enough noise !!! We must have
>>> something common in our code that is very unique !!!
>>> I can't figure out what could be unique in my login page !!..2 fields
>>> form...1 submit button...1 event handling method !
>>>
>>> On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
>>> wrote:
>>>
>>> > I just created an issue for this
>>> > https://issues.apache.org/jira/browse/TAP5-1777
>>> >
>>> > I would love to see a fix for this otherwise I must go into production
>>> with
>>> > my own brewed 5.3.1
>>> > or revert to 5.2.6.
>>> >
>>> > Thanks in advance,
>>> > Gunnar Eketrapp
>>> >
>>> > 2011/12/7 Muhammad Gelbana 
>>> >
>>> > > Facing the same issue !! I didn't expect that to happen and it will
>>> take
>>> > > sometime to revert back to 5.2.6 :(
>>> > >
>>> > > I cleared my browser's cache and made sure I'm using tapestry's latest
>>> > > css\js...still having the same problem with a form that has nothing to
>>> do
>>> > > ajax !
>>> > >
>>> > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
>>> > > wrote:
>>> > >
>>> > > > if (raw != null && *!raw.isEmpty() &&*
>>> > > >                new *JSONArray(raw)*.getString(1).equals
>>> > > >
>>> > > > This seems to have solved the problem.
>>> > > >
>>> > > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
>>> > Built
>>> > > > and installed my own 5.3.1 in my local maven repo.
>>> > > >
>>> > > > Rebuilt my project and now I can login and run the app again.
>>> > > >
>>> > > > It has been been very quiet in this thread ...
>>> > > >
>>> > > > Can anyone (that understands web development) give a comment ...
>>> please
>>> > > ...
>>> > > >
>>> > > > Thanks in advance,
>>> > > > Gunnar Eketrapp
>>> > > >
>>> > > >
>>> > > >
>>> > > > 2011/12/6 Gunnar Eketrapp 
>>> > > >
>>> > > > > A possible solution would be to make a code around in the method
>>> > > > > isFormCancelled() in Form.java.
>>> > > > >
>>> > > > > /Gunnar
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > >   if (raw != null &&
>>> > > > >                 new *JSONArray(raw)*
>>> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
>>> > > > >         {
>>> > > > >             return true;
>>> > > > >         }
>>> > > > > 
>>> > > > >
>>> > > > >
>>> > > > >   if (raw != null && *!raw.isEmpty() &&*
>>> > > > >                 new *JSONArray(raw)*
>>> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
>>> > > > >         {
>>> > > > >             return true;
>>> > > > >         }
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > > 2011/12/6 Seamus 
>>> > > > >
>>> > > > >> Anyone have a solution to this. I have a form which I dont believe
>>> > is
>>> > > > >> making
>>> > > > >> use of any ajax (unless tapestry is and I dont know about it I am
>>> > > using
>>> > > > >> the
>>> > > > >> current T5.3 release) and I get this error. When inspecting my
>>> page
>>> > in
>>> > > > >> chrome and looking at the resources I see prototype 1.7 and
>>> > > > scriptaculous
>>> > > > >> 1.9.
>>> > > > >>
>>> > > > >> I dont see any other versions loaded for me to try and remove.
>>> > > > >>
>>> > > > >> --
>>> > > > >> View this message in context:
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
>>> > > > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>> > > > >>
>>> > > > >>
>>> > -
>>> > > > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.

Re: [5.3] JSONArray Error while submitting forms

2011-12-25 Thread Muhammad Gelbana
I know this may sound useless but I'm just trying to help. I have tried to
do 3 things but I'm not quite sure which actually made this work for me:

1. I noticed an exception thrown by the javascript compressor whenever I
access the login page so I disabled it
configuration.add(SymbolConstants.MINIFICATION_ENABLED, "false");
It couldn't handle a custom js file I created to abstract some prototype
methods

2. I annotated my login page event methods instead of depending on
annotation on the validate method and method-name convention on the success
method !
Before:
private Object onSuccess() {
return Index.class;
}

@OnEvent(component = "loginForm", value = "validateForm")
private void validate() {

After:
@OnEvent(component = "loginForm", value = EventConstants.SUCCESS)
private Object onSuccess() {
return Index.class;
}

@OnEvent(component = "loginForm", value = EventConstants.VALIDATE)
private void validate() {/*...*/}

3. I made my web.xml the exact as the the one generated by the maven
archetype. Before, I had some context parameters in it related to the app
version, gzip-compression, white space removal...etc. I removed all that.

I believe the main reason for this mess is that we migrated to 5.3 by just
changing the class-path or something. I think we need to download the
archetype for the new version and then move our files "carefully" trying to
care as much as possible for what is set as defaults in the new archetype.

I don't know if I used the term "archetype" correctly but I just mean the
template project downloaded by maven !
I hope this works for someone.

On Wed, Dec 14, 2011 at 4:18 PM, Michael Gentry wrote:

> Hello,
>
> We also had the error appear in Jetty.  Didn't try Tomcat/etc.
> Unfortunately, we've been under a multiple-deploy crunch and didn't
> really have time to explore the issue and went back to 5.2.6 for now.
>
> Thanks,
>
> mrg
>
>
> On Mon, Dec 12, 2011 at 4:21 PM, mart.schneider
>  wrote:
> > I have the same problem with Tapestry 5.3. Strangely, everything works
> fine
> > while running my application in Jetty. I only get the error when running
> > inside Tomcat. It occurs on all of my forms.
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5069614.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: [5.3] JSONArray Error while submitting forms

2011-12-14 Thread Michael Gentry
Hello,

We also had the error appear in Jetty.  Didn't try Tomcat/etc.
Unfortunately, we've been under a multiple-deploy crunch and didn't
really have time to explore the issue and went back to 5.2.6 for now.

Thanks,

mrg


On Mon, Dec 12, 2011 at 4:21 PM, mart.schneider
 wrote:
> I have the same problem with Tapestry 5.3. Strangely, everything works fine
> while running my application in Jetty. I only get the error when running
> inside Tomcat. It occurs on all of my forms.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5069614.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

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



Re: [5.3] JSONArray Error while submitting forms

2011-12-14 Thread Massimo Lusetti
On Mon, Dec 12, 2011 at 10:21 PM, mart.schneider
 wrote:

> I have the same problem with Tapestry 5.3. Strangely, everything works fine
> while running my application in Jetty. I only get the error when running
> inside Tomcat. It occurs on all of my forms.

If you really want this issue to be solved you should attach a test
project to the issue for anyone to try to replicate, that would speed
up the fix I think.

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: [5.3] JSONArray Error while submitting forms

2011-12-12 Thread mart.schneider
I have the same problem with Tapestry 5.3. Strangely, everything works fine
while running my application in Jetty. I only get the error when running
inside Tomcat. It occurs on all of my forms.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5069614.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Josh Canfield
A copy of the request would be helpful. It seems like in the first
report the "t:submit" parameter was coming back as a quoted string,
but later reports seem to have it fixed by checking if it's empty.

On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp
 wrote:
> I have no idea! For sure there must be something special with your case, my
> case and Seamus case.
>
> Or perhaps we are the only one using form's :-)
>
> My browser is Chrome ...
>
> I have coded around the problem for now by using my own 5.3.1 as reported
> above.
>
>
> 2011/12/7 Muhammad Gelbana 
>
>> But how come this issue isn't causing enough noise !!! We must have
>> something common in our code that is very unique !!!
>> I can't figure out what could be unique in my login page !!..2 fields
>> form...1 submit button...1 event handling method !
>>
>> On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
>> wrote:
>>
>> > I just created an issue for this
>> > https://issues.apache.org/jira/browse/TAP5-1777
>> >
>> > I would love to see a fix for this otherwise I must go into production
>> with
>> > my own brewed 5.3.1
>> > or revert to 5.2.6.
>> >
>> > Thanks in advance,
>> > Gunnar Eketrapp
>> >
>> > 2011/12/7 Muhammad Gelbana 
>> >
>> > > Facing the same issue !! I didn't expect that to happen and it will
>> take
>> > > sometime to revert back to 5.2.6 :(
>> > >
>> > > I cleared my browser's cache and made sure I'm using tapestry's latest
>> > > css\js...still having the same problem with a form that has nothing to
>> do
>> > > ajax !
>> > >
>> > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
>> > > wrote:
>> > >
>> > > > if (raw != null && *!raw.isEmpty() &&*
>> > > >                new *JSONArray(raw)*.getString(1).equals
>> > > >
>> > > > This seems to have solved the problem.
>> > > >
>> > > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
>> > Built
>> > > > and installed my own 5.3.1 in my local maven repo.
>> > > >
>> > > > Rebuilt my project and now I can login and run the app again.
>> > > >
>> > > > It has been been very quiet in this thread ...
>> > > >
>> > > > Can anyone (that understands web development) give a comment ...
>> please
>> > > ...
>> > > >
>> > > > Thanks in advance,
>> > > > Gunnar Eketrapp
>> > > >
>> > > >
>> > > >
>> > > > 2011/12/6 Gunnar Eketrapp 
>> > > >
>> > > > > A possible solution would be to make a code around in the method
>> > > > > isFormCancelled() in Form.java.
>> > > > >
>> > > > > /Gunnar
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > >   if (raw != null &&
>> > > > >                 new *JSONArray(raw)*
>> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
>> > > > >         {
>> > > > >             return true;
>> > > > >         }
>> > > > > 
>> > > > >
>> > > > >
>> > > > >   if (raw != null && *!raw.isEmpty() &&*
>> > > > >                 new *JSONArray(raw)*
>> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
>> > > > >         {
>> > > > >             return true;
>> > > > >         }
>> > > > >
>> > > > >
>> > > > >
>> > > > > 2011/12/6 Seamus 
>> > > > >
>> > > > >> Anyone have a solution to this. I have a form which I dont believe
>> > is
>> > > > >> making
>> > > > >> use of any ajax (unless tapestry is and I dont know about it I am
>> > > using
>> > > > >> the
>> > > > >> current T5.3 release) and I get this error. When inspecting my
>> page
>> > in
>> > > > >> chrome and looking at the resources I see prototype 1.7 and
>> > > > scriptaculous
>> > > > >> 1.9.
>> > > > >>
>> > > > >> I dont see any other versions loaded for me to try and remove.
>> > > > >>
>> > > > >> --
>> > > > >> View this message in context:
>> > > > >>
>> > > >
>> > >
>> >
>> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
>> > > > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> > > > >>
>> > > > >>
>> > -
>> > > > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > > > >> For additional commands, e-mail: users-h...@tapestry.apache.org
>> > > > >>
>> > > > >>
>> > > > >
>> > > > >
>> > > > > --
>> > > > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
>> > > > > Allévägen 2A, 132 42 Saltsjö-Boo
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
>> > > > Allévägen 2A, 132 42 Saltsjö-Boo
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > *Regards,*
>> > > *Muhammad Gelbana
>> > > Java Developer*
>> > >
>> >
>> >
>> >
>> > --
>> > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
>> > Allévägen 2A, 132 42 Saltsjö-Boo
>> >
>>
>>
>>
>> --
>> *Regards,*
>> *Muhammad Gelbana
>> Java Developer*
>>
>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo

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

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Seamus Minogue
I too am using chrome... My form is simple, 5 radio buttons and a submit button.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Gunnar Eketrapp
I have no idea! For sure there must be something special with your case, my
case and Seamus case.

Or perhaps we are the only one using form's :-)

My browser is Chrome ...

I have coded around the problem for now by using my own 5.3.1 as reported
above.


2011/12/7 Muhammad Gelbana 

> But how come this issue isn't causing enough noise !!! We must have
> something common in our code that is very unique !!!
> I can't figure out what could be unique in my login page !!..2 fields
> form...1 submit button...1 event handling method !
>
> On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
> wrote:
>
> > I just created an issue for this
> > https://issues.apache.org/jira/browse/TAP5-1777
> >
> > I would love to see a fix for this otherwise I must go into production
> with
> > my own brewed 5.3.1
> > or revert to 5.2.6.
> >
> > Thanks in advance,
> > Gunnar Eketrapp
> >
> > 2011/12/7 Muhammad Gelbana 
> >
> > > Facing the same issue !! I didn't expect that to happen and it will
> take
> > > sometime to revert back to 5.2.6 :(
> > >
> > > I cleared my browser's cache and made sure I'm using tapestry's latest
> > > css\js...still having the same problem with a form that has nothing to
> do
> > > ajax !
> > >
> > > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> > > wrote:
> > >
> > > > if (raw != null && *!raw.isEmpty() &&*
> > > >new *JSONArray(raw)*.getString(1).equals
> > > >
> > > > This seems to have solved the problem.
> > > >
> > > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
> > Built
> > > > and installed my own 5.3.1 in my local maven repo.
> > > >
> > > > Rebuilt my project and now I can login and run the app again.
> > > >
> > > > It has been been very quiet in this thread ...
> > > >
> > > > Can anyone (that understands web development) give a comment ...
> please
> > > ...
> > > >
> > > > Thanks in advance,
> > > > Gunnar Eketrapp
> > > >
> > > >
> > > >
> > > > 2011/12/6 Gunnar Eketrapp 
> > > >
> > > > > A possible solution would be to make a code around in the method
> > > > > isFormCancelled() in Form.java.
> > > > >
> > > > > /Gunnar
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >   if (raw != null &&
> > > > > new *JSONArray(raw)*
> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > > {
> > > > > return true;
> > > > > }
> > > > > 
> > > > >
> > > > >
> > > > >   if (raw != null && *!raw.isEmpty() &&*
> > > > > new *JSONArray(raw)*
> > > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > > {
> > > > > return true;
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > > 2011/12/6 Seamus 
> > > > >
> > > > >> Anyone have a solution to this. I have a form which I dont believe
> > is
> > > > >> making
> > > > >> use of any ajax (unless tapestry is and I dont know about it I am
> > > using
> > > > >> the
> > > > >> current T5.3 release) and I get this error. When inspecting my
> page
> > in
> > > > >> chrome and looking at the resources I see prototype 1.7 and
> > > > scriptaculous
> > > > >> 1.9.
> > > > >>
> > > > >> I dont see any other versions loaded for me to try and remove.
> > > > >>
> > > > >> --
> > > > >> View this message in context:
> > > > >>
> > > >
> > >
> >
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
> > > > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> > > > >>
> > > > >>
> > -
> > > > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > > >> For additional commands, e-mail: users-h...@tapestry.apache.org
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > > > > Allévägen 2A, 132 42 Saltsjö-Boo
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > > > Allévägen 2A, 132 42 Saltsjö-Boo
> > > >
> > >
> > >
> > >
> > > --
> > > *Regards,*
> > > *Muhammad Gelbana
> > > Java Developer*
> > >
> >
> >
> >
> > --
> > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > Allévägen 2A, 132 42 Saltsjö-Boo
> >
>
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Muhammad Gelbana
But how come this issue isn't causing enough noise !!! We must have
something common in our code that is very unique !!!
I can't figure out what could be unique in my login page !!..2 fields
form...1 submit button...1 event handling method !

On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp
wrote:

> I just created an issue for this
> https://issues.apache.org/jira/browse/TAP5-1777
>
> I would love to see a fix for this otherwise I must go into production with
> my own brewed 5.3.1
> or revert to 5.2.6.
>
> Thanks in advance,
> Gunnar Eketrapp
>
> 2011/12/7 Muhammad Gelbana 
>
> > Facing the same issue !! I didn't expect that to happen and it will take
> > sometime to revert back to 5.2.6 :(
> >
> > I cleared my browser's cache and made sure I'm using tapestry's latest
> > css\js...still having the same problem with a form that has nothing to do
> > ajax !
> >
> > On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> > wrote:
> >
> > > if (raw != null && *!raw.isEmpty() &&*
> > >new *JSONArray(raw)*.getString(1).equals
> > >
> > > This seems to have solved the problem.
> > >
> > > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*.
> Built
> > > and installed my own 5.3.1 in my local maven repo.
> > >
> > > Rebuilt my project and now I can login and run the app again.
> > >
> > > It has been been very quiet in this thread ...
> > >
> > > Can anyone (that understands web development) give a comment ... please
> > ...
> > >
> > > Thanks in advance,
> > > Gunnar Eketrapp
> > >
> > >
> > >
> > > 2011/12/6 Gunnar Eketrapp 
> > >
> > > > A possible solution would be to make a code around in the method
> > > > isFormCancelled() in Form.java.
> > > >
> > > > /Gunnar
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >   if (raw != null &&
> > > > new *JSONArray(raw)*
> > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > {
> > > > return true;
> > > > }
> > > > 
> > > >
> > > >
> > > >   if (raw != null && *!raw.isEmpty() &&*
> > > > new *JSONArray(raw)*
> > > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > > {
> > > > return true;
> > > > }
> > > >
> > > >
> > > >
> > > > 2011/12/6 Seamus 
> > > >
> > > >> Anyone have a solution to this. I have a form which I dont believe
> is
> > > >> making
> > > >> use of any ajax (unless tapestry is and I dont know about it I am
> > using
> > > >> the
> > > >> current T5.3 release) and I get this error. When inspecting my page
> in
> > > >> chrome and looking at the resources I see prototype 1.7 and
> > > scriptaculous
> > > >> 1.9.
> > > >>
> > > >> I dont see any other versions loaded for me to try and remove.
> > > >>
> > > >> --
> > > >> View this message in context:
> > > >>
> > >
> >
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
> > > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> > > >>
> > > >>
> -
> > > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > >> For additional commands, e-mail: users-h...@tapestry.apache.org
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > > > Allévägen 2A, 132 42 Saltsjö-Boo
> > > >
> > >
> > >
> > >
> > > --
> > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > > Allévägen 2A, 132 42 Saltsjö-Boo
> > >
> >
> >
> >
> > --
> > *Regards,*
> > *Muhammad Gelbana
> > Java Developer*
> >
>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Gunnar Eketrapp
I just created an issue for this
https://issues.apache.org/jira/browse/TAP5-1777

I would love to see a fix for this otherwise I must go into production with
my own brewed 5.3.1
or revert to 5.2.6.

Thanks in advance,
Gunnar Eketrapp

2011/12/7 Muhammad Gelbana 

> Facing the same issue !! I didn't expect that to happen and it will take
> sometime to revert back to 5.2.6 :(
>
> I cleared my browser's cache and made sure I'm using tapestry's latest
> css\js...still having the same problem with a form that has nothing to do
> ajax !
>
> On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
> wrote:
>
> > if (raw != null && *!raw.isEmpty() &&*
> >new *JSONArray(raw)*.getString(1).equals
> >
> > This seems to have solved the problem.
> >
> > I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*. Built
> > and installed my own 5.3.1 in my local maven repo.
> >
> > Rebuilt my project and now I can login and run the app again.
> >
> > It has been been very quiet in this thread ...
> >
> > Can anyone (that understands web development) give a comment ... please
> ...
> >
> > Thanks in advance,
> > Gunnar Eketrapp
> >
> >
> >
> > 2011/12/6 Gunnar Eketrapp 
> >
> > > A possible solution would be to make a code around in the method
> > > isFormCancelled() in Form.java.
> > >
> > > /Gunnar
> > >
> > >
> > >
> > >
> > >
> > >   if (raw != null &&
> > > new *JSONArray(raw)*
> > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > {
> > > return true;
> > > }
> > > 
> > >
> > >
> > >   if (raw != null && *!raw.isEmpty() &&*
> > > new *JSONArray(raw)*
> > > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > > {
> > > return true;
> > > }
> > >
> > >
> > >
> > > 2011/12/6 Seamus 
> > >
> > >> Anyone have a solution to this. I have a form which I dont believe is
> > >> making
> > >> use of any ajax (unless tapestry is and I dont know about it I am
> using
> > >> the
> > >> current T5.3 release) and I get this error. When inspecting my page in
> > >> chrome and looking at the resources I see prototype 1.7 and
> > scriptaculous
> > >> 1.9.
> > >>
> > >> I dont see any other versions loaded for me to try and remove.
> > >>
> > >> --
> > >> View this message in context:
> > >>
> >
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
> > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > >> For additional commands, e-mail: users-h...@tapestry.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > > Allévägen 2A, 132 42 Saltsjö-Boo
> > >
> >
> >
> >
> > --
> > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > Allévägen 2A, 132 42 Saltsjö-Boo
> >
>
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Muhammad Gelbana
Facing the same issue !! I didn't expect that to happen and it will take
sometime to revert back to 5.2.6 :(

I cleared my browser's cache and made sure I'm using tapestry's latest
css\js...still having the same problem with a form that has nothing to do
ajax !

On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp
wrote:

> if (raw != null && *!raw.isEmpty() &&*
>new *JSONArray(raw)*.getString(1).equals
>
> This seems to have solved the problem.
>
> I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*. Built
> and installed my own 5.3.1 in my local maven repo.
>
> Rebuilt my project and now I can login and run the app again.
>
> It has been been very quiet in this thread ...
>
> Can anyone (that understands web development) give a comment ... please ...
>
> Thanks in advance,
> Gunnar Eketrapp
>
>
>
> 2011/12/6 Gunnar Eketrapp 
>
> > A possible solution would be to make a code around in the method
> > isFormCancelled() in Form.java.
> >
> > /Gunnar
> >
> >
> >
> >
> >
> >   if (raw != null &&
> > new *JSONArray(raw)*
> > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > {
> > return true;
> > }
> > 
> >
> >
> >   if (raw != null && *!raw.isEmpty() &&*
> > new *JSONArray(raw)*
> > .getString(1).equals(InternalConstants.CANCEL_NAME))
> > {
> > return true;
> > }
> >
> >
> >
> > 2011/12/6 Seamus 
> >
> >> Anyone have a solution to this. I have a form which I dont believe is
> >> making
> >> use of any ajax (unless tapestry is and I dont know about it I am using
> >> the
> >> current T5.3 release) and I get this error. When inspecting my page in
> >> chrome and looking at the resources I see prototype 1.7 and
> scriptaculous
> >> 1.9.
> >>
> >> I dont see any other versions loaded for me to try and remove.
> >>
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> > Allévägen 2A, 132 42 Saltsjö-Boo
> >
>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: [5.3] JSONArray Error while submitting forms

2011-12-06 Thread Gunnar Eketrapp
if (raw != null && *!raw.isEmpty() &&*
new *JSONArray(raw)*.getString(1).equals

This seems to have solved the problem.

I made this fix in *Form.java, Submit.java* and *LinkSubmit.java*. Built
and installed my own 5.3.1 in my local maven repo.

Rebuilt my project and now I can login and run the app again.

It has been been very quiet in this thread ...

Can anyone (that understands web development) give a comment ... please ...

Thanks in advance,
Gunnar Eketrapp



2011/12/6 Gunnar Eketrapp 

> A possible solution would be to make a code around in the method
> isFormCancelled() in Form.java.
>
> /Gunnar
>
>
>
>
>
>   if (raw != null &&
> new *JSONArray(raw)*
> .getString(1).equals(InternalConstants.CANCEL_NAME))
> {
> return true;
> }
> 
>
>
>   if (raw != null && *!raw.isEmpty() &&*
> new *JSONArray(raw)*
> .getString(1).equals(InternalConstants.CANCEL_NAME))
> {
> return true;
> }
>
>
>
> 2011/12/6 Seamus 
>
>> Anyone have a solution to this. I have a form which I dont believe is
>> making
>> use of any ajax (unless tapestry is and I dont know about it I am using
>> the
>> current T5.3 release) and I get this error. When inspecting my page in
>> chrome and looking at the resources I see prototype 1.7 and scriptaculous
>> 1.9.
>>
>> I dont see any other versions loaded for me to try and remove.
>>
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: [5.3] JSONArray Error while submitting forms

2011-12-06 Thread Gunnar Eketrapp
A possible solution would be to make a code around in the method
isFormCancelled() in Form.java.

/Gunnar





  if (raw != null &&
new *JSONArray(raw)*
.getString(1).equals(InternalConstants.CANCEL_NAME))
{
return true;
}



  if (raw != null && *!raw.isEmpty() &&*
new *JSONArray(raw)*
.getString(1).equals(InternalConstants.CANCEL_NAME))
{
return true;
}



2011/12/6 Seamus 

> Anyone have a solution to this. I have a form which I dont believe is
> making
> use of any ajax (unless tapestry is and I dont know about it I am using the
> current T5.3 release) and I get this error. When inspecting my page in
> chrome and looking at the resources I see prototype 1.7 and scriptaculous
> 1.9.
>
> I dont see any other versions loaded for me to try and remove.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: [5.3] JSONArray Error while submitting forms

2011-12-06 Thread Seamus
Anyone have a solution to this. I have a form which I dont believe is making
use of any ajax (unless tapestry is and I dont know about it I am using the
current T5.3 release) and I get this error. When inspecting my page in
chrome and looking at the resources I see prototype 1.7 and scriptaculous
1.9. 

I dont see any other versions loaded for me to try and remove.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: [5.3] JSONArray Error while submitting forms

2011-12-05 Thread Serge Eby
Yes, there was a conflict with an older version of prototype / scrupulous.
After removing these, things started to work.

HTH,

/Serge



--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp7018161p7065209.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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



Re: [5.3] JSONArray Error while submitting forms

2011-12-04 Thread Gunnar Eketrapp
For some reason my form submission crashes in the the method
isFormCancelled in Form.java.

The call to JSONArray(raw) crashes since raw is an empty string which is
not allowed.

I must have missed something with 5.3 and form handling that is
incompatible with 5.2.6.

Does anyone have a clue what has to be done ?

Thanks in advance,
Gunnar Eketrapp



request.getParameter(SUBMITTING_ELEMENT_ID);

private boolean isFormCancelled()
{
// The "cancel" query parameter is reserved for this purpose; if it
is present then the form was canceled on the
// client side.  For image submits, there will be two parameters:
"cancel.x" and "cancel.y".

if (request.getParameter(InternalConstants.CANCEL_NAME) != null ||
request.getParameter(InternalConstants.CANCEL_NAME + ".x")
!= null)
{
return true;
}

// When JavaScript is involved, it's more complicated. In fact,
this is part of HLS's desire
// to have all forms submit via XHR when JavaScript is present,
since it would provide
// an opportunity to get the submitting element's value into the
request properly.

String raw = request.getParameter(SUBMITTING_ELEMENT_ID);

if (raw != null &&
new *JSONArray(raw)*
.getString(1).equals(InternalConstants.CANCEL_NAME))
{
return true;
}

return false;
}


2011/12/4 Gunnar Eketrapp 

> Did you solve this? I am getting the same right now.
>
> I just started my second attempt with 5.3 after Taha pointed out  a
> solution for my user type translators.
>
> But now I am looking at these JSONArray stack traces ...
>
> Perhaps there is a snapshot release of 5.3 that I can try with !?
>
> 2011/11/21 Serge Eby 
>
>> Hi,
>>
>> I am using T 5.3-rc-3 and I am getting the following error message while
>> submitting any forms in my app:
>>
>> ---
>> A JSONArray text must start with '[' at character 1 of "[\"save\",
>> \"save\"]"
>> --
>>
>> Stack trace:
>> --
>> org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
>> org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126)
>> org.apache.tapestry5.json.JSONArray.(JSONArray.java:95)
>>
>> org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590)
>>
>> org.apache.tapestry5.corelib.components.Form.advised$onAction_12585e84eba88bfd(Form.java:511)
>>
>> org.apache.tapestry5.corelib.components.Form$Invocation_onAction_12585e84eba88bfc.proceedToAdvisedMethod(Unknown
>> Source)
>>
>> org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:
>> ...
>> ---
>> What's puzzling is that the form works in a dummy app but fails in the
>> core
>> (complex) app. This makes me believe that there is something else that is
>> interfering with tapestry. I've also noticed that if I disable Javascript
>> in
>> the browser, the submission is  successful.
>>
>> It looks as if:
>> String raw = request.getParameter(SUBMITTING_ELEMENT_ID);
>>
>> in Form.isCancelled() is returning a String in double quotes (in my case)
>> but I can't figure out where this is created.
>>
>> Has anybody else seen this?
>>
>>
>> Below is an excerpt:
>>
>> java class:
>>
>>  
>>  void onSuccess() {
>>
>>   String uploadDir = context.getRealFile("/").getAbsolutePath() +
>> "/resources";
>>File dirPath = new File(uploadDir);
>>
>>if (!dirPath.exists()) {
>>dirPath.mkdirs();
>>}
>>
>>File copied = new File(uploadDir , file.getFileName());
>>file.write(copied);
>>
>>   }
>>
>> tml:
>>
>> 
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ...
>>
>>
>> --
>> Thanks,
>>
>> /Serge
>>
>>
>> --
>> View this message in context:
>> http://tapestry-users.832.n2.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp7018161p7018161.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: [5.3] JSONArray Error while submitting forms

2011-12-04 Thread Gunnar Eketrapp
Did you solve this? I am getting the same right now.

I just started my second attempt with 5.3 after Taha pointed out  a
solution for my user type translators.

But now I am looking at these JSONArray stack traces ...

Perhaps there is a snapshot release of 5.3 that I can try with !?

2011/11/21 Serge Eby 

> Hi,
>
> I am using T 5.3-rc-3 and I am getting the following error message while
> submitting any forms in my app:
>
> ---
> A JSONArray text must start with '[' at character 1 of "[\"save\",
> \"save\"]"
> --
>
> Stack trace:
> --
> org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
> org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126)
> org.apache.tapestry5.json.JSONArray.(JSONArray.java:95)
> org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590)
>
> org.apache.tapestry5.corelib.components.Form.advised$onAction_12585e84eba88bfd(Form.java:511)
>
> org.apache.tapestry5.corelib.components.Form$Invocation_onAction_12585e84eba88bfc.proceedToAdvisedMethod(Unknown
> Source)
>
> org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:
> ...
> ---
> What's puzzling is that the form works in a dummy app but fails in the core
> (complex) app. This makes me believe that there is something else that is
> interfering with tapestry. I've also noticed that if I disable Javascript
> in
> the browser, the submission is  successful.
>
> It looks as if:
> String raw = request.getParameter(SUBMITTING_ELEMENT_ID);
>
> in Form.isCancelled() is returning a String in double quotes (in my case)
> but I can't figure out where this is created.
>
> Has anybody else seen this?
>
>
> Below is an excerpt:
>
> java class:
>
>  
>  void onSuccess() {
>
>   String uploadDir = context.getRealFile("/").getAbsolutePath() +
> "/resources";
>File dirPath = new File(uploadDir);
>
>if (!dirPath.exists()) {
>dirPath.mkdirs();
>}
>
>File copied = new File(uploadDir , file.getFileName());
>file.write(copied);
>
>   }
>
> tml:
>
> 
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ...
>
>
> --
> Thanks,
>
> /Serge
>
>
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp7018161p7018161.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo