Ah, FireBug!! A great tool. It located
bad HTML in the custom component I was attempting to display. Once HTML fixed,
page refreshes as expected!
So when’s the next stable release of Tacos
coming out? I need to set my calendar! J
Paul
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jesse Kuhnert
Sent: Thursday, June 22, 2006 6:02
PM
To: Tacos
Developers
Subject: Re: [Tacos-devel]
Specific Req's on AjaxLinkSubmit.updateComponen ts param?
They can be the id's of
any tapestry component. You sometimes have to play around with the ids to make
sure you get them right. (as is the case with your situation I think)
If you want to be very sure, you can either use the FireBug extension in
Firefox to view what ajax
responses you are getting, or use the DebugConsole component included in the
latest tacos builds.
On 6/22/06, Paul
Tongyoo <[EMAIL PROTECTED]>
wrote:
I just checked my page source and, not only are the ID's
correct – but the expected HTML source after the AJAX call was included in the
source as well. I'm assuming the expected HTML was contained
in the source after the browser re-retrieved the page after the relevant
session properties were set by the LinkSubmit listener.
So the HTML id's we specify in the 'updateComponents' param …
can they be ID's of any HTML element? Or must the elements by block
elements? Or @Any components?
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jesse Kuhnert
Sent: Thursday, June 22, 2006 5:39
PM
To: Tacos
Developers
Subject: Re: [Tacos-devel]
Specific Req's on AjaxLinkSubmit.updateComponents param?
Ahh...This ~might~ be a tiny issue with the @Any
component. If you view the html source of your "rendered" page what
are the ID attributes of the any tags?
You may have to write your @Any components to look like this to get them to
work:
<span jwcid="[EMAIL PROTECTED]" id="ajaxArea2" />
It's a little annoying I know, and only happens with Any's. ..(it has been
fixed in Tapestry 4.1 )
On
6/22/06, Paul Tongyoo <[EMAIL PROTECTED]>
wrote:
So I've
run into some odd behavior: my AjaxLinkSubmit seems to only refresh
a specified DIV element if it contains "simple" contents like plain
HTML
text or a Tapestry component (i.e. @Insert). However, when I place
one of
my own custom components (which is most likely breaking the situation, I
know ☺ ), the link will not refresh the specified DIV and subsequently
clicking the link erroneously sends me to the http://localhost:80 URL.
The following is the relevant code:
//HTML excerpt
<a jwcid="@tacos:AjaxLinkSubmit"
action="">
updateComponents="ognl:{'ajaxArea', 'ajaxArea2'}">
My AjaxLinkSubmit Link!
</a>
<div jwcid="@Any" id="ajaxArea">
<span
jwcid="@Insert" value="ognl:testLabel">Test
Label</span>
</div>
<div jwcid="@Any" id="ajaxArea2">
<span
jwcid="RelateTool">Relate Tool Placeholder</span>
<!-- <span
jwcid="@Insert" value="ognl:testLabel2">Test label
2</span> -->
</div>
In the above example, the ajaxArea2 would not refresh. However, if I
commented out my custom component, and uncommented the @Insert component,
everything works fine and dandy. This leads me to believe there's
something
in my component's template that AjaxLinkSubmit does not like? What
are the
rules regarding what's specified in the 'updateComponents' parameter?
Thanks all for help! And thanks Sam for that tip!
Paul
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
|
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel