[jifty-devel] Continuations with URL query parameters

Sean E. Millichamp sean at bruenor.org
Sun Dec 10 18:29:14 EST 2006

I have the following use of continuations and parameters in templates:

<% Jifty->web->tangent( url => "/host/detail", label => "Detail",
	parameters => { hostid => $host->id } ) %>

<% Jifty->web->tangent( url => "/host/createnetwork", 
	label => "Add" ) %>

<% Jifty->web->return( submit => $action ) %>

I go to the URL: http://localhost:8888/host/index.html
Then I click on "Detail", which ends up being a link to something like: 
The detail page shows fine.  Then I click on the "Add" link which does a
tangent to /host/createnetwork.  When it returns I get sent back
to /host/detail, but hostid=2 is no longer passed in to <%args> and I
get a Mason error of "no value sent for required parameter 'hostid'".

My question is: how can I do this (pass simple state through) and have
continuations preserve it?  I thought 'tangent' was supposed to do that,
but it doesn't seem to preserve URL query parameters.  Is that a bug or
am I just going about this the wrong way?


More information about the jifty-devel mailing list