You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gunnar Eketrapp <gu...@gmail.com> on 2011/12/04 21:10:28 UTC

Re: [5.3] JSONArray Error while submitting forms

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 <sd...@hotmail.com>

> 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.<init>(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:
>
> ....
>  <form t:type="form" t:id="upload" clientValidation="none">
>        <ul>
>            <li>
>                <label t:type="label"  for="name"/>
>                <input t:type="textfield" t:id="name" validate="required"/>
>            </li>
>            <li>
>                <label t:type="label"  for="file"/>
>                <input t:type="upload" t:id="file" validate="required"/>
>            </li>
>            <li>
>                <input t:type="submit"   value="Upload" t:id="save" />
>
>                    <input type="button" value="Cancel"/>
>
>            </li>
>        </ul>
>    </form>
> ...
>
>
> --
> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
And this is an extract of the failing login request



   1. Request URL:

   http://localhost:8080/index.utskicketlayout.loginform;jsessionid=1gg3akfavo976gp2becnahbhv
   2. Request Method:
   POST
   3. Status Code:
   500 Internal Server Error
   4. Request Headersview source
      1. Accept:
      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      2. Accept-Charset:
      ISO-8859-1,utf-8;q=0.7,*;q=0.3
      3. Accept-Encoding:
      gzip,deflate,sdch
      4. Accept-Language:
      sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4
      5. Cache-Control:
      max-age=0
      6. Connection:
      keep-alive
      7. Content-Length:
      596
      8. Content-Type:
      application/x-www-form-urlencoded
      9. Cookie:
      JSESSIONID=1gg3akfavo976gp2becnahbhv
      10. Host:
      localhost:8080
      11. Origin:
      http://localhost:8080
      12. Referer:
      http://localhost:8080/
      13. User-Agent:
      Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko)
      Chrome/15.0.874.121 Safari/535.2
      5. Form Dataview URL encoded
      1. t:formdata:
      H4sIAAAAAAAAAJWRvUoDQRSFrwuBSDrBQsSfoLYbBdNoYxCEQBBhsZbZ2Zt1zOzMOnPX3TSpfAkbn0Cs9AlS2PkOPoCNhZWFuyuRBUOI1Qzf3MM5Z
      7DO9TSLWh2VYDZQUJ2IPgASbKhTsglzKgvUAYXu9ZAW5vQZTHjl gSi9GSGbZdrg1K4bs s
      h2/BwyTieFaNtDSuKd83Hjbfnly4GFHjS4VmS0PGUREiz1rtgNa0mmwpZHRqjwMIsJGhXbebN1/pvtzGiO1nqJHwlrhVbjx2C//3n/6gBkcdqEjem2MbM21SbYs9cwAiBY/CVziApNLV2D1elzUodC5W2OZrbhOoq1QkXWLePT3zJ33sfK89PtsQNOD
      pciny6GxTuxRJQYpSDYgklKj69VnpPznQT1qdHNBgKS2jK nWC gRUrrPUkcgfquofULl
      A8xRqk2TAgAA
      2. t:submit:
      3. textfield_0:
      gunnar.eketrapp@gmail.com
      4. password1: xxxxxxx
      5. pass_temp:
      Ditt lösenord
      6. Response Headersview source
      1. Content-Length:
      19867
      2. Content-Type:
      text/html; charset=utf-8
      3. Server:
      Jetty(6.1.26)
      4. X-Tapestry-ErrorMessage:

      A%20JSONArray%20text%20must%20start%20with%20%27%5B%27%20at%20character%200%20of%20


2011/12/6 Gunnar Eketrapp <gu...@gmail.com>

> When inspecting the page I see that Prototype 1.7 is what I get.
>
>
> 2011/12/6 Gunnar Eketrapp <gu...@gmail.com>
>
>> Glad to hear that your problem is gone.
>>
>> Did you add those "old versions" by yourself.
>>
>> I include jQuery but prototype I get via T5.
>>
>> Does anyone have a clue what I must do in order to get rid of this error!?
>>
>> I include my layout template below to show what I am including.
>> I do all of my own .js inclusions from there.
>>
>> Thanks in advance,
>> Gunnar
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <html xmlns="http://www.w3.org/1999/xhtml"
>>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>>  xmlns:p="tapestry:parameter">
>>
>> <head>
>> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
>>
>> <script src="${context:js/jquery-1.5.1.min.js}"
>> type="text/javascript"></script>
>> <script src="${context:js/jquery-ui-1.8.14.custom.min.js}"
>> type="text/javascript"></script>
>> <script src="${context:js/jquery.ui.datepicker-sv.js}"
>> type="text/javascript"></script>
>> <script src="${context:js/jquery.jeditable.js}"
>> type="text/javascript"></script>
>> <script src="${context:js/utskicket.js}" type="text/javascript"></script>
>>
>>
>> <!--
>> Design by Free CSS Templates
>> http://www.freecsstemplates.org
>> Released for free under a Creative Commons Attribution 2.5 License
>> Title      : Concrete
>> Version    : 1.0
>> Released   : 20080825
>> Description: A Web 2.0 design with fluid width suitable for blogs and
>> small websites.
>> -->
>>
>> <link rel="stylesheet" type="text/css"
>> href="${context:css/blueprint/screen.css}" media="screen, projection" />
>> <link rel="stylesheet" type="text/css"
>> href="${context:css/blueprint/print.css}"  media="print" />
>> <!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
>> type="text/css" media="screen, projection" /><![endif]-->
>>
>> <link rel="stylesheet" type="text/css"
>> href="${context:css/utskicket.css}" />
>> <link rel="stylesheet" type="text/css"
>> href="${context:css/ui-lightness/jquery-ui-1.8.7.custom.css}"  />
>> <link rel="stylesheet" type="text/css"
>> href="${context:css/dropdownmenu/dropdown_one.css}" />
>>
>> <link rel="icon" href="${context:favicon.ico}"
>> type="image/vnd.microsoft.icon" />
>>
>> <title>${title}</title>
>>
>> <script type="text/javascript">
>>
>>   var _gaq = _gaq || [];
>>   _gaq.push(['_setAccount', 'UA-26175875-1']);
>>   _gaq.push(['_trackPageview']);
>>
>>   (function() {
>>     var ga = document.createElement('script'); ga.type =
>> 'text/javascript'; ga.async = true;
>>     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : '
>> http://www') + '.google-analytics.com/ga.js';
>>     var s = document.getElementsByTagName('script')[0];
>> s.parentNode.insertBefore(ga, s);
>>   })();
>>
>> </script>
>>
>> </head>
>>
>> <body>
>>
>>
>> <script type="text/javascript">
>>
>> // IE bugfix: To get buttons inside anchors to work
>>  jQuery(document).ready(function($) {
>> $('a button').click(function() {
>>         location.href=$(this).closest("a").attr("href");
>>  });
>> });
>>
>> // IE bugfix: To get return to submit forms in bloody IE
>>  jQuery.fn.handle_enter_keypress = function() {
>>    if (jQuery.browser.msie) {
>>      jQuery(this).find('input').keypress(function(e) {
>>        // If the key pressed was enter
>>        if (e.which == '13') {
>>          jQuery(this).closest('form')
>>          .find('button[type=submit],input[type=submit]')
>>          .filter(':first').click();
>>        }
>>      });
>>    }
>>  };
>>
>>  jQuery(document).ready(function($) {
>> $('form').handle_enter_keypress();
>>  });
>>
>> </script>
>>
>>
>> <div class="container">
>>
>> <!-- start header -->
>> <div id="header"  style="margin-bottom: 0px; width: 725px; float: left;">
>>  <div id="logo" style="margin-bottom: 0px;">
>>  <t:pagelink page="${bannerLink}" context="bannerContext"><img
>> src="${bannerImage}" width="725" height="140"/></t:pagelink>
>>  </div>
>> </div>
>>
>> <t:if test="loggedIn">
>>
>>     <div id="loggedinarea" style="padding: 0px; width: 225px; height:
>> 116px; float: left;">
>>         <t:form t:id="loggedinform" autofocus="false"
>> class="small-input-form inline" style="height: 116px;">
>>             <fieldset>
>>                 <legend>Inloggad</legend>
>>                 <p>${user.email} <t:submit
>> image="context:icons/Vista_Applications_3/Logout_24x24_Regular.png"
>> title="Logga ut" /></p>
>>             </fieldset>
>>         </t:form>
>>
>>         <t:form t:id="searchformLoggedIn" autofocus="false"
>> class="small-input-form inline"  style="height: 24px;">
>>         <p>
>>         <div id="search">
>>             <t:textfield name="search" value="search" size="30"
>> maxlength="30" />
>>             <t:submit value="Sök" />
>>         </div>
>>         </p>
>>         </t:form>
>>     </div>
>>
>> <p:else>
>>
>>     <div id="loginarea" style="padding: 0px; width: 225px; height: 116px;
>> float: left;">
>>       <t:form t:id="loginform" autofocus="false" class="small-input-form
>> inline"  style="height: 116px;">
>>         <fieldset>
>>             <legend>Logga in</legend>
>>             <p>
>>                 <t:textfield name="email" size="30" value="email"
>>  onfocus="ClearTextbox(this, '${message:your.email}')"
>> onBlur="RestoreTextbox(this, '${message:your.email}')"/>
>>             </p>
>>             <div id="hide_password1" style="display:none">
>>                 <t:passwordfield name="password1" t:id="password1"
>> class="password1" value="password" size="30" maxlength="30"
>> onBlur="showPasswordC(1)" />
>>                 <input type="submit" value="Ok" />
>>             </div>
>>             <div id="show_password1">
>>                 <input name="pass_temp" type="text"
>> value="${message:your.password}" size="30" maxlength="30"
>> onfocus="hidePasswordC(1)" />
>>                 <t:submit t:id="login" value="Ok" />
>>             </div>
>>
>>             <t:if test="loginFailed()">
>>                 <div class="error">${loginFailure}</div>
>>             </t:if>
>>
>>         <p>
>>             <t:submit t:id="register" value="Skapa konto ..." />
>>             <t:submit t:id="reminder" value="Har glömt ..." />
>>         </p>
>>
>>         </fieldset>
>>       </t:form>
>>
>>       <t:form t:id="searchform" autofocus="false" class="small-input-form
>> inline"  style="height: 24px;">
>>           <p>
>>             <div id="search">
>>                 <t:textfield name="search" value="search" size="30"
>> maxlength="30" />
>>                 <t:submit t:id="search" value="Sök" />
>>             </div>
>>           </p>
>>       </t:form>
>>
>>     </div>
>>
>> </p:else>
>> </t:if>
>>
>> <div id="menudiv" style="clear: both; background-color: transparent;">
>>     <t:menu />
>> </div>
>> <!-- end header -->
>>
>> <!-- start page -->
>> <div id="page">
>>
>> <!-- start content -->
>> <div id="content" class="span-${contentSpan}">
>> <div class="post">
>> <div class="entry">
>> <t:body />
>> </div>
>> </div>
>> </div>
>> <!-- end content -->
>>
>> <!-- start sidebar -->
>> <t:if test="sidebar">
>> <div id="sidebar" class="span-8 last">
>> <div class="sidebar-content">
>>    <t:searchResult searchString="search"/>
>>    <t:delegate to="sidebar" />
>>  </div>
>> </div>
>> <!-- end sidebar --> <br style="clear: both;" />
>> </t:if>
>>
>> </div>
>>
>> <!-- end page -->
>>
>> <!-- start footer -->
>> <div id="footer" class="span-24 last">
>> <p class="legal">&copy; 2011 utskicket.se &#160;&#160;&#160;&#160; Alla
>> rättigheter förbehållna.
>> &#160;&#160;&#160;&#160;<t:pagelink page="info/version">Version
>> ${systemversion}</t:pagelink>&#160;&#160;&#160;&#160;${systemdate}
>> </p>
>> </div>
>> <!-- end footer -->
>>
>> </div>
>> <!-- end page -->
>>
>> </body>
>> </html>
>>
>>
>>
>>
>> 2011/12/6 Serge Eby <sd...@hotmail.com>
>>
>>> 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-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@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
>



-- 
[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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
When inspecting the page I see that Prototype 1.7 is what I get.

2011/12/6 Gunnar Eketrapp <gu...@gmail.com>

> Glad to hear that your problem is gone.
>
> Did you add those "old versions" by yourself.
>
> I include jQuery but prototype I get via T5.
>
> Does anyone have a clue what I must do in order to get rid of this error!?
>
> I include my layout template below to show what I am including.
> I do all of my own .js inclusions from there.
>
> Thanks in advance,
> Gunnar
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml"
>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>  xmlns:p="tapestry:parameter">
>
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
>
> <script src="${context:js/jquery-1.5.1.min.js}"
> type="text/javascript"></script>
> <script src="${context:js/jquery-ui-1.8.14.custom.min.js}"
> type="text/javascript"></script>
> <script src="${context:js/jquery.ui.datepicker-sv.js}"
> type="text/javascript"></script>
> <script src="${context:js/jquery.jeditable.js}"
> type="text/javascript"></script>
> <script src="${context:js/utskicket.js}" type="text/javascript"></script>
>
>
> <!--
> Design by Free CSS Templates
> http://www.freecsstemplates.org
> Released for free under a Creative Commons Attribution 2.5 License
> Title      : Concrete
> Version    : 1.0
> Released   : 20080825
> Description: A Web 2.0 design with fluid width suitable for blogs and
> small websites.
> -->
>
> <link rel="stylesheet" type="text/css"
> href="${context:css/blueprint/screen.css}" media="screen, projection" />
> <link rel="stylesheet" type="text/css"
> href="${context:css/blueprint/print.css}"  media="print" />
> <!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
> type="text/css" media="screen, projection" /><![endif]-->
>
> <link rel="stylesheet" type="text/css" href="${context:css/utskicket.css}"
> />
> <link rel="stylesheet" type="text/css"
> href="${context:css/ui-lightness/jquery-ui-1.8.7.custom.css}"  />
> <link rel="stylesheet" type="text/css"
> href="${context:css/dropdownmenu/dropdown_one.css}" />
>
> <link rel="icon" href="${context:favicon.ico}"
> type="image/vnd.microsoft.icon" />
>
> <title>${title}</title>
>
> <script type="text/javascript">
>
>   var _gaq = _gaq || [];
>   _gaq.push(['_setAccount', 'UA-26175875-1']);
>   _gaq.push(['_trackPageview']);
>
>   (function() {
>     var ga = document.createElement('script'); ga.type =
> 'text/javascript'; ga.async = true;
>     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : '
> http://www') + '.google-analytics.com/ga.js';
>     var s = document.getElementsByTagName('script')[0];
> s.parentNode.insertBefore(ga, s);
>   })();
>
> </script>
>
> </head>
>
> <body>
>
>
> <script type="text/javascript">
>
> // IE bugfix: To get buttons inside anchors to work
>  jQuery(document).ready(function($) {
> $('a button').click(function() {
>         location.href=$(this).closest("a").attr("href");
>  });
> });
>
> // IE bugfix: To get return to submit forms in bloody IE
>  jQuery.fn.handle_enter_keypress = function() {
>    if (jQuery.browser.msie) {
>      jQuery(this).find('input').keypress(function(e) {
>        // If the key pressed was enter
>        if (e.which == '13') {
>          jQuery(this).closest('form')
>          .find('button[type=submit],input[type=submit]')
>          .filter(':first').click();
>        }
>      });
>    }
>  };
>
>  jQuery(document).ready(function($) {
> $('form').handle_enter_keypress();
>  });
>
> </script>
>
>
> <div class="container">
>
> <!-- start header -->
> <div id="header"  style="margin-bottom: 0px; width: 725px; float: left;">
>  <div id="logo" style="margin-bottom: 0px;">
>  <t:pagelink page="${bannerLink}" context="bannerContext"><img
> src="${bannerImage}" width="725" height="140"/></t:pagelink>
>  </div>
> </div>
>
> <t:if test="loggedIn">
>
>     <div id="loggedinarea" style="padding: 0px; width: 225px; height:
> 116px; float: left;">
>         <t:form t:id="loggedinform" autofocus="false"
> class="small-input-form inline" style="height: 116px;">
>             <fieldset>
>                 <legend>Inloggad</legend>
>                 <p>${user.email} <t:submit
> image="context:icons/Vista_Applications_3/Logout_24x24_Regular.png"
> title="Logga ut" /></p>
>             </fieldset>
>         </t:form>
>
>         <t:form t:id="searchformLoggedIn" autofocus="false"
> class="small-input-form inline"  style="height: 24px;">
>         <p>
>         <div id="search">
>             <t:textfield name="search" value="search" size="30"
> maxlength="30" />
>             <t:submit value="Sök" />
>         </div>
>         </p>
>         </t:form>
>     </div>
>
> <p:else>
>
>     <div id="loginarea" style="padding: 0px; width: 225px; height: 116px;
> float: left;">
>       <t:form t:id="loginform" autofocus="false" class="small-input-form
> inline"  style="height: 116px;">
>         <fieldset>
>             <legend>Logga in</legend>
>             <p>
>                 <t:textfield name="email" size="30" value="email"
>  onfocus="ClearTextbox(this, '${message:your.email}')"
> onBlur="RestoreTextbox(this, '${message:your.email}')"/>
>             </p>
>             <div id="hide_password1" style="display:none">
>                 <t:passwordfield name="password1" t:id="password1"
> class="password1" value="password" size="30" maxlength="30"
> onBlur="showPasswordC(1)" />
>                 <input type="submit" value="Ok" />
>             </div>
>             <div id="show_password1">
>                 <input name="pass_temp" type="text"
> value="${message:your.password}" size="30" maxlength="30"
> onfocus="hidePasswordC(1)" />
>                 <t:submit t:id="login" value="Ok" />
>             </div>
>
>             <t:if test="loginFailed()">
>                 <div class="error">${loginFailure}</div>
>             </t:if>
>
>         <p>
>             <t:submit t:id="register" value="Skapa konto ..." />
>             <t:submit t:id="reminder" value="Har glömt ..." />
>         </p>
>
>         </fieldset>
>       </t:form>
>
>       <t:form t:id="searchform" autofocus="false" class="small-input-form
> inline"  style="height: 24px;">
>           <p>
>             <div id="search">
>                 <t:textfield name="search" value="search" size="30"
> maxlength="30" />
>                 <t:submit t:id="search" value="Sök" />
>             </div>
>           </p>
>       </t:form>
>
>     </div>
>
> </p:else>
> </t:if>
>
> <div id="menudiv" style="clear: both; background-color: transparent;">
>     <t:menu />
> </div>
> <!-- end header -->
>
> <!-- start page -->
> <div id="page">
>
> <!-- start content -->
> <div id="content" class="span-${contentSpan}">
> <div class="post">
> <div class="entry">
> <t:body />
> </div>
> </div>
> </div>
> <!-- end content -->
>
> <!-- start sidebar -->
> <t:if test="sidebar">
> <div id="sidebar" class="span-8 last">
> <div class="sidebar-content">
>    <t:searchResult searchString="search"/>
>    <t:delegate to="sidebar" />
>  </div>
> </div>
> <!-- end sidebar --> <br style="clear: both;" />
> </t:if>
>
> </div>
>
> <!-- end page -->
>
> <!-- start footer -->
> <div id="footer" class="span-24 last">
> <p class="legal">&copy; 2011 utskicket.se &#160;&#160;&#160;&#160; Alla
> rättigheter förbehållna.
> &#160;&#160;&#160;&#160;<t:pagelink page="info/version">Version
> ${systemversion}</t:pagelink>&#160;&#160;&#160;&#160;${systemdate}
> </p>
> </div>
> <!-- end footer -->
>
> </div>
> <!-- end page -->
>
> </body>
> </html>
>
>
>
>
> 2011/12/6 Serge Eby <sd...@hotmail.com>
>
>> 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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
Glad to hear that your problem is gone.

Did you add those "old versions" by yourself.

I include jQuery but prototype I get via T5.

Does anyone have a clue what I must do in order to get rid of this error!?

I include my layout template below to show what I am including.
I do all of my own .js inclusions from there.

Thanks in advance,
Gunnar

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<script src="${context:js/jquery-1.5.1.min.js}"
type="text/javascript"></script>
<script src="${context:js/jquery-ui-1.8.14.custom.min.js}"
type="text/javascript"></script>
<script src="${context:js/jquery.ui.datepicker-sv.js}"
type="text/javascript"></script>
<script src="${context:js/jquery.jeditable.js}"
type="text/javascript"></script>
<script src="${context:js/utskicket.js}" type="text/javascript"></script>


<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Title      : Concrete
Version    : 1.0
Released   : 20080825
Description: A Web 2.0 design with fluid width suitable for blogs and small
websites.
-->

<link rel="stylesheet" type="text/css"
href="${context:css/blueprint/screen.css}" media="screen, projection" />
<link rel="stylesheet" type="text/css"
href="${context:css/blueprint/print.css}"  media="print" />
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
type="text/css" media="screen, projection" /><![endif]-->

<link rel="stylesheet" type="text/css" href="${context:css/utskicket.css}"
/>
<link rel="stylesheet" type="text/css"
href="${context:css/ui-lightness/jquery-ui-1.8.7.custom.css}"  />
<link rel="stylesheet" type="text/css"
href="${context:css/dropdownmenu/dropdown_one.css}" />

<link rel="icon" href="${context:favicon.ico}"
type="image/vnd.microsoft.icon" />

<title>${title}</title>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26175875-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : '
http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>

<body>


<script type="text/javascript">

// IE bugfix: To get buttons inside anchors to work
jQuery(document).ready(function($) {
$('a button').click(function() {
        location.href=$(this).closest("a").attr("href");
});
});

// IE bugfix: To get return to submit forms in bloody IE
jQuery.fn.handle_enter_keypress = function() {
   if (jQuery.browser.msie) {
     jQuery(this).find('input').keypress(function(e) {
       // If the key pressed was enter
       if (e.which == '13') {
         jQuery(this).closest('form')
         .find('button[type=submit],input[type=submit]')
         .filter(':first').click();
       }
     });
   }
};

jQuery(document).ready(function($) {
$('form').handle_enter_keypress();
});

</script>


<div class="container">

<!-- start header -->
<div id="header"  style="margin-bottom: 0px; width: 725px; float: left;">
<div id="logo" style="margin-bottom: 0px;">
<t:pagelink page="${bannerLink}" context="bannerContext"><img
src="${bannerImage}" width="725" height="140"/></t:pagelink>
</div>
</div>

<t:if test="loggedIn">

    <div id="loggedinarea" style="padding: 0px; width: 225px; height:
116px; float: left;">
        <t:form t:id="loggedinform" autofocus="false"
class="small-input-form inline" style="height: 116px;">
            <fieldset>
                <legend>Inloggad</legend>
                <p>${user.email} <t:submit
image="context:icons/Vista_Applications_3/Logout_24x24_Regular.png"
title="Logga ut" /></p>
            </fieldset>
        </t:form>

        <t:form t:id="searchformLoggedIn" autofocus="false"
class="small-input-form inline"  style="height: 24px;">
        <p>
        <div id="search">
            <t:textfield name="search" value="search" size="30"
maxlength="30" />
            <t:submit value="Sök" />
        </div>
        </p>
        </t:form>
    </div>

<p:else>

    <div id="loginarea" style="padding: 0px; width: 225px; height: 116px;
float: left;">
      <t:form t:id="loginform" autofocus="false" class="small-input-form
inline"  style="height: 116px;">
        <fieldset>
            <legend>Logga in</legend>
            <p>
                <t:textfield name="email" size="30" value="email"
 onfocus="ClearTextbox(this, '${message:your.email}')"
onBlur="RestoreTextbox(this, '${message:your.email}')"/>
            </p>
            <div id="hide_password1" style="display:none">
                <t:passwordfield name="password1" t:id="password1"
class="password1" value="password" size="30" maxlength="30"
onBlur="showPasswordC(1)" />
                <input type="submit" value="Ok" />
            </div>
            <div id="show_password1">
                <input name="pass_temp" type="text"
value="${message:your.password}" size="30" maxlength="30"
onfocus="hidePasswordC(1)" />
                <t:submit t:id="login" value="Ok" />
            </div>

            <t:if test="loginFailed()">
                <div class="error">${loginFailure}</div>
            </t:if>

        <p>
            <t:submit t:id="register" value="Skapa konto ..." />
            <t:submit t:id="reminder" value="Har glömt ..." />
        </p>

        </fieldset>
      </t:form>

      <t:form t:id="searchform" autofocus="false" class="small-input-form
inline"  style="height: 24px;">
          <p>
            <div id="search">
                <t:textfield name="search" value="search" size="30"
maxlength="30" />
                <t:submit t:id="search" value="Sök" />
            </div>
          </p>
      </t:form>

    </div>

</p:else>
</t:if>

<div id="menudiv" style="clear: both; background-color: transparent;">
    <t:menu />
</div>
<!-- end header -->

<!-- start page -->
<div id="page">

<!-- start content -->
<div id="content" class="span-${contentSpan}">
<div class="post">
<div class="entry">
<t:body />
</div>
</div>
</div>
<!-- end content -->

<!-- start sidebar -->
<t:if test="sidebar">
<div id="sidebar" class="span-8 last">
<div class="sidebar-content">
   <t:searchResult searchString="search"/>
   <t:delegate to="sidebar" />
</div>
</div>
<!-- end sidebar --> <br style="clear: both;" />
</t:if>

</div>

<!-- end page -->

<!-- start footer -->
<div id="footer" class="span-24 last">
<p class="legal">&copy; 2011 utskicket.se &#160;&#160;&#160;&#160; Alla
rättigheter förbehållna.
&#160;&#160;&#160;&#160;<t:pagelink page="info/version">Version
${systemversion}</t:pagelink>&#160;&#160;&#160;&#160;${systemdate}
</p>
</div>
<!-- end footer -->

</div>
<!-- end page -->

</body>
</html>




2011/12/6 Serge Eby <sd...@hotmail.com>

> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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

Posted by Peter Stavrinides <P....@albourne.com>.
Thanks Michael, much appreciated, as I would never have guessed that! I will give it a try. 


Peter 

----- Original Message -----

From: "Michael Gentry" <mg...@masslight.net> 
To: "Tapestry users" <us...@tapestry.apache.org> 
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<String, String> 
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 
<P....@albourne.com> 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" <m....@gmail.com> 
> To: "Tapestry users" <us...@tapestry.apache.org> 
> 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 <lp...@hope.nyc.ny.us>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 <gu...@gmail.com> 
>> 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 <m....@gmail.com> 
>> > 
>> >> Shouldn't Gunnar decide first if the issue should be closed or not ? 
>> >> 
>> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com> 
>> 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 <mg...@masslight.net> 
>> >>> 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 <mgentry@masslight.net 
>> > 
>> >>> wrote: 
>> >>>>> Hi Josh, 
>> >>>>> 
>> >>>>> Better late than never? :-) 
>> >>>>> 
>> >>>>> Here is with 5.3.1, which still didn't help: 
>> >>>>> 
>> >>>>> 
>> >>> 
>> >> 
>> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu 
>> >>>>> 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: 
>> >>>>> 
>> >>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off"> 
>> >>>>> 
>> >>>>> The t:submit is defined as: 
>> >>>>> 
>> >>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;" 
>> >>>>> value="Continue &gt;" tabindex="100" /> 
>> >>>>> 
>> >>>>> Thanks, 
>> >>>>> 
>> >>>>> mrg 
>> >>>>> 
>> >>>>> 
>> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield < 
>> joshcanfield@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 
>> >>>>>> <gu...@gmail.com> 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 <m....@gmail.com> 
>> >>>>>>> 
>> >>>>>>>> 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 
>> >>>>>>>> <gu...@gmail.com>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 <m....@gmail.com> 
>> >>>>>>>>> 
>> >>>>>>>>>> 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 
>> >>>>>>>>>> <gu...@gmail.com>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 <gu...@gmail.com> 
>> >>>>>>>>>>> 
>> >>>>>>>>>>>> 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 <sm...@yahoo.com> 
>> >>>>>>>>>>>> 
>> >>>>>>>>>>>>> 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-unsubscribe@tapestry.apache.org 
>> >>>>>>>>>>>>> For additional commands, e-mail: 
>> >>> users-help@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-unsubscribe@tapestry.apache.org 
>> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org 
>> >>>>>> 
>> >>>> 
>> >>>> --------------------------------------------------------------------- 
>> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org 
>> >>>> For additional commands, e-mail: users-help@tapestry.apache.org 
>> >>>> 
>> >>> 
>> >>> --------------------------------------------------------------------- 
>> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org 
>> >>> For additional commands, e-mail: users-help@tapestry.apache.org 
>> >>> 
>> >>> 
>> >> 
>> >> 
>> >> -- 
>> >> *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-unsubscribe@tapestry.apache.org 
>> For additional commands, e-mail: users-help@tapestry.apache.org 
>> 
>> 
> 
> 
> -- 
> *Regards,* 
> *Muhammad Gelbana 
> Java Developer* 
> 

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



Re: [5.3] JSONArray Error while submitting forms

Posted by Michael Gentry <mg...@masslight.net>.
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<String, String>
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
<P....@albourne.com> 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" <m....@gmail.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> 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 <lp...@hope.nyc.ny.us>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 <gu...@gmail.com>
>> 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 <m....@gmail.com>
>> >
>> >> Shouldn't Gunnar decide first if the issue should be closed or not ?
>> >>
>> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com>
>> 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 <mg...@masslight.net>
>> >>> 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 <mgentry@masslight.net
>> >
>> >>> wrote:
>> >>>>> Hi Josh,
>> >>>>>
>> >>>>> Better late than never? :-)
>> >>>>>
>> >>>>> Here is with 5.3.1, which still didn't help:
>> >>>>>
>> >>>>>
>> >>>
>> >>
>> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>> >>>>> 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:
>> >>>>>
>> >>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
>> >>>>>
>> >>>>> The t:submit is defined as:
>> >>>>>
>> >>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
>> >>>>> value="Continue &gt;" tabindex="100" />
>> >>>>>
>> >>>>> Thanks,
>> >>>>>
>> >>>>> mrg
>> >>>>>
>> >>>>>
>> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <
>> joshcanfield@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
>> >>>>>> <gu...@gmail.com> 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 <m....@gmail.com>
>> >>>>>>>
>> >>>>>>>> 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
>> >>>>>>>> <gu...@gmail.com>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 <m....@gmail.com>
>> >>>>>>>>>
>> >>>>>>>>>> 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
>> >>>>>>>>>> <gu...@gmail.com>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 <gu...@gmail.com>
>> >>>>>>>>>>>
>> >>>>>>>>>>>> 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 <sm...@yahoo.com>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>> 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-unsubscribe@tapestry.apache.org
>> >>>>>>>>>>>>> For additional commands, e-mail:
>> >>> users-help@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-unsubscribe@tapestry.apache.org
>> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>>>>>
>> >>>>
>> >>>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >>> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> *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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>

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


Re: [5.3] JSONArray Error while submitting forms

Posted by Peter Stavrinides <P....@albourne.com>.
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" <m....@gmail.com> 
To: "Tapestry users" <us...@tapestry.apache.org> 
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 <lp...@hope.nyc.ny.us>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 <gu...@gmail.com> 
> 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 <m....@gmail.com> 
> > 
> >> Shouldn't Gunnar decide first if the issue should be closed or not ? 
> >> 
> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com> 
> 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 <mg...@masslight.net> 
> >>> 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 <mgentry@masslight.net 
> > 
> >>> wrote: 
> >>>>> Hi Josh, 
> >>>>> 
> >>>>> Better late than never? :-) 
> >>>>> 
> >>>>> Here is with 5.3.1, which still didn't help: 
> >>>>> 
> >>>>> 
> >>> 
> >> 
> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu 
> >>>>> 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: 
> >>>>> 
> >>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off"> 
> >>>>> 
> >>>>> The t:submit is defined as: 
> >>>>> 
> >>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;" 
> >>>>> value="Continue &gt;" tabindex="100" /> 
> >>>>> 
> >>>>> Thanks, 
> >>>>> 
> >>>>> mrg 
> >>>>> 
> >>>>> 
> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield < 
> joshcanfield@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 
> >>>>>> <gu...@gmail.com> 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 <m....@gmail.com> 
> >>>>>>> 
> >>>>>>>> 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 
> >>>>>>>> <gu...@gmail.com>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 <m....@gmail.com> 
> >>>>>>>>> 
> >>>>>>>>>> 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 
> >>>>>>>>>> <gu...@gmail.com>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 <gu...@gmail.com> 
> >>>>>>>>>>> 
> >>>>>>>>>>>> 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 <sm...@yahoo.com> 
> >>>>>>>>>>>> 
> >>>>>>>>>>>>> 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-unsubscribe@tapestry.apache.org 
> >>>>>>>>>>>>> For additional commands, e-mail: 
> >>> users-help@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-unsubscribe@tapestry.apache.org 
> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org 
> >>>>>> 
> >>>> 
> >>>> --------------------------------------------------------------------- 
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org 
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org 
> >>>> 
> >>> 
> >>> --------------------------------------------------------------------- 
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org 
> >>> For additional commands, e-mail: users-help@tapestry.apache.org 
> >>> 
> >>> 
> >> 
> >> 
> >> -- 
> >> *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-unsubscribe@tapestry.apache.org 
> For additional commands, e-mail: users-help@tapestry.apache.org 
> 
> 


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


Re: [5.3] JSONArray Error while submitting forms

Posted by Muhammad Gelbana <m....@gmail.com>.
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 <lp...@hope.nyc.ny.us>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 <gu...@gmail.com>
> 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 <m....@gmail.com>
> >
> >> Shouldn't Gunnar decide first if the issue should be closed or not ?
> >>
> >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com>
> 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 <mg...@masslight.net>
> >>> 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 <mgentry@masslight.net
> >
> >>> wrote:
> >>>>> Hi Josh,
> >>>>>
> >>>>> Better late than never?  :-)
> >>>>>
> >>>>> Here is with 5.3.1, which still didn't help:
> >>>>>
> >>>>>
> >>>
> >>
> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> >>>>> 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:
> >>>>>
> >>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
> >>>>>
> >>>>> The t:submit is defined as:
> >>>>>
> >>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
> >>>>> value="Continue &gt;" tabindex="100" />
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> mrg
> >>>>>
> >>>>>
> >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <
> joshcanfield@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
> >>>>>> <gu...@gmail.com> 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 <m....@gmail.com>
> >>>>>>>
> >>>>>>>> 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
> >>>>>>>> <gu...@gmail.com>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 <m....@gmail.com>
> >>>>>>>>>
> >>>>>>>>>> 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
> >>>>>>>>>> <gu...@gmail.com>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 <gu...@gmail.com>
> >>>>>>>>>>>
> >>>>>>>>>>>> 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 <sm...@yahoo.com>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> 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-unsubscribe@tapestry.apache.org
> >>>>>>>>>>>>> For additional commands, e-mail:
> >>> users-help@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-unsubscribe@tapestry.apache.org
> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> *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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


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

Re: [5.3] JSONArray Error while submitting forms

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
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 <gu...@gmail.com> 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 <m....@gmail.com>
> 
>> Shouldn't Gunnar decide first if the issue should be closed or not ?
>> 
>> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com> 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 <mg...@masslight.net>
>>> 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 <mg...@masslight.net>
>>> wrote:
>>>>> Hi Josh,
>>>>> 
>>>>> Better late than never?  :-)
>>>>> 
>>>>> Here is with 5.3.1, which still didn't help:
>>>>> 
>>>>> 
>>> 
>> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>>>>> 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:
>>>>> 
>>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
>>>>> 
>>>>> The t:submit is defined as:
>>>>> 
>>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
>>>>> value="Continue &gt;" tabindex="100" />
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> mrg
>>>>> 
>>>>> 
>>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <joshcanfield@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
>>>>>> <gu...@gmail.com> 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 <m....@gmail.com>
>>>>>>> 
>>>>>>>> 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
>>>>>>>> <gu...@gmail.com>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 <m....@gmail.com>
>>>>>>>>> 
>>>>>>>>>> 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
>>>>>>>>>> <gu...@gmail.com>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 <gu...@gmail.com>
>>>>>>>>>>> 
>>>>>>>>>>>> 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 <sm...@yahoo.com>
>>>>>>>>>>>> 
>>>>>>>>>>>>> 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-unsubscribe@tapestry.apache.org
>>>>>>>>>>>>> For additional commands, e-mail:
>>> users-help@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-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>>> 
>> 
>> 
>> --
>> *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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Gunnar Eketrapp <gu...@gmail.com>.
I have already answered to this.

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

2012/1/10 Muhammad Gelbana <m....@gmail.com>

> Shouldn't Gunnar decide first if the issue should be closed or not ?
>
> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com> 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 <mg...@masslight.net>
> > 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 <mg...@masslight.net>
> > wrote:
> > >> Hi Josh,
> > >>
> > >> Better late than never?  :-)
> > >>
> > >> Here is with 5.3.1, which still didn't help:
> > >>
> > >>
> >
> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> > >> 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:
> > >>
> > >> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
> > >>
> > >> The t:submit is defined as:
> > >>
> > >> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
> > >> value="Continue &gt;" tabindex="100" />
> > >>
> > >> Thanks,
> > >>
> > >> mrg
> > >>
> > >>
> > >> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <joshcanfield@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
> > >>> <gu...@gmail.com> 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 <m....@gmail.com>
> > >>>>
> > >>>>> 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
> > >>>>> <gu...@gmail.com>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 <m....@gmail.com>
> > >>>>> >
> > >>>>> > > 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
> > >>>>> > > <gu...@gmail.com>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 <gu...@gmail.com>
> > >>>>> > > >
> > >>>>> > > > > 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 <sm...@yahoo.com>
> > >>>>> > > > >
> > >>>>> > > > >> 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-unsubscribe@tapestry.apache.org
> > >>>>> > > > >> For additional commands, e-mail:
> > users-help@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-unsubscribe@tapestry.apache.org
> > >>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> *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

Posted by Muhammad Gelbana <m....@gmail.com>.
Shouldn't Gunnar decide first if the issue should be closed or not ?

On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bo...@gmail.com> 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 <mg...@masslight.net>
> 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 <mg...@masslight.net>
> wrote:
> >> Hi Josh,
> >>
> >> Better late than never?  :-)
> >>
> >> Here is with 5.3.1, which still didn't help:
> >>
> >>
> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> >> 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:
> >>
> >> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
> >>
> >> The t:submit is defined as:
> >>
> >> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
> >> value="Continue &gt;" tabindex="100" />
> >>
> >> Thanks,
> >>
> >> mrg
> >>
> >>
> >> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <jo...@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
> >>> <gu...@gmail.com> 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 <m....@gmail.com>
> >>>>
> >>>>> 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
> >>>>> <gu...@gmail.com>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 <m....@gmail.com>
> >>>>> >
> >>>>> > > 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
> >>>>> > > <gu...@gmail.com>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 <gu...@gmail.com>
> >>>>> > > >
> >>>>> > > > > 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 <sm...@yahoo.com>
> >>>>> > > > >
> >>>>> > > > >> 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-unsubscribe@tapestry.apache.org
> >>>>> > > > >> For additional commands, e-mail:
> users-help@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-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


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

Re: [5.3] JSONArray Error while submitting forms

Posted by Bob Harner <bo...@gmail.com>.
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 <mg...@masslight.net> 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 <mg...@masslight.net> wrote:
>> Hi Josh,
>>
>> Better late than never?  :-)
>>
>> Here is with 5.3.1, which still didn't help:
>>
>> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
>> 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:
>>
>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
>>
>> The t:submit is defined as:
>>
>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
>> value="Continue &gt;" tabindex="100" />
>>
>> Thanks,
>>
>> mrg
>>
>>
>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <jo...@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
>>> <gu...@gmail.com> 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 <m....@gmail.com>
>>>>
>>>>> 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
>>>>> <gu...@gmail.com>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 <m....@gmail.com>
>>>>> >
>>>>> > > 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
>>>>> > > <gu...@gmail.com>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 <gu...@gmail.com>
>>>>> > > >
>>>>> > > > > 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 <sm...@yahoo.com>
>>>>> > > > >
>>>>> > > > >> 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-unsubscribe@tapestry.apache.org
>>>>> > > > >> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Re: [5.3] JSONArray Error while submitting forms

Posted by Michael Gentry <mg...@masslight.net>.
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 <mg...@masslight.net> wrote:
> Hi Josh,
>
> Better late than never?  :-)
>
> Here is with 5.3.1, which still didn't help:
>
> t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
> 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:
>
> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">
>
> The t:submit is defined as:
>
> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
> value="Continue &gt;" tabindex="100" />
>
> Thanks,
>
> mrg
>
>
> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <jo...@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
>> <gu...@gmail.com> 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 <m....@gmail.com>
>>>
>>>> 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
>>>> <gu...@gmail.com>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 <m....@gmail.com>
>>>> >
>>>> > > 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
>>>> > > <gu...@gmail.com>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 <gu...@gmail.com>
>>>> > > >
>>>> > > > > 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 <sm...@yahoo.com>
>>>> > > > >
>>>> > > > >> 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-unsubscribe@tapestry.apache.org
>>>> > > > >> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>

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


Re: [5.3] JSONArray Error while submitting forms

Posted by Michael Gentry <mg...@masslight.net>.
Hi Josh,

Better late than never?  :-)

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

t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu
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:

<t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off">

The t:submit is defined as:

<t:submit id="continueButton" t:id="submitNext" style="width: 7em;"
value="Continue &gt;" tabindex="100" />

Thanks,

mrg


On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield <jo...@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
> <gu...@gmail.com> 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 <m....@gmail.com>
>>
>>> 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
>>> <gu...@gmail.com>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 <m....@gmail.com>
>>> >
>>> > > 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
>>> > > <gu...@gmail.com>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 <gu...@gmail.com>
>>> > > >
>>> > > > > 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 <sm...@yahoo.com>
>>> > > > >
>>> > > > >> 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-unsubscribe@tapestry.apache.org
>>> > > > >> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Re: [5.3] JSONArray Error while submitting forms

Posted by Massimo Lusetti <ml...@gmail.com>.
On Mon, Dec 12, 2011 at 10:21 PM, mart.schneider
<ma...@gmail.com> 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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Muhammad Gelbana <m....@gmail.com>.
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 <mg...@masslight.net>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
> <ma...@gmail.com> 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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


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

Re: [5.3] JSONArray Error while submitting forms

Posted by Michael Gentry <mg...@masslight.net>.
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
<ma...@gmail.com> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Re: [5.3] JSONArray Error while submitting forms

Posted by "mart.schneider" <ma...@gmail.com>.
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Josh Canfield <jo...@gmail.com>.
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
<gu...@gmail.com> 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 <m....@gmail.com>
>
>> 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
>> <gu...@gmail.com>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 <m....@gmail.com>
>> >
>> > > 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
>> > > <gu...@gmail.com>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 <gu...@gmail.com>
>> > > >
>> > > > > 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 <sm...@yahoo.com>
>> > > > >
>> > > > >> 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-unsubscribe@tapestry.apache.org
>> > > > >> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Seamus Minogue <sm...@yahoo.com>.
I too am using chrome... My form is simple, 5 radio buttons and a submit button.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Gunnar Eketrapp <gu...@gmail.com>.
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 <m....@gmail.com>

> 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
> <gu...@gmail.com>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 <m....@gmail.com>
> >
> > > 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
> > > <gu...@gmail.com>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 <gu...@gmail.com>
> > > >
> > > > > 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 <sm...@yahoo.com>
> > > > >
> > > > >> 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-unsubscribe@tapestry.apache.org
> > > > >> For additional commands, e-mail: users-help@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

Posted by Muhammad Gelbana <m....@gmail.com>.
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
<gu...@gmail.com>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 <m....@gmail.com>
>
> > 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
> > <gu...@gmail.com>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 <gu...@gmail.com>
> > >
> > > > 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 <sm...@yahoo.com>
> > > >
> > > >> 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-unsubscribe@tapestry.apache.org
> > > >> For additional commands, e-mail: users-help@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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
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 <m....@gmail.com>

> 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
> <gu...@gmail.com>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 <gu...@gmail.com>
> >
> > > 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 <sm...@yahoo.com>
> > >
> > >> 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-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@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

Posted by Muhammad Gelbana <m....@gmail.com>.
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
<gu...@gmail.com>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 <gu...@gmail.com>
>
> > 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 <sm...@yahoo.com>
> >
> >> 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-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
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 <gu...@gmail.com>

> 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 <sm...@yahoo.com>
>
>> 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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@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

Posted by Gunnar Eketrapp <gu...@gmail.com>.
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 <sm...@yahoo.com>

> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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

Posted by Seamus <sm...@yahoo.com>.
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Serge Eby <sd...@hotmail.com>.
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [5.3] JSONArray Error while submitting forms

Posted by Gunnar Eketrapp <gu...@gmail.com>.
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 <gu...@gmail.com>

> 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 <sd...@hotmail.com>
>
>> 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.<init>(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:
>>
>> ....
>>  <form t:type="form" t:id="upload" clientValidation="none">
>>        <ul>
>>            <li>
>>                <label t:type="label"  for="name"/>
>>                <input t:type="textfield" t:id="name" validate="required"/>
>>            </li>
>>            <li>
>>                <label t:type="label"  for="file"/>
>>                <input t:type="upload" t:id="file" validate="required"/>
>>            </li>
>>            <li>
>>                <input t:type="submit"   value="Upload" t:id="save" />
>>
>>                    <input type="button" value="Cancel"/>
>>
>>            </li>
>>        </ul>
>>    </form>
>> ...
>>
>>
>> --
>> 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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@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