Actually, I just tried changing the store to a string and I get the same
behavior.

-----Original Message-----
From: andreas a [mailto:[EMAIL PROTECTED] On Behalf Of andyhot
Sent: Wednesday, December 13, 2006 5:08 PM
To: Tapestry users
Subject: Re: Problem w/ Tacos AjaxForm & AjaxSubmit

There's a server side error...

You're using a textfield and trying to store the string into a double.
You need a translator

See NumberTranslator at
http://tapestry.apache.org/tapestry4.1/usersguide/validation.html

Try opening the

Leffel, Daniel wrote:
> My project uses Tacos 4.0.1 and Tapestry 4.0.2. I'm trying to
implement
> a simple AjaxForm. I've confirmed the listener method is being called
> but then the form does a postback. The debug console reads " Received
> error response of type error with error XMLHttpTransport Error: 0".
What
> error is 0?
>
> My code below:
> ---------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE page-specification PUBLIC 
>     "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
>     "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>
> <page-specification
> class="com.savedsearchpro.priceitright.web.action.PlayGame">
> <component id="entryForm" type="tacos:AjaxForm" >
>               <binding name="updateComponents"
> value="ognl:{'entryForm'}" />
>               <binding name="listener"
> value="listener:updateGameEntry" />
> </component>
> </page-specification>
>
> ----------------------------------
> public abstract class PlayGame extends BasePage {     
>       @Persist
>       public abstract Double getGuess();
>       public abstract void setGuess(Double guess);
>
> public void updateGameEntry(IRequestCycle cycle){
>       
>     } 
> }
>
> -----------------------------------
> <html jwcid="@Shell">
> <script type="text/javascript">
>               djConfig = { isDebug: true,
>              baseRelativePath: "js/dojo/",
>              preventBackButtonFix: false
>            };
> </script>
> <script type="text/javascript" src="js/dojo/dojo.js"></script>
> <body jwcid="@Body">
>       <form jwcid="entryForm">
>               <fieldset>
>               <legend>Guess</legend>
>               <input jwcid="[EMAIL PROTECTED]" value="ognl:guess" />
>               <input jwcid="@tacos:AjaxSubmit"/>  
>       </form>
> </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to