Hi, since I hope to help other Tapestry newbies, let me share the
solution to my hours of battle.  This was a total noob mistake that
bothered me over a couple weeks.

Background:
I had a home page that was using a Border component.  Everything was fine.
Made a component that had an AJAX autocompleter in it.  Embedded the
component in the home page.  Oh, well I needed to add the @Shell
component to the home page so that the home page will get the
necessary scripts inserted.

Everything is fine at this point.

Several times I tried to move the @Shell component from my Home page
to my Border component.  Each time my AJAX subcomponent would break.

Stupid problem:
I just noticed that my Home page had been set up like this:

<html>
<body jwcid="$content$">
<span jwcid="@Border" title="Home Title">
Blah Blah Blah Blah Blah Blah Blah Blah
</span>
<span jwcid="@tests/AJAXComponent" />
</body>
</html>

The AJAX component wasn't working because it was outside of the @Border span!

Specific Symptoms:
The component was still rendering, and the error handling and form
submit still worked, but the autocompleter was not getting it's
selection model or updating itself.


Solution:

<html>
<body jwcid="$content$">
<span jwcid="@Border" title="Home Title">
Blah Blah Blah Blah Blah Blah Blah Blah
<span jwcid="@tests/AJAXComponent" />
</span>
</body>
</html>

Now my Border happily uses the Shell component for all my pages...for now. =)

Daniel

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

Reply via email to