Sounds like a bug to me..

What happens if you add this to the bottom of your html page?

<script type="text/javascript">
dojo.require("dojo.widget");
</script>

On 4/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Been trying for some time know to get an AjaxForm working.
> All my tests end up with something like...
>
> DEBUG: AjaxForm submission using form submit.
> DEBUG: ERROR: On line 483 of document
>
> http://localhost/testapp/app?digest=b28ed13c10dc1486db25d6aa85688eec&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Ftacos.js&service=asset
> :
> dojo.widget has no properties
>
> The script asset and the referenced line is:
>
>   //Experimental
>   kwArgs["content"]["widgetids"] = dojo.widget.manager.widgetIds.join
> (",");
> <-- this is the line!
>   dojo.debug("visible widgets set to:" + kwArgs["content"]["widgetids"]);
>
> That experimental doesn't give much assurance! :-S
>
> My code is as follows...
>
> html template
> (...)
>     <form jwcid="myform">
>         <span class="autoCompleter" jwcid="departmentName" />
>         <input type="submit" jwcid="@Submit" value="OK"/>
>     </form>
> (...)
>
> page specification
>
> <?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.teamware.delegateit.view.pages.Test">
>     <inject property="ajaxRequest" object="service:tacos.AjaxWebRequest"
> />
>
>     <property name="noteValue" persist="session" />
>     <property name="searchList"
>           initial-value="ognl:new java.util.ArrayList()" />
>
>     <component id="myform" type="tacos:AjaxForm">
>         <binding name="listener" value="listener:showDepartment"/>
>         <binding name="updateComponents" value="ognl:{'record'}"/>
>         <binding name="statusElement" value="literal:status" />
>     </component>
>
>     <component id="departmentName" type="tacos:Autocompleter" >
>       <binding name="value" value="ognl:noteValue" />
>       <binding name="listSource" value="ognl:searchList" />
>       <binding name="listener" value="listener:searchDepartments" />
>       <binding name="direct" value="ognl:true" />
>     </component>
>
> </page-specification>
>
>
> The autocompleter works perfectly, but the form I can't put it up!
> Help!
>
>
> --
> Pedro Viegas
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.  http://opennotion.com

Reply via email to