You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Andreas Gaufer <An...@blue-cell-networks.com> on 2004/07/22 19:14:45 UTC
intake prepopulation questions
Hi,
I managed to get the intake service working and im pleased by its
abilities and design. I have troubles prepopulation a form with a data
from a Object. Unfortunatelly i didnt find any information about the
exact use of the mapTo Method of the Group-Object.
I tried to use something like
#set ( $formGroup =
$intake.customer.mapTo($customers.getCustomer("2232")) )
and also someting like
#set ( $formGroup = $intake.customer.mapTo($c) )
while both the $customers.getCustomer and also the $c represent a
Torque-Generated Object of a single DB-Record. both tries leaf
$formgGroup == null.
The Object has getters that match the Strings specified by mapToProperty
Values in my intake.xml. Creating a new Object with setProperties works
fine so i don't suspect any problems here.
I would appreciate any enlightment about that mapTo Function and what it
exaclty expects.
Greetings & TIA
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: intake prepopulation questions
Posted by David Demner <tu...@demner.com>.
That's correct. Plus if you are using the TDK, you can read this:
http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg14502.html
Which will explain how to automagically implement the Retrievable interfaces
for all OM classes when you run ant project-om.
Good luck,
David
-----Original Message-----
From: Andreas Gaufer [mailto:Andreas.Gaufer@blue-cell-networks.com]
Sent: Thursday July 22, 2004 11:43 AM
To: Turbine Users List
Subject: Re: intake prepopulation questions
Hi,
sorry for the inconvinience, I found myself the solution somwhere in the
scatterd lands of the Apache Wikis.
The Torque generated Class has to be changed to implement
org.apache.turbine.om.Retrievable
This can be read at
http://wiki.apache.org/jakarta/JakartaTurbine2Faq/CommonIntakeProblems
Greetings
Andy
On Thu, 22 Jul 2004 19:14:45 +0200
Andreas Gaufer <An...@blue-cell-networks.com> wrote:
> Hi,
>
> I managed to get the intake service working and im pleased by its
> abilities and design. I have troubles prepopulation a form with a data
> from a Object. Unfortunatelly i didnt find any information about the
> exact use of the mapTo Method of the Group-Object.
>
> I tried to use something like
>
> #set ( $formGroup =
> $intake.customer.mapTo($customers.getCustomer("2232")) )
>
> and also someting like
>
> #set ( $formGroup = $intake.customer.mapTo($c) )
>
> while both the $customers.getCustomer and also the $c represent a
> Torque-Generated Object of a single DB-Record. both tries leaf
> $formgGroup == null.
>
> The Object has getters that match the Strings specified by
> mapToProperty Values in my intake.xml. Creating a new Object with
> setProperties works fine so i don't suspect any problems here.
>
> I would appreciate any enlightment about that mapTo Function and what
> it exaclty expects.
>
> Greetings & TIA
>
> Andy
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
--
Blue Cell Networks GmbH
Industriestraße 1b
96163 Gundelsheim
Tel.: 0951-700 42 891 | Fax.: 0951-700 42 887
Diese Email sowie sämtliche mit ihr übertragenen Dateien enthalten
vertrauliche und/oder rechtlich geschützte Informationen, welche
lediglich für den/die Adressaten bestimmt sind. Sollten Sie nicht der
vorgesehene Empfänger sein, ist Ihnen der Gebrauch, die Verbreitung oder
Vervielfältigung der darin enthaltenen Informationen nicht gestattet.
Sollten Sie nicht der vorgesehene Empfänger sein, benachrichtigen Sie
den Absender bitte umgehend per Email und vernichten Sie die
Originalnachricht einschließlich etwaiger Kopien und angehängter
Dateien. Vielen Dank.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: intake prepopulation questions
Posted by Andreas Gaufer <An...@blue-cell-networks.com>.
Hi,
sorry for the inconvinience, I found myself the solution somwhere in the
scatterd lands of the Apache Wikis.
The Torque generated Class has to be changed to implement
org.apache.turbine.om.Retrievable
This can be read at
http://wiki.apache.org/jakarta/JakartaTurbine2Faq/CommonIntakeProblems
Greetings
Andy
On Thu, 22 Jul 2004 19:14:45 +0200
Andreas Gaufer <An...@blue-cell-networks.com> wrote:
> Hi,
>
> I managed to get the intake service working and im pleased by its
> abilities and design. I have troubles prepopulation a form with a data
> from a Object. Unfortunatelly i didnt find any information about the
> exact use of the mapTo Method of the Group-Object.
>
> I tried to use something like
>
> #set ( $formGroup =
> $intake.customer.mapTo($customers.getCustomer("2232")) )
>
> and also someting like
>
> #set ( $formGroup = $intake.customer.mapTo($c) )
>
> while both the $customers.getCustomer and also the $c represent a
> Torque-Generated Object of a single DB-Record. both tries leaf
> $formgGroup == null.
>
> The Object has getters that match the Strings specified by
> mapToProperty Values in my intake.xml. Creating a new Object with
> setProperties works fine so i don't suspect any problems here.
>
> I would appreciate any enlightment about that mapTo Function and what
> it exaclty expects.
>
> Greetings & TIA
>
> Andy
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
--
Blue Cell Networks GmbH
Industriestraße 1b
96163 Gundelsheim
Tel.: 0951-700 42 891 | Fax.: 0951-700 42 887
Diese Email sowie sämtliche mit ihr übertragenen Dateien enthalten
vertrauliche und/oder rechtlich geschützte Informationen, welche
lediglich für den/die Adressaten bestimmt sind. Sollten Sie nicht der
vorgesehene Empfänger sein, ist Ihnen der Gebrauch, die Verbreitung oder
Vervielfältigung der darin enthaltenen Informationen nicht gestattet.
Sollten Sie nicht der vorgesehene Empfänger sein, benachrichtigen Sie
den Absender bitte umgehend per Email und vernichten Sie die
Originalnachricht einschließlich etwaiger Kopien und angehängter
Dateien. Vielen Dank.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org