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]