Hi,
I am trying to create a component and call it through a JSP by passing a few arguments as a Hashmap.
The <dmf:argument> tag doesnot allow me to pass any argument other than a String.
I also went through the WDK Development Guide where i found and example of passing a context value through an action. Which is as follows:
The datafield attribute on an action tag must correspond to a datafield for the selected object type.
The context value can be supplied from the JSP page or from the component class. In the following
example, a context value is set by the component class as follows:
boolean canAcquireTask = (state != ITask.DF_WF_TASK_STATE_PAUSED
&& state != ITask.DF_WF_TASK_STATE_ACQUIRED && state !=
ITask.DF_WF_TASK_STATE_FINISHED);
context.set("canAcquireTask", String.valueOf(canAcquireTask));
The context value is then passed as an action button argument in the JSP page:
<dmfx:actionbutton ...contextvalue='canAcquireTask'/>
The context value is then acquired in the action precondition class as follows:
if((strCanAquire = args.get(
"canAcquireTask")) != null && strCanAquire.length() > 0
...
However, when trying to use the attribute contextvalue in the <dmfx:actionbutton> tag, an error occured that the particular tag is not available.
Please let me know how can i pass these srguments as hashmap to an action class while calling a new component.
Thanks,
Darshana