T5: How to create an external URL to a Tapestry page?

2008-02-12 Thread Travis McLeskey
For example, if one wanted to generate a complete URL (including protocol, server name, and port) and send it in an email. I tried ComponentResources.createActionLink() and Component.createPageLink(), but the Link objects returned by those methods do not include the server name, etc. In T

Re: how to redirect to another page from a component?

2008-02-10 Thread Travis McLeskey
false for redirect refering to the state diagram http://tapestry.apache.org/tapestry5/tapestry-core/guide/ rendering.html Travis McLeskey wrote: Ah, thanks, that works for me. Here's what I did: @Inject private Response response; @Inject private LinkFactory linkFactory;

Re: how to redirect to another page from a component?

2008-02-10 Thread Travis McLeskey
) ) { try { response.sendRedirect("") } catch (Exception e) {} return false; } } Travis McLeskey wrote: In a page, you can listen for the "activate" event and, for example, if the user doesn't have permission to view that page, you can return a value (Page, Class

how to redirect to another page from a component?

2008-02-10 Thread Travis McLeskey
In a page, you can listen for the "activate" event and, for example, if the user doesn't have permission to view that page, you can return a value (Page, Class, String, etc.) that triggers a redirect to another page. Is it possible to do the same when a component is loading/rendering? Com

Re: T5: ActionLink/Zone components inside a loop (solved, sort of)

2008-02-10 Thread Travis McLeskey
expanded = true; } return false; }; } }; Tapestry.initializeZones = function(zoneSpecs, linkSpecs) { $A(linkSpecs).each(function (spec) { MyObj.linkZone(spec[0],spec[1]); }); }; Hope that helps! Travis On Feb 8, 2008, at 11:40 PM, Travis McLeskey wrote

T5: ActionLink/Zone components inside a loop

2008-02-09 Thread Travis McLeskey
When an ActionLink and Zone appear together in a loop like this: go! in the zone? Clicking the "go!" link from any iteration only affects the Zone from the first iteration. How do I connect each ActionLink to its corresponding Zone? I tried injecting the Zone into the java class and