I had recently the same problem:
Turbine2.2 setProperty does not work in conjunction with the decoupled
version of torque.
You have to populate manually your om - class with the values of the
screen:

e.g. rdf.setRdfId(new NumberKey(data.getParameterParser.getString
("rdfid")));

... or use the coupled torque version ;-)

Uwe



                                                                                       
                                            
                      Wolfgang Schur                                                   
                                            
                      <wolfgang.schur@so        An:       Turbine Users List 
<[EMAIL PROTECTED]>                     
                      ftrust.com>               Kopie:                                 
                                            
                                                Thema:    Re: tdk2.2, pgsql, newapp: 
error when trying to update the rdf table     
                      04.07.2002 16:43                                                 
                                            
                      Bitte antworten an                                               
                                            
                      "Turbine Users                                                   
                                            
                      List"                                                            
                                            
                                                                                       
                                            
                                                                                       
                                            




Had a look at the stack trace and found a hint what could go wrong here.
"Caused by: java.lang.Exception: property rdfId is of unsupported type
class org.apache.torque.om.NumberKey"

The javadocs say that
org.apache.turbine.util.parser.BaseValueParser.setProperty(BaseValueParser.java:1371)


expects org.apache.turbine.om.NumberKey, but according to the stack
trace it gets an org.apache.torque.om.NumberKey. Does that need to be
corrected in the BaseValueParser.java code or am I mistaken here?

Cheers Wolfgang



Wolfgang Schur wrote:
> Hi,
> has anyone else experienced an exception when trying to update the rdf
> table in the example app? Adding/updating users works fine, also adding
> rdf records works. Only rdf Update gives this error. Seems that this is
> a known error (see the hint in FluxUserForm.vm, line 80). Passing a
> record id via hidden form elements seems not to work.
> Is any solution for this known?
> Best regards
> Wolfgang
>
...
--
****************************************************
SofTrust Consulting GmbH
Wolfgang Schur              Tel: ++49-69-857007-20
Pirazzistrasse 12 A         Fax: ++49-69-857007-22
D-63067 Offenbach           Email: [EMAIL PROTECTED]
Germany
****************************************************


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to