Hi Gabriel
I do not know if it's possible to integrate a java class directly.
But, we also work with hibernate and we usually solve this kind of problem
in the following way:
<fd:field id="anrede" required="true">
<fd:datatype base="string"/>
<fd:selection-list
src="cocoon:/util/xsl/convertDbCode2FdSelectionList.xml?srcUri=cocoon://db/a
ddress/getCodes.xml&type=anrede"/>
</fd:field>
Hope this helps ... Raffaele
_____
Von: Gabriel Gruber [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. Oktober 2007 08:28
An: [email protected]
Betreff: Java for generating suggestion-list
Hello!
I was just wondering, if it is possible to use java instead of javascript to
generate a suggestion-list for a cforms widget. this java aims to query a
database (via hibernate) and should return a list of results.
something like this...
<fd:field id="person">
<fd:datatype base="string"/>
<fd:suggestion-list type="java"
src="com.mycompany.SuggestionListHandler"/>
</fd:field>
any ideas? from looking in the api i couldn't find a way for this to work.
gabriel
______________________
Mag. Gabriel Gruber
Senior Consultant
mailto:[EMAIL PROTECTED]
http://www.workflow.at