On 21 Sep 2004 at 14:21, David R. Baird wrote:
>
> You'll need to encode your arguments as a url query string and append
> them to the path. But if 'current' is the current request, you can
> get a whole Maypole request object for it inside
> /camera/select_snapshot from $ARGS{request}->{parent}
Or you could use a Mason subrequest instead of a Maypole subrequest:
<% $m->subexec( comp => "/camera/select_snapshot", args => [ current
=> "http://localhost/person/get_snapshot/1" ] ) %>
Inside the subrequest you can get the original Mason request from
$m->parent_request, from which you can probably extract the
information you want to pass in the 'current' argument.
d.
> On 21 Sep 2004 at 8:29, Brian Glass wrote:
>
> > I'm using Maypole::Component (in conjunction with HTML::Mason) and
> > wondering if there is any way to pass a value to a component call.
> > Something like:
> >
> > <% $request->component( "/camera/select_snapshot", current =>
> > "http://localhost/person/get_snapshot/1" ) %>
> >
> > Unfortunately the value passed for "current" never seems to get there.
> >
> > _______________________________________________
> > maypole mailing list
> > maypole at lists.netthink.co.uk
> > http://lists.netthink.co.uk/listinfo/maypole
>
>
>
>
> --
> Dr. David R. Baird
> Riverside Content Management Systems
> http://www.riverside-cms.co.uk
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
-- Dr. David R. Baird Riverside Content Management Systems http://www.riverside-cms.co.uk_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT