Do you have a link to the latest demo
source? Or is the Tacos4 Beta 2 demo src sufficient? The HTML in the sample
should be as mundane as it appears …
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jesse Kuhnert
Sent: Wednesday, June 21, 2006
3:40 PM
To: Tacos
Developers
Subject: Re: [Tacos-devel]
AjaxLinkSubmit rendering a "blank" HREF value? (wa s: RE: [Tacos-d
evel] Hello Tacos Developers!)
Hard to say at this
point. The demo source should be the best reference as everything there is
theoretically working correctly? (right? heh)
The line mentioning /web-inf/jsp/error.jsp sounds like trouble though. Are you
sure this very simple page layout is as simply laid out as you think?
On 6/21/06, Paul
Tongyoo <[EMAIL PROTECTED]>
wrote:
I can tab through the "hidden links" in Mozilla and
see the link URL in my status bar. When activating the AjaxLinkSubmit
link, the same DEBUG messages appear in my browser.
From: Paul Tongyoo
Sent: Wednesday, June 21, 2006
3:17 PM
To: 'Tacos
Developers'
Subject: RE: [Tacos-devel]
AjaxLinkSubmit rendering a "blank" HREF value? (wa s: RE: [Tacos-d
evel] Hello Tacos Developers!)
More clues: Looks like, although nothing shows in
Mozilla – the links DO show in IE, AND I'm actually seeing debug messages once
I click the AjaxLinkSubmit. The following DEBUG messages appear below the
links after clicking them:
DEBUG:
AjaxFormSubmit submission - before onsubmit
DEBUG:
Received error response of type error with error XMLHttpTransport Error: 404
/WEB-INF/jsp/error.jsp
Are there known compatibility issues between Mozilla and IE?
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jesse Kuhnert
Sent: Wednesday, June 21, 2006
3:09 PM
To: Tacos
Developers
Subject: Re: [Tacos-devel]
AjaxLinkSubmit rendering a "blank" HREF value? (wa s: RE: [Tacos-d
evel] Hello Tacos Developers!)
Add parseWidgets:false to your djConfig setting as
well. (makes render much faster). Also set isDebug:true so that you can see any
errors dojo/tacos may be outputting. They both use the same client side logging
mechanism.
Wait, didn't notice -- when I rendered the demo without
the dojo inclusion,
I DID get JS errors. I updated the demo to the following:
<div jwcid="@Shell" title="Tacos AjaxLinkSubmit
Test Page">
<!-- DOJO Inclusion for Tacos Usage -->
<script
type="text/_javascript_">
var djConfig = { isDebug:
false,
baseRelativePath:
"ui/js/dojo/",
preventBackButtonFix:
false };
</script>
<script
type="text/_javascript_"
src="">
<div
jwcid="@Body">
<div
jwcid="@tacos:AjaxForm">
<div
jwcid="@tacos:AjaxLinkSubmit">
My
AjaxLinkSubmit Link!
</div>
<div
jwcid="@LinkSubmit">
My
LinkSubmit Link!
</div>
</div>
</div>
And now the links do not show up at all! (and no JS
errors :) !) I must be
including Dojo incorrectly?
-----Original Message-----
From: Paul Tongyoo
Sent: Wednesday, June 21, 2006 2:58 PM
To: 'Tacos Developers'
Subject: RE: [Tacos-devel] AjaxLinkSubmit rendering a
"blank" HREF value?
(was: RE: [Tacos-d evel] Hello Tacos
Developers!)
Tapestry.register_form('AjaxForm');
dojo.event.connect(window, "onload", function(e) {
dojo.event.connect(dojo.byId("AjaxLinkSubmit",
"onclick", document,
"AjaxFormSubmit_AjaxForm";});
dojo.event.connect(window, "onload", function(e) {
dojo.event.connect(dojo.byId("AjaxForm",
"onsubmit", document,
"postAjaxFormForm"; });
(On a side note, I noticed I didn't have to explicitly include
the dojo.js
script in my demo, and yet the JS still got generated in my
Demo. Does this
mean I don't need to include the JS in my application codebase as
well?)
________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Jesse
Kuhnert
Sent: Wednesday, June 21, 2006 2:52 PM
To: Tacos Developers
Subject: Re: [Tacos-devel] AjaxLinkSubmit rendering a
"blank" HREF value?
(was: RE: [Tacos-d evel] Hello Tacos
Developers!)
Ah....So then if clicking the link takes you to the root folder
that means
it is not correctly being hooked up via dojo.event.connect() .
There should be some _javascript_ output on your page towards the
bottom that
does form initialization stuff as well as connecting some of
these links to
the form. (as you can see by viewing page source on the demo)
Does this stuff get output on the page? If so, what does it look
like?
On 6/21/06, Paul Tongyoo <[EMAIL PROTECTED] > wrote:
I am able to reach the JS file. --Paul
________________________________________
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of
Jesse Kuhnert
Sent: Wednesday, June 21, 2006 2:33 PM
To: Tacos Developers
Subject: Re: [Tacos-devel] AjaxLinkSubmit rendering a
"blank" HREF value?
(was: RE: [Tacos-d evel] Hello Tacos
Developers!)
You'll know if you included the js correctly if you can hit that
dojo.js
file from the url you expect to be able to. (Ie try typing the
url into your
browser and see if the dojo.js file source gets displayed)
On 6/21/06, Jesse Kuhnert <[EMAIL PROTECTED] > wrote:
Ah, no not in the case if tacos. There should be some additional
dojo
_javascript_ call on the page that hooks clicking the
AjaxLinkSubmit up to the
form.
You can see this same behaviour in the currently un-published
demo as well:
http://opencomponentry.com:8080/tacos/
Does the link not work when you click on it? What does happen? If
you are
running FF, do you see any JS errors?
On 6/21/06, Paul Tongyoo <[EMAIL PROTECTED] > wrote:
Surprisingly, this teeny example sufficiently recreates the
problem in my
environment.The following code is all that is contained in a
test.html
file I have:
<div jwcid="@Shell" title="Tacos AjaxLinkSubmit
Test Page">
<div jwcid="@Body">
<div jwcid="@tacos:AjaxForm">
<div jwcid="@tacos:AjaxLinkSubmit">
My AjaxLinkSubmit Link!
</div>
<div jwcid="@LinkSubmit">
My LinkSubmit Link!
</div>
</div>
</div>
</div>
When hovering over the LinkSubmit component, I see the expected
'_javascript_:Tapestry.submit_form('AjaxForm', 'LinkSubmit');' as
the URL.
However, when I hover over the AjaxLinkSubmit component, I see
this:
'http://localhost:7050/'.Shouldn't
I see a generated _javascript_ command
similar to the one created for the LinkSubmit href?
________________________________________
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED]
] On Behalf Of Jesse
Kuhnert
Sent: Wednesday, June 21, 2006 2:04 PM
To: Tacos Developers
Subject: Re: [Tacos-devel] AjaxLinkSubmit rendering a
"blank" HREF value?
(was: RE: [Tacos-d evel] Hello Tacos
Developers!)
Hmmm... Maybe a very small example of how you are using it (so we
can get a
better idea with context) ? It should work fine as you describe I
think.
On 6/21/06, Paul Tongyoo < [EMAIL PROTECTED]>
wrote:
Downloaded the 6.16.2006 build and replicated the same error.
While I wait
for the next nightly, would you know of any strict usage
requirements of the
AjaxLinkSubmit component that I may be missing? I have the
component
wrapped with an AjaxForm; otherwise, I'm not doing anything fancy
other than
specifying a component id using the 'updateComponents' parameter.
The id
I'm using is the Tapestry Id I gave for the component containing
the
AjaxLinkSubmit (don't know if that would cause a problem?), as I
update a
state variable of the containing component which I motivates a
view change
onscreen. I'm assuming the ID's used in the 'updateComponents'
collection
correspond to the Tapestry component ID's. Not entirely sure
though as the
Tacos example page for AjaxLinkSubmit specifies both a component
Id and an
HTML Id for their component.
Paul
P.S. – Is this mailing list archived in a searchable way? I'd
clutter your
guys' boxes with trivial, previously-asked questions. Or at
least, I want
keep those mails to a minimum. ☺
________________________________________
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED] ] On Behalf Of
Jesse
Kuhnert
Sent: Wednesday, June 21, 2006 12:06 PM
To: Tacos Developers
Subject: Re: [Tacos-devel] Hello Tacos
Developers!
It is hard to say with that alone, but I would reccomend
upgrading to the
latest nightly http://tacos.sourceforge.net/nightly/ before doing anything
else. It should be released soon from what I hear.
On 6/21/06, Paul Tongyoo < [EMAIL PROTECTED]>
wrote:
Awesome! Good to know there's a community out there – I'm brand
new to
Tacos and a relatively new Tapestry developer. Just integrated
the Tacos4
Beta 2 into our application, and am trying to convert a
LinkSubmit into an
AjaxLinkSubmit. For some reason the resulting href of the
rendered <a>
component is "/" and not any meaningful tapestry URL.
Any ideas? Please
let me know of any other additional information that you need
regarding the
environment – I'm running Tapestry 4.0.2.
Paul
________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Jesse
Kuhnert
Sent: Wednesday, June 21, 2006 11:39 AM
|