On 11/12/06, Aaron Trevena <[EMAIL PROTECTED]> wrote:
Hi

On 11/11/06, Anton Daneika <[EMAIL PROTECTED]> wrote:
> Is there a way to pass parameters to components? E.g. I'd like to use /list
> action as a component and do something like
> [% request.component("some_object/list/?page=some_number");
> %]
> in my frontpage template.
> As I recall from manuals it is not possible to do it this way, but maybe
> there's known workaround?

From The Manual (v 2.11) :

"You may pass a query string in the usual URL style."


Well, I can't get it to work and would be grateful to anyone for help.

Here's what I do:

in Beer.pm change line
BeerDB->config->rows_per_page(10);
to
BeerDB->config->rows_per_page(1);
to make a lot of pages out of couple of beers.

Create a custom frontpage in templates dir (templates/custom/frontpage) saying just one line:
[% request.component("beer/list/?page=2"); %]

Now I point my browser to http://beerdb.dev/cgi-bin/beer.cgi/ and unfortunately I get the first page instead of the second... 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to