[jboss-user] [JBoss jBPM] - How to set task instance variables with <h:inputText/> ?

appendix do-not-reply at jboss.com
Tue Oct 3 11:55:57 EDT 2006


Hi,

I wonder if there is a way to set task instance variables directly from the frontend (build upon JSF/Seam)?

I've tried 
<h:inputText value="#{taskInstance.variables['var1']}"/> 

to set var1 into the context of the current taskInstance.

Using this expression in an <h:outputText /> tag with an already set instance variable works fine, because taskInstance.getVariables() returns a map, which can be indexed like that, but is there a easy way to set the variable? 
The API only shows taskInstance.setVariable(name, value) and this can't be used in JSF expression language.

Thanks for any pointers,

   Kurt

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975800#3975800

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975800



More information about the jboss-user mailing list