2 Replies Latest reply on Sep 15, 2010 2:46 PM by Rafael Oliveira

    How to set task instance variables with <h:inputText/> ?

    Kurt Edegger Newbie


      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,