You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joost Kuif <Jo...@mobillion.nl> on 2006/02/07 16:40:13 UTC
accessing Datasource from custom ActionListener
Hi,
I tried to move some flowscript functionality to a java class/object.
In the formdefinition I have:
<fd:action id="publish">
<fd:label><i18n:text
i18n:key="createblog.">Publiceer</i18n:text></fd:label>
<fd:on-action>
<java
class="com.mobillion.blog.cocoon.event.DoSomethingWithTheDatabase"/>
</fd:on-action>
</fd:action>
I created a corresponding class:
public class DoSomethingWithTheDatabase implements ActionListener,
Serviceable, Disposable {}
I need access to the DataSourceComponent object in this object. How do I
do that? I tried to use the Servicable interface, but it isn't called at
all..
Thanks for the help,
Joost
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org