You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Filippos Slavik <fs...@forthnet.gr> on 2001/08/27 19:36:02 UTC
Intake Form Initial Values Problem
Hello there, I'm quite new to Turbine and I'm expiriencing the following
problem (I have searched the acrhives but still with no clue how to solve
my problem)..
I have a form which is ment to update a concrete Retrievable object
instance. Just before the the form is displayed the first time a place the
retrievable object instace into the context.. In the form template I have
the following:
#set ( $customerBuyer = $intake.CustomerBuyer.getDefault() )
#if($buyer)
#set ( $customerBuyer = $customerBuyer.init($buyer) )
#end
Thus the first time the form get's displayed all fields that was mapped
from the instance get's displayed... So far so good...
My problem is that the first time the form is submited all initial values
are vanished... What actually happens is that, because some fields are
missing (this is ok - the fields were null in the original Retrievable
instace) the form action handler is rejecting the input (
intake.isAllValid() == false ) and redisplaying the form template again but
this time all fields are erased!... Somehow the intake group lost the
values that had the in the first time :)
Any tips please ?
################################################################
Filippos Slavik
FORTHnet R&D, Heraklion, Greece
e-mail : fsla@forthnet.gr
phone : (+3) 081 391230
################################################################
"The software said 'runs on Win95 or better,' so I installed it
on Linux..."
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org