[jboss-user] [JBoss jBPM] - Re: FacesContext
newbie007
do-not-reply at jboss.com
Thu Jul 20 10:08:25 EDT 2006
If you changed the webapp, you still using JSF?
If you are using your own servlet then why not prepare the form parameters list on your own and set it to the request or session (whatever feasiable)
Preparing form parameter list is straight forward:
List taskFormParameters = new ArrayList();
| TaskController taskController = taskInstance.getTask().getTaskController();
| if (taskController!=null) {
| List variableAccesses = taskController.getVariableAccesses();
| Iterator iter = variableAccesses.iterator();
| while (iter.hasNext()) {
| VariableAccess variableAccess = (VariableAccess) iter.next();
| String mappedName = variableAccess.getMappedName();
| Objec! value = taskInstance.getVariable(mappedName);
| TaskFormParameter tfp = new TaskFormParameter(variableAccess, value);
| taskFormParameters.add(tfp);
| }
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959580#3959580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959580
More information about the jboss-user
mailing list