Hello,
I've been playing with action events, however they do not appear to work as advertised. I have defined an action in my form definition as follows:
<fd:action id="loadMetadata" action-command="loadMetadata">
<fd:label>Load Metadata</fd:label>
<fd:on-action>
<java class="au.edu.anu.LoadMetadataActionListener"/>
</fd:on-action>
</fd:action>
I also have an action listener as follows (cut-down version):
public class LoadMetadataActionListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
Widget widget = event.getSourceWidget();
Form form = widget.getForm();
Widget myWidget = form.getWidget("fieldWidget");
myWidget.setValue("blah");
}
}I have also put logging and errors in this class, and it definitely is not being called. Is there something else I need to setup (to add the listener (though I expected that was the purpose of putting this in the form definition)). There are no samples of using this in the 2.1.5 install and I only have the doco to go on unless I sift through code. Some of the doco mixes Woody and CForms so not sure if this is something that has changed?
Thanks.
Scott.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
