cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g[R]eK" <g...@crispymail.com>
Subject Re[2]: Cast type in flowscript [ Javaflow]
Date Mon, 27 Feb 2006 10:30:25 GMT
Hello Andrew!

> Hey guys,

>>     VarMap bizdata = new VarMap();
>>     bizdata.put("user", user);

> i'm doing something very silly here but can't figure it at all....

>                         VarMap bizData = new VarMap()
>                         .add("fname", model.lookupWidget("fname").getValue());
>                         
>                         ......
>                         newUser.setFirstName(bizData.fname);

It's java, so you have forget about all magic you used to have in flowscript ;-)
Try:
newUser.setFirstName(bizData.getMap().get("fname"));
and take a look at:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/flow/java/VarMap.html

HTH

-- 
 g[R]eK


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message