TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_7.3.0_02
  4. #26039

7.3.0_02
TopLogic Release

2021-06-22

Enhancement

Detail
#25937
Include logback in TL Studio

Bugfix

Major
#25998
TL-Script context help broken
Detail
#25999
Disappearing toolbar in tile layout
#26007
Unnecessary scrollbar in HTMLTree
#26019
Buttons in filter dialogs disappeared
#26039
Gridcomponent: Display of context menu for new (transient) row object leads to UnsupportedOperationException
#26040
Partially no label for custom model type
#26041
In the context menu for a new grid line the command "Delete" is offered, crash on selection
#26042
Calendar control in filter dialogs does not work in Modern theme
Bugfix (User-visible)

Detail

#26039

Gridcomponent: Display of context menu for new (transient) row object leads to UnsupportedOperationException

ContextMenuGridComponent

Happens in prime and also in newly configured apps, but surprisingly not in TLDemo:

Command 'dispatchControlCommand' failed.

com.top_logic.util.error.TopLogicException: Internal error at com.top_logic.mig.html.layout.CommandDispatcher.internalDispatchCommand(CommandDispatcher.java:214) at com.top_logic.mig.html.layout.CommandDispatcher.internalDispatch(CommandDispatcher.java:130) at com.top_logic.mig.html.layout.CommandDispatcher.dispatchCommand(CommandDispatcher.java:123) at com.top_logic.base.services.simpleajax.AJAXServlet.processRequest(AJAXServlet.java:638) at com.top_logic.base.services.simpleajax.AJAXServlet.doPost(AJAXServlet.java:356) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at com.top_logic.util.TopLogicServlet.doService(TopLogicServlet.java:336) at com.top_logic.util.TopLogicServlet.inContext(TopLogicServlet.java:193) at com.top_logic.util.TopLogicServlet$1.inContext(TopLogicServlet.java:268) at com.top_logic.util.TLContextManager.inInteractionInternal(TLContextManager.java:243) at com.top_logic.util.TLContextManager.inInteraction(TLContextManager.java:219) at com.top_logic.util.TopLogicServlet.enterContext(TopLogicServlet.java:263) at com.top_logic.util.TopLogicServlet.service(TopLogicServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Caused by: java.lang.UnsupportedOperationException at com.top_logic.model.TransientObject.tHandle(TransientObject.java:22) at com.top_logic.model.TLObject.tTable(TLObject.java:180) at com.top_logic.layout.provider.LabelProviderService$Registry.searchFallbackModel(LabelProviderService.java:657) at com.top_logic.layout.provider.LabelProviderService$Registry.lookupModel(LabelProviderService.java:650) at com.top_logic.layout.provider.LabelProviderService$Registry.lookup(LabelProviderService.java:611) at com.top_logic.layout.provider.LabelProviderService$ContextCommandRegistry.lookup(LabelProviderService.java:1) at com.top_logic.layout.provider.LabelProviderService$ContextCommandRegistry.getContextCommands(LabelProviderService.java:549) at com.top_logic.layout.provider.LabelProviderService.getContextCommands(LabelProviderService.java:449) at com.top_logic.layout.basic.contextmenu.config.MetaContextMenuCommandsProvider.getContextCommands(MetaContextMenuCommandsProvider.java:36) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.createProviderButtons(TypeBasedContextMenuFactory.java:172) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.createButtons(TypeBasedContextMenuFactory.java:165) at com.top_logic.layout.basic.contextmenu.component.factory.ComponentContextMenuFactory$Provider.createButtons(ComponentContextMenuFactory.java:85) at com.top_logic.layout.basic.contextmenu.component.factory.SelectableContextMenuFactory$Provider.createButtons(SelectableContextMenuFactory.java:67) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.getContextMenu(TypeBasedContextMenuFactory.java:139) at com.top_logic.layout.basic.contextmenu.component.factory.adapter.TypeBasedContextMenuProvider.getContextMenu(TypeBasedContextMenuProvider.java:72) at com.top_logic.layout.table.control.TableControl.createContextMenu(TableControl.java:397) at com.top_logic.layout.basic.contextmenu.control.ContextMenuOpener.execute(ContextMenuOpener.java:60) at com.top_logic.layout.basic.AbstractControlBase.executeCommand(AbstractControlBase.java:888) at com.top_logic.layout.basic.component.ControlSupport.executeCommand(ControlSupport.java:221) at com.top_logic.layout.basic.component.ControlComponent$DispatchAction.handleCommand(ControlComponent.java:231) at com.top_logic.tool.boundsec.CommandHandlerUtil.handleCommand(CommandHandlerUtil.java:27) at com.top_logic.mig.html.layout.LayoutComponent.dispatchCommand(LayoutComponent.java:3437) at com.top_logic.mig.html.layout.CommandDispatcher.internalDispatchCommand(CommandDispatcher.java:192) ... 50 more

Analysis

The context menu contains in its title the object for which the context menu is displayed. The lookup of the tl:LabelProvider fails, however, because for the new grid object it cannot be calculated in which table it is stored (since a LabelProvider fallback can also be specified for all types of a table).

Test

  • Create a new app.
  • Define new type A.
  • Create grid view for A.
  • Add grid create button for A in the view.
  • Add new row in grid via new button, but do not apply or save.
  • Open context menu above the transient row.
  • Expectation: The context menu opens and has a title.
  • Get Started
  • Github
  • Discord
  • Das Unternehmen hinter TopLogic
  • Softwareentwicklung heute
  • Kontakt

© Copyright – Business Operation Systems GmbH

  • top-logic.com
  • Nutzungsbedingungen
  • Impressum
  • Rechtlicher Hinweis
  • Datenschutz
  • DE
  • Login