GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Reaction::UI::Controller::Role::Action::List(3) User Contributed Perl Documentation Reaction::UI::Controller::Role::Action::List(3)

Reaction::UI::Controller::Role::Action::List - List action

Provides a "list" action, which sets up an Collection Viewport using the collection contained in the "collection" slot of the stash, if present, or using the object returned by the method "get_collection".

    package MyApp::Controller::Foo;
    use base 'Reaction::Controller';
    use Reaction::Class;
    with(
      'Reaction::UI::Controller::Role::GetCollection',
      'Reaction::UI::Controller::Role::Action::Simple',
      'Reaction::UI::Controller::Role::Action::List'
    );
    __PACKAGE__->config( action => {
      list => { Chained => 'base' },
    } );
    sub base :Chained('/base') :CaptureArgs(0) {
      ...
    }

This role also consumes the following roles:

The following methods must be provided by the consuming class:

"get_collection"

Chain endpoint with no args, sets up the viewport with the appropriate action.

Extends to set the "list" key in the map to Reaction::UI::ViewPort::Action

See Reaction::Class for authors.

See Reaction::Class for the license.

Hey! The above document had some coding errors, which are explained below:

Unknown directive: =over4
'=item' outside of any '=over'
Unknown directive: =over4
'=item' outside of any '=over'
Unknown directive: =over4
'=item' outside of any '=over'
2010-10-29 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.