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
