Created attachment 802050 [details] Whitespace when generating custom form layout - video to show the problem Description of problem: When using custom form layout and its feature 'Generate template based on ...' the HTML template is generated, but it has so many whitespaces between elements, so that at first look it seems that nothing was generated. See video attached for steps to reproduce and to see what I mean. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. In group/repo/project demo > jbpm-playground > Evaluation open form evaluation-taskform 2. in Form Modeler go to form properties, select custom form layout and click Edit. 3. In 'Generate template based on' choose Default (but the problem is there also for the other options) and click OK next to it. 4. Examine the window displaying layout's HTML elements. Actual results: It seems there is nothing new generated there, but on closer look you can notice, that scrollbar appeared. This is because the form template with fields and labels IS generated, but there is so much whitespace between each element, that a lot of scrolling is needed. Expected results: No empty lines should be present between elements in the generated markup (also when using the other options 'aligned fields' and 'not aligned'). In ideal case the only whitespace that should be present should be formatting whitespace (e.g. the generated markup would be generated as if using for example http://xmlprettyprint.com) Additional info: With all the whitespaces a lot of scrolling is needed which makes it very hard to orient yourself in the markup.
In today's build, there are some issues too: - In cutsom layout edit panel, available form fields select option boxes are empty, and the form contains some fields... So, the custom layout generation button does nothing. - Custom layout editor panel does not dissapear althought changing between tabs (Add fields by origin, by type..). Cancel button does nothing too.
Fixed, the problem was the way to retrieve the forms from the template edition. Master https://github.com/droolsjbpm/jbpm-form-modeler/commit/e0c13b27505eac0f19dae043d37422e36ad42b73 6.0.x https://github.com/droolsjbpm/jbpm-form-modeler/commit/e9a865260e7f36a3243c5b38346c356c6bfc851c
Marek, I'm sorry, it was a involuntary mistake. Regards, Neus.
I checked with BPMS 6.0.0 ER4. Unlike in previous build (ER3), the CKE Editor is present. But I'm unable to verify this bug because of https://bugzilla.redhat.com/show_bug.cgi?id=1019754 Leaving this ON_QA till the bugzilla 1019754 is fixed.
Ok. Since now CKE Editor widget is used, which formats the HTML markup automatically, I consider this issue solved. Verified with BPMS 6.0.0 ER5