Questions tagged [propagation]

240 questions
8
votes
0 answers

spring nested transactions with different isolation levels

I have two transactional methods A and B. A has isolation level of READ_COMMITTED and B has isolation level of SERIALIZABLE. if B was called inside A, what would be the default behavior here? is spring going to create a new transaction for B or it…
Yahya
  • 321
  • 3
  • 3
8
votes
2 answers

jQuery: How to stop propagation of Ctrl + A?

I'm currently developping an application that relies on a map (OpenStreetMap data via Leaflet.js) and markers displayed on the map. I implemented selection for the user, so he can click on markers to select them and Ctrl-click to add markers to…
fgysin
  • 11,329
  • 13
  • 61
  • 94
8
votes
2 answers

jquery .on container element attached to multiple selectors

I am using .on() to attach click events to multiple elements that appear on the page dynamically. The problem I have is that when I add .on to a container on the page and want to attach click events to multiple elements in the container, the latter…
evkorres
  • 105
  • 1
  • 5
7
votes
2 answers

How can I re-propagate an event after I initially set the handled property to true in an async handler?

I am trying to create a touch and hold event handler with a variable delay in a WPF application by calling a bool task which runs a timer. If the timer elapses, the task returns true. If another event such as touch leave or touch up occurs, the task…
user1969903
  • 810
  • 13
  • 26
7
votes
1 answer

Setting InheritanceFlags vs PropagationFlags in Powershell

I'm trying to find the right combination of the InheritanceFlags and PropagationFlags so that my new folder will not inherit the folder's permissions before it, but will propagate the rights to the folders/files contained in the new folder... I…
Shane Johnson
  • 157
  • 6
  • 15
6
votes
4 answers

Spring Bean Hangs on Method with @Transactional

Just a little background , I'm a new developer who has recently taken over a major project after the senior developer left the company before I could develop a full understanding of how he structured this. I'll try to explain my issue the best I…
Rhouujin
  • 101
  • 2
  • 6
6
votes
2 answers

SwiftUI - propagating change notifications through nested reference types

I'd like to extend ObservableObject behavior in SwiftUI to nested classes, and I'm looking for the proper way to do it. It can be done "manually" with Combine, but I imagine there's a much cleaner way to do it using SwiftUI, and I'm hoping you can…
Anton
  • 2,512
  • 2
  • 20
  • 36
6
votes
3 answers

How to propagate Spring transaction to another thread?

Perhaps, I am doing something wrong, but I can't find a good way out for the following situation. I would like to unit test a service that uses Spring Batch underneath to execute jobs. The jobs are executed via pre-configured AsyncTaskExecutor in…
dma_k
  • 10,431
  • 16
  • 76
  • 128
6
votes
1 answer

What is the reason of implicit virtual-ness propagation?

I've only been working with C++ for 2~3 months and recently I found out about the identifier, final, that comes after a virtual function. To this day, I believed that omission of virtual will stop the propagation of virtualness but I was wrong. It…
Sgene9
  • 156
  • 9
6
votes
2 answers

C# Null propagation - Where does the magic happen?

Null propagation is a very nice feature - but where and how does the actual magic happen? Where does frm?.Close() get changed to if(frm != null) frm.Close(); - Does it actually get changed to that kind of code at all?
Dave Gordon
  • 1,815
  • 4
  • 30
  • 52
5
votes
3 answers

Prevent click event from affecting parent jquery

I was to stop the event propagation from the child to the parent, i have a bunch of li tags containing a. $('li a[rel=close]').live('click', function(e){ e.stopPropagation(); e.preventDefault(); }) But it doesn;t stop the event.Any…
andrei
  • 8,252
  • 14
  • 51
  • 66
5
votes
2 answers

Propagate click behind a widget

I have a Stack with two widgets inside. I'm trying to detect the click on the bottom widget of the Stack, which is behind the top one. I am using HitTestBehavior.translucent, but it only work if the GestureDetector doesn't have any child. This is a…
Herinn
  • 189
  • 2
  • 8
5
votes
2 answers

stopPropagation: element.addEventListener vs onclick attribute

I'm playing with stopPropagation, adapting code from an MDC doc. Here's the question: Everything works fine if I do what they did and use element.addEVentListener("click", fname). But, when I try to attach the function with the element's onclick…
Nathan
  • 6,772
  • 11
  • 38
  • 55
5
votes
3 answers

Atomic operation propagation/visibility (atomic load vs atomic RMW load)

Context  I am writing a thread-safe protothread/coroutine library in C++, and I am using atomics to make task switching lock-free. I want it to be as performant as possible. I have a general understanding of atomics and lock-free programming, but I…
RmbRT
  • 460
  • 2
  • 10
5
votes
1 answer

Time it takes for data in HTML LocalStorage to be available in other windows/tabs

I have a webpage that uses HTML LocalStorage. It is common to have multiple tabs/windows of this page open at the same time. Since these all use the same LocalStorage and LocalStorage does not provide transactions or similar, I would like to…
Markus A.
  • 12,349
  • 8
  • 52
  • 116
1
2
3
15 16