如何使活动显示插入文本输入的textarea字段? [英] How to make activiti show textarea field instaded of text input?

查看:105
本文介绍了如何使活动显示插入文本输入的textarea字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在下面的formProperty中使activiti显示文本输入的textarea字段?

How can I make activiti show textarea field instaded of text input for formProperty below?

<extensionElements>
        <activiti:formProperty id="Ata"
        name="Ata"
        required="true"
        type="string" />
    </extensionElements>


推荐答案


  1. 扩展 AbstractFormType 类,并覆盖其方法,如本例所示 TextAreaFormType.java

  2. Activiti Explorer在Vaadin中实现,因此表单域也必须使用Vaadin实现。 此处您可以找到示例实现

  1. Extend the AbstractFormType class and override it's methods as shown in this example TextAreaFormType.java
  2. Activiti Explorer is implemented in Vaadin so the form field also has to be implemented using Vaadin. Here you can find sample implementation

中向流程引擎配置添加自定义表单类型applicationContext.xml
applicationContext.xml







<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="customFormTypes">
<list>
<ref bean="userFormType"/>
<ref bean="textAreaFormType"/>
</list>
</property>
</bean>
<bean id="userFormType" class="org.activiti.explorer.form.UserFormType"/>
<bean id="textAreaFormType" class="org.bpmnwithactiviti.explorer.form.TextAreaFormType"/>

这篇关于如何使活动显示插入文本输入的textarea字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆