[Jifty-commit] r7085 - jifty/trunk/t/TestApp/lib/TestApp
Jifty commits
jifty-commit at lists.jifty.org
Wed May 20 13:29:52 EDT 2009
Author: yves
Date: Wed May 20 13:29:52 2009
New Revision: 7085
Modified:
jifty/trunk/t/TestApp/lib/TestApp/View.pm
Log:
right syntaxe to hiddden field in form
Modified: jifty/trunk/t/TestApp/lib/TestApp/View.pm
==============================================================================
--- jifty/trunk/t/TestApp/lib/TestApp/View.pm (original)
+++ jifty/trunk/t/TestApp/lib/TestApp/View.pm Wed May 20 13:29:52 2009
@@ -8,9 +8,11 @@
template 'say_hi' => page {
my $a = Jifty->web->new_action( class => 'SayHi', moniker => "say_hi" );
- form {
- $a->hidden('xxx_name','hidden');
- render_param($a => 'xxx_name');
+ form {a
+ ### THIS is wrong / deprecated
+ # $a->hidden('xxx_name','hidden');
+ # render_param($a => 'xxx_name');
+ render_param($a => 'xxx_name', render_as => 'hidden', default_value => 'some value');
render_param( $a => 'greeting' );
Jifty->web->form->submit(
label => _('Create'),
More information about the Jifty-commit
mailing list