question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template selector doesn't work

See original GitHub issue

Describe the Bug

We have integrated BPMN.iO into Drupal a while ago and worked with version 8.x of bpmn-io and version 0.4 of this module. We’re also using the camunda and the template extensions.

Now, we’re upgrading to version 9.x and 1.0-alpha which is a huge step forward. Thanks a lot for that.

All is working fine, except the template selector doesn’t show up. We validated all our templates, and they are just fine. Also, debugging the setTemplates confirms, that the validator accepts all templates as valid.

The button “+ Select” only shows on elements, where we have applicable templates. But when we click on the button, nothing happens. Not even an error or warning in the browser console.

When we open existing models which already use some of those templates, then we get the drop-down “Applied” and we can unlink the template. Also, elements with an applied template show all the defined properties from the template. The other test, removing all our templates from the application and opening an existing model, then we get the red indicator “Missing template”.

All that tells me that the templates are ok and recognized. Only the select template action doesn’t work.

I don’t know how I should further debug this and hope, somebody from the community could help me finding out what’s wrong.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nikkucommented, Mar 14, 2022

@jurgenhaas We’ll see if we can provide you with a chooser or a way to build one.

It is really something that is missing with properties-panel@1, I acknowledge that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TemplateSelector doesn't work - Stack Overflow
In your ItemsControl you're setting ItemsTemplate to something that looks like a template selector; you should set the ItemsTemplateSelector ...
Read more >
When editing the Posts Page, the Template selector doesn't ...
To reproduce: Set a static homepage; Set a page to use as the "Posts page"; Edit the "Posts page"; Change the template in...
Read more >
Template selector not working - Modeler - Forum - bpmn.io
And on runtime, we're filling the element templates list. This is working just fine, just the selector for elements doesn't show up.
Read more >
Cant find Page Template under Page attributes after ...
My issue is, I'm no longer seeing the page template option under page attributes, only seeing the parent page option and order options....
Read more >
DataTemplateSelector Class (System.Windows.Controls)
Provides a way to choose a DataTemplate based on the data object and the data-bound element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found