Jesse,
This problem has to do with the same problem I emailed about a few days
ago that components nested within a dialog aren't updating.

I finally boiled this down to this:
If the autocompleter is not nested within the dialog, it works
perfectly. Here is the firebug output:
filter  US
json    true
updateParts     parentRegionChooser

In that case, the following Get returns a JSON response with the
expected content:
http://127.0.0.1:8080/vino/AdminRegions,parentRegionChooser.sdirect?json
=true&updateParts=parentRegionChooser&filter=US


However, if the autocompleter is placed within the dialog, the exact
same request returns an empty JSON response. This sounds eerily familiar
to the problem where if I didn't simply update the entire dialog
(instead updating components within in), I was getting empty AJAX
responses.

I changed my log4j.properities as instructed, but my debug looks like
this:

RequestCycle [DEBUG] Committing page changes
BaseComponent [DEBUG] Begin render AdminRegions
RequestCycle [DEBUG] Set attribute org.apache.tapestry.html.Shell to
[EMAIL PROTECTED]/$Shell]
ComponentEventConnectionWorker [DEBUG] Constructing core service
implementation for service
tapestry.render.ComponentEventConnectionWorker
ComponentEventConnectionWorker [DEBUG] Autowired property classResolver
to [EMAIL PROTECTED]
ComponentEventConnectionWorker [DEBUG] Set property eventInvoker to
<SingletonProxy for
tapestry.event.EventInvoker(org.apache.tapestry.internal.event.IComponen
tEventInvoker)>
ComponentEventConnectionWorker [DEBUG] Set property eventEngine to
<SingletonProxy for
tapestry.event.DirectEvent(org.apache.tapestry.engine.IEngineService)>
ComponentEventConnectionWorker [DEBUG] Set property componentScript to
/org/apache/tapestry/ComponentEvent.script
ComponentEventConnectionWorker [DEBUG] Set property widgetScript to
/org/apache/tapestry/dojo/html/WidgetEvent.script
ComponentEventConnectionWorker [DEBUG] Set property elementScript to
/org/apache/tapestry/html/ElementEvent.script
ComponentEventConnectionWorker [DEBUG] Set property scriptSource to
<SingletonProxy for
tapestry.script.ScriptSource(org.apache.tapestry.engine.IScriptSource)>
RequestCycle [DEBUG] Set attribute org.apache.tapestry.Form to
[EMAIL PROTECTED]/mainForm]
BeanProvider [DEBUG] getBean(defaultDelegate)
BeanProvider [DEBUG] Instantiating instance of
org.apache.tapestry.valid.ValidationDelegate
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Set attribute <unique>
classpath:/org/apache/tapestry/link/DirectLink.script, line 10, column
13 to true
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to false
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_2]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_3]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
IfBean [DEBUG] Condition was true so rendering
[EMAIL PROTECTED]/$If]
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_0]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_1]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to true
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to false
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_2]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_3]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
ResponseBuilder [DEBUG] BEGIN isDynamic()
ResponseBuilder [DEBUG] END isDynamic() [true]
ResponseBuilder [DEBUG] BEGIN
contains([EMAIL PROTECTED]/$For])
ResponseBuilder [DEBUG] END contains() [false]
RequestCycle [DEBUG] Set attribute org.mb.tapestry.base.IfValue to false
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_2]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.active-link-component to
[EMAIL PROTECTED]/$DirectLink_3]
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.active-link-component
RequestCycle [DEBUG] Set attribute org.apache.tapestry.field-focused to
true
RequestCycle [DEBUG] Set attribute
org.apache.tapestry.services.impl.ComponentEventConnectionFormNames-main
Form to []
RequestCycle [DEBUG] Set attribute <unique>
classpath:/org/apache/tapestry/ComponentEvent.script, line 12, column 17
to true
RequestCycle [DEBUG] Removing attribute org.apache.tapestry.Form
ResponseBuilder [DEBUG] BEGIN
writeBodyScript([EMAIL PROTECTED],
RequestCycle[rewinding=false serviceName=direct
serviceParameters=[Ljava.lang.Object;@e1e7e3 loadedPages=[AdminRegions]
attributes={org.apache.tapestry.services.impl.ComponentEventConnectionFo
rmNames-mainForm=[mainForm], org.apache.tapestry.field-focused=true,
[EMAIL PROTECTED]/$Shell],
org.apache.tapestry.PageRenderSupport=org.apache.tapestry.util.PageRende
[EMAIL PROTECTED], org.mb.tapestry.base.IfValue=false, <unique>
classpath:/org/apache/tapestry/link/DirectLink.script, line 10, column
13=true, <unique> classpath:/org/apache/tapestry/ComponentEvent.script,
line 12, column 17=true} targetActionId=0 targetComponent=null])
ResponseBuilder [DEBUG] END writeBodyScript()
ResponseBuilder [DEBUG] BEGIN
writeInitializationScript([EMAIL PROTECTED])
ResponseBuilder [DEBUG] END writeInitializationScript()
BeanProvider [DEBUG] getBean(coreAjaxDelegate)
BeanProvider [DEBUG] Instantiating instance of
org.apache.tapestry.dojo.AjaxShellDelegate
BeanProvider [DEBUG] Initializing property dojoSource
BeanProvider [DEBUG] Initializing property dojoPath
BeanProvider [DEBUG] Initializing property tapestrySource
BeanProvider [DEBUG] Initializing property tapestryPath
BeanProvider [DEBUG] Initializing property logLevel
BeanProvider [DEBUG] Initializing property debug
BeanProvider [DEBUG] Initializing property debugAtAllCosts
BeanProvider [DEBUG] Initializing property debugContainerId
BeanProvider [DEBUG] Initializing property consoleEnabled
BeanProvider [DEBUG] Initializing property preventBackButtonFix
BeanProvider [DEBUG] Initializing property parseWidgets
RequestCycle [DEBUG] Removing attribute org.apache.tapestry.html.Shell
BaseComponent [DEBUG] End render AdminRegions
RequestCycle [DEBUG] Removing attribute
org.apache.tapestry.PageRenderSupport
BeanProvider [DEBUG] Removing REQUEST bean defaultDelegate:
[EMAIL PROTECTED]
BeanProvider [DEBUG] Removing REQUEST bean coreAjaxDelegate:
[EMAIL PROTECTED]
ExceptionTranslationFilter [DEBUG] Chain processed normally
ExceptionTranslationFilter [DEBUG] Chain processed normally
HttpSessionContextIntegrationFilter [DEBUG] SecurityContextHolder set to
new context, as request processing completed
TransactionSynchronizationManager [DEBUG] Removed value
[EMAIL PROTECTED] for key
[EMAIL PROTECTED] from thread
[http-8080-Processor23]
OpenSessionInViewFilter [DEBUG] Closing single Hibernate Session in
OpenSessionInViewFilter
SessionFactoryUtils [DEBUG] Closing Hibernate Session
SessionImpl [DEBUG] closing session

-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 07, 2007 6:01 PM
To: Tapestry users
Subject: Re: Autocompleter in 4.1.2

Without anything else to go on I'd say that no json request is being
made, or no json request is being made specifying
updateParts:whateverTheNameOfYourAutocompleterIs.

My Firebug output from these requests hitting the 4.1 demo is:

request:
filter  (means nothing, blank, null)
json    true
updateParts     projectChoose

It doesn't look like your debug logs are displaying everything
either...You could cut down on some of the noise by turning off all
that other stuff and enabling the categories documented here:

http://tapestry.apache.org/tapestry4.1/ajax/debugging.html

Then you'll be able to see each method of the response getting
invoked, as well as which arguments are used and what the return value
was. (ie everything you need to know why something wouldn't be getting
rendered. )

On 3/7/07, Leffel, Daniel <[EMAIL PROTECTED]> wrote:
> I put a logger line in the getValues method and noticed that the
method is not being called. Why would that be?
>
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> Sent: Wed 3/7/2007 5:23 PM
> To: Tapestry users
> Subject: Re: Autocompleter in 4.1.2
>
> :) There's no chance the autocompleter is messing up. (ok that's bold,
> it's very unlikely )
>
<snipped>

-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

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

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