public class MuleApplet
extends org.soafaces.bundle.client.ui.SimplePOJOWeblet
Example of a simple hello world component. This component implements both a Weblet
and a Tasklet interface. The Weblet allows the user to edit/customize the
MuleInputBean. This allows the MuleInputBean to be used as input to the Tasklet
when this Tasklet is run in a Workflow/Job. In addition, this example shows how the
Tasklet can use the native MuleClient interface to access Mule services when a job/workflow
is run.
Author:
Sam Taha
Nested Class Summary
Nested classes/interfaces inherited from class org.soafaces.bundle.client.ui.Weblet
Description copied from class: org.soafaces.bundle.client.ui.SimplePOJOWeblet
Method to implement in subclass. Use this method to populate the UI and
setup action handlers and such.
Specified by:
buildUI in class org.soafaces.bundle.client.ui.SimplePOJOWeblet
Parameters:
inputBean - Input JavaBean
onSaveInputBean
public void onSaveInputBean(org.soafaces.bundle.client.rpc.SuccessFailCallback callback)
This method should be used to save the state
of the GUI to the input JavaBean and perform
any necessary validation checks. If the validation
is not proper it should return false.
The Container hosting the Tasklet will call
this method in order to validate the input JavaBean
just before saving it to the server.
Overrides:
onSaveInputBean in class org.soafaces.bundle.client.ui.Weblet
Parameters:
callback - Used in this method to relay when the outside container
can safely save the input JavaBean. This is need in case
this method needs to perform an asynchronous call before
allowing the save to occur. Make sure to that callback.returnSuccess()
or callback.return.Failure() are returned. It is highly
recommended to place this methods implementation in a try/catch/finally
to insure that returnSuccess or returnFailure is called.