cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
Subject Re: [Woody] Map key values after woody xml binding to values stored in database tables
Date Tue, 16 Dec 2003 08:13:28 GMT
Markus,

have a look into the documentation on the wiki via 
http://wiki.cocoondev.org/Wiki.jsp?page=Woody

check out the possibilities of the wd:select-list here:
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference

that should get you going,
regards,
-marc=

Markus Heussen wrote:

> Hi Cocooners!
> 
> I decided to use the woody form framwork for my application but I have one
> problem to solve.
> 
> I bind a XML message to the form model like it is presented in the woody
> samples. But in my XML structure I have some keys that have to be mapped to
> values stored in some database tables.
> 
> 
> My XML message to bind to the form:
> ...
> <v:Anrede Schl├╝ssel="1"/>
> ...
> 
> 
> My form definition XML file:
> ...
> <wd:output id="anrede" required="true">
> 	<wd:label>Anrede</wd:label>
> 	<wd:datatype base="string"/>
> </wd:output>
> ...
> 
> 
> My binding XML file:
> ...
> <wb:value id="anrede" path="//v:Anrede/@Schl├╝ssel"/>
> ...
> 
> 
> My form template XML file:
> ...
> <wt:widget-label id="anrede"/> : <wt:widget id="anrede"/>
> ...
> 
> 
> My result:
> ...
> Anrede : 1
> ...
> 
> 
> But "1" is the key for the value "Herr" which is stored in a rdbms. Can
> anyone show me an elegant way to get the values from the database?
> 
> Thank's for your help!
> 
> Markus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org


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


Mime
View raw message