diff Lib/IMPL/Web/Application/Resource.pm @ 244:a02b110da931

refactoring fixed binding to CGI query parameters with multiple values
author sergey
date Mon, 22 Oct 2012 04:09:27 +0400
parents 6d8092d8ce1b
children 7c517134c42f
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/Resource.pm	Fri Oct 19 02:23:15 2012 +0400
+++ b/Lib/IMPL/Web/Application/Resource.pm	Mon Oct 22 04:09:27 2012 +0400
@@ -4,6 +4,7 @@
 use IMPL::Const qw(:prop);
 use IMPL::declare {
     require => {
+        ViewResult          => 'IMPL::Web::ViewResult',
         Exception           => 'IMPL::Exception',
         ArgumentException   => '-IMPL::InvalidArgumentException',
         OperationException  => '-IMPL::InvalidOperationException',
@@ -50,6 +51,8 @@
           allow => join( ',', map( uc, keys %{ $this->contract->verbs } ) )
       )
         unless $operation;
+        
+      $action->context->{resourceLocation} = $this->location; 
 
       return $operation->Invoke( $this, $action );
 }