Creating custom form types that can hold multiple values.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2015 06:50 AM
I'm currently dynamically rendering forms in my web app by by outputting html based on the formProperty type, using jstl
e.g. <c:if test="${formProperty.getType() == 'string'"> <input type="text"…etc.
I currently use the form type "enum" when I want to render a dropdown list i.e. <select><option>etc. This isn't helpful though when I eant to use the enum values as check boxes or radio buttons or other such types.
So what I basically what to know is how to create a form type that basically acts like an enum, i.e. you can fill in the form properties in activiti designer and access them through formProperty. So I could have one called "checkbox" for example that outputs checkboxes to html.
I hope I'm making sense. I tried creating my own form type and I followed Joram's tutorial but I'm honestly just lost as I'm only new to java and processes in general.
e.g. <c:if test="${formProperty.getType() == 'string'"> <input type="text"…etc.
I currently use the form type "enum" when I want to render a dropdown list i.e. <select><option>etc. This isn't helpful though when I eant to use the enum values as check boxes or radio buttons or other such types.
So what I basically what to know is how to create a form type that basically acts like an enum, i.e. you can fill in the form properties in activiti designer and access them through formProperty. So I could have one called "checkbox" for example that outputs checkboxes to html.
I hope I'm making sense. I tried creating my own form type and I followed Joram's tutorial but I'm honestly just lost as I'm only new to java and processes in general.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2015 09:01 AM
You want to implement this custom form type in the Activiti Explorer?
What is it in specific that you are struggling with?
You can look at the existing form types on how to implement a new one.
Best regards,
What is it in specific that you are struggling with?
You can look at the existing form types on how to implement a new one.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 07:04 AM
I want to implement this custom form in my own web app that's using Activiti. I generate my forms based on the formProperty type so I basically need a form type that acts like the enum type but is called something else as I already have a way of generating enums (using a dropdown list) but I'd also like to be able to generate checkboxs, radiio buttons etc.
I'm able to make a basic new formtype but I'm struggling with how to use it to access the formProperties that you can fill in using Activiti Designer on Eclipse.
I'm able to make a basic new formtype but I'm struggling with how to use it to access the formProperties that you can fill in using Activiti Designer on Eclipse.
