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
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;
) ) {
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
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
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
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