1 Reply Latest reply on Jun 20, 2012 2:42 AM by qaz33326

    JSF set task variables

    rafael.oliveira

      Hello everyone,

       

      I'm getting when setting task variable from jsf, I tried use this #{task.variables['approve']}, but it doesn't work:

      This is my code.

      In this case, i want send to mey process the information that type in inputText txapprove, but when I get the variable value, it return null.

       

       

      <form id="formAprovacao">
           <h:outputText id="noItems" value="There are no todo items." rendered="#{empty taskInstancePriorityList}" /> 
           <h:dataTable id="items" value="#{taskInstancePriorityList}" var="task" rendered="#{not empty taskInstancePriorityList}">
                <h:column>
                     <f:facet name="header">
                          <h:outputText value="Description" />
                     </f:facet>
                     <h:inputText id="description" value="#{task.description}" style="width: 400" />
                </h:column>
                <h:column>
                     <f:facet name="header">
                          <h:outputText value="Approve" />
                     </f:facet>
                     <h:inputText id="txapprove" value="#{task.variables['approve']}" style="width: 100" />
                </h:column>
                <h:column>
                     <s:button id="doApprove" action="#{productBean.approve}" taskInstance="#{task}" value="Send" />
                </h:column>
           </h:dataTable>
      </form>
      

      Thank you for any help.

       

      Rafael