[html-formfu] Include Catalyst::Controller::RequestToken in
C::C::HTML::FormFu
onken at houseofdesign.de
onken at houseofdesign.de
Wed Feb 11 16:25:46 GMT 2009
Hi Carl,
I svn commited Plugin/Constraint/Element::RequestToken.
Plugin::RT adds the Element::RT which adds Constraint::RT to it.
cheers,
moritz
On Tue, 10 Feb 2009 22:01:14 +0000, Carl Franks <fireartist at gmail.com>
wrote:
> Hi Moritz,
>
> Could you attach your RequestToken.pm, and I'll take a look?
>
> Cheers,
> Carl
>
> 2009/2/10 <onken at houseofdesign.de>:
>>
>> Hi,
>>
>> I'm almost done with this.
>> But I have a problem with the Element::RequestToken I wrote.
>>
>> It contains some accessors like "session_key" which I created with
>> __PACKAGE__->mk_item_accessors ( qw( session_key ) );
>>
>> But I cannot set this value:
>>
>> ->elements({type => 'RequestToken', name => $self->field_name,
>> session_key
>> => $self->session_key });
>>
>>
>> The new constructor in Element::RequestToken looks like:
>>
>>
>> sub new {
>> my $self = shift->next::method(@_);
>> my %params = @_;
>> $self->session_key('__token');
>> return $self;
>> }
>>
>> Which should set the default to "__token"
>>
>> Any ideas why this does not get overwritten?
>>
>> Thanks
>>
>> moritz
>>
More information about the HTML-FormFu
mailing list