<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Actually, I found the documentation in Catalyst::DispatchType::Chained
to be fairly comprehensive.&nbsp; You might want to give it a once-over.<br>
<br>
Steve<br>
On 4/15/2010 8:48 AM, Johannes Kilian wrote:
<blockquote cite="mid:4BC70B20.9000405@gmx.de" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
Thank you - that was the problem ...<br>
  <br>
It's difficult to find a documented entry to this
(Chained/Args/CaptureArgs ...) with (nearly) zero knowledge.<br>
  <br>
Jo<br>
  <br>
Am 15.04.2010 14:34, schrieb Steve:
  <blockquote cite="mid:4BC707EC.3070507@matsch.com" type="cite">
    <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
The final 'link' in the chain must have :Args(1) instead of
CaptureArgs(1).&nbsp; This subtlety is what tells the dispatcher that this
is the last link in the chain.<br>
    <br>
Steve<br>
    <div class="moz-signature">
    <div align="center"><br>
    <br>
    </div>
    </div>
    <br>
On 4/15/2010 8:24 AM, Johannes Kilian wrote:
    <blockquote cite="mid:4BC7056A.8000800@gmx.de" type="cite">
      <pre wrap="">Hi there,

I'm pretty at the beginning of understanding how catalyst works - and
have a problem to figure out the chaining mechanism ...

I've got a simple basic catalyst project with only the root controller -
containing the following code:

---
sub base_method : Chained('/') PathPart('test') CaptureArgs(0) {
  my ( $self, $c ) = @_;
  $c-&gt;log-&gt;debug("Matched testIt::Controller::Root::base_method");
}

sub view : Chained('base_method') PathPart('') CaptureArgs(1) {
  my ( $self, $c, $id) = @_;
  $c-&gt;log-&gt;debug("Matched testIt::Controller::Root::view - id:&lt;$id&gt;");
}
---
(I just commented out the default-Function in the Root-Controller and
put the above lines in ...)

Starting my server (testIt_server.pl) gives the following output:
---
...
.----------------------------------------------------------+----------.
| Class                                                    | Type     |
+----------------------------------------------------------+----------+
| testIt::Controller::Root                                 | instance |
'----------------------------------------------------------+----------'

[debug] Loaded Private actions:
.----------------------+-------------------------------+--------------.
| Private              | Class                         | Method       |
+----------------------+-------------------------------+--------------+
| /base_method         | testIt::Controller::Root      | base_method  |
| /end                 | testIt::Controller::Root      | end          |
| /view                | testIt::Controller::Root      | view         |
'----------------------+-------------------------------+--------------'

[debug] Loaded Chained actions:
.-------------------------------+--------------------------------------.
| Path Spec                     | Private                              |
+-------------------------------+--------------------------------------+
'-------------------------------+--------------------------------------'
...
---


Why are there no entries in the table "[debug] Loaded Chained actions"?

Running the test-server using address <a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="http://pcjok:3000/test/1">"http://pcjok:3000/test/1"</a> (which
I suppose to work) leads to "Unknown resource "test/1""...

What's wrong?
(Running ActiveState Perl 5.8.8, Catalyst 5.80012 on WinXP SP2 - for
some reasons I'm bound to this environment ...)

Any help welcome!
Thanks in advance ..
Jo

_______________________________________________
List: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a moz-do-not-send="true"
 class="moz-txt-link-freetext"
 href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>
  </pre>
      <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>

No virus found in this incoming message.
Checked by AVG - <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 9.0.801 / Virus Database: 271.1.1/2811 - Release Date: 04/14/10 14:31:00

  </pre>
    </blockquote>
    <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
List: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a moz-do-not-send="true"
 class="moz-txt-link-freetext"
 href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>
  </pre>
  </blockquote>
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
List: <a class="moz-txt-link-abbreviated" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>
  </pre>
</blockquote>
</body>
</html>