In a component you can throw a redirect just by asking it for the page
it's embedded in.

public void toggleLocale(IRequestCycle cycle)
{
   ((BorderEngine) getPage().getEngine()).toggleLocale();
   cycle.cleanup();
   throw new PageRedirectException(getPage());
}

Geoff



On 2/3/06, gcormier <[EMAIL PROTECTED]> wrote:
> Thanks.
>
> Unfortunately I can't use  throw new PageRedirectException(this); because I'm 
> using a Border component. So the border has this common french/english link 
> as well as other menu items.
>
> Would that callback still work?
>
> Thanks,
> Greg
>
>
> -------------------- m2f --------------------
>
> Sent from www.TapestryForums.com
>
> Read this topic online here: <<topic_link>>
>
> http://www.tapestryforums.com/viewtopic.php?p=14297#14297
>
> -------------------- m2f --------------------
>
>
>
>


--
The Spindle guy.          http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Blog:                     http://jroller.com/page/glongman
Feature Updates:          http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to