From 7b5e71adcc00ae151a7908c2cddcd7323408efc7 Mon Sep 17 00:00:00 2001 From: groditi Date: Wed, 8 Jul 2009 22:54:19 +0000 Subject: use more MooseX::Types and support actionattribute in Action vp to explicitly provide the URI to post to --- lib/Reaction/UI/ViewPort/Field.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/Reaction/UI/ViewPort/Field.pm') diff --git a/lib/Reaction/UI/ViewPort/Field.pm b/lib/Reaction/UI/ViewPort/Field.pm index ff89075..8611b71 100644 --- a/lib/Reaction/UI/ViewPort/Field.pm +++ b/lib/Reaction/UI/ViewPort/Field.pm @@ -4,13 +4,15 @@ use Reaction::Class; use aliased 'Reaction::InterfaceModel::Object'; use aliased 'Reaction::Meta::InterfaceModel::Object::ParameterAttribute'; +use MooseX::Types::Moose qw/Str/; + use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::UI::ViewPort'; has value => (is => 'rw', lazy_build => 1); -has name => (is => 'rw', isa => 'Str', lazy_build => 1); -has label => (is => 'rw', isa => 'Str', lazy_build => 1); -has value_string => (is => 'rw', isa => 'Str', lazy_build => 1); +has name => (is => 'rw', isa => Str, lazy_build => 1); +has label => (is => 'rw', isa => Str, lazy_build => 1); +has value_string => (is => 'rw', isa => Str, lazy_build => 1); has model => (is => 'ro', isa => Object, required => 1); has attribute => (is => 'ro', isa => ParameterAttribute, required => 1); -- cgit v1.2.3-54-g00ecf