Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Within a @RequestScoped, is it possible to add bindings that are only valid for that request? i.e, any injection of beans within that context get a request specific instance (say singleton)?
Anand S's user avatar
  • 117
0 votes
0 answers
228 views

first I want to specify our architecture. Client -> Grpc Gateway -> Server In our architecture, we use a gateway to process and authenticate requests and then pass it to the Server application. ...
Amirsadra Abdollahi's user avatar
1 vote
0 answers
167 views

Trying to add authentication to my appolo projects. I have the following structure Class AuthenticatedDataSource extends RemoteGraphQLDataSource { willSendRequest({request, context }) { request....
Danis's user avatar
  • 2,130
1 vote
0 answers
717 views

I am developing an Api using spring boot. I need to call a dependent service asynchronously. I have an interceptor which uses RequestContextHolder from spring to get the httpservletrequest. But as the ...
ging's user avatar
  • 253
1 vote
1 answer
233 views

So I need to build a WebSocket API for my org. The requirements from the business are pretty typical websocket pattern stuff except for one detail: This websocket api will be used by different teams ...
gspetsnaz's user avatar
0 votes
0 answers
512 views

In order to copy the Spring RequestAttributes into an @Async thread, I have implemented a TaskDecorator bean, based on How to enable request scope in async task executor. @Configuration @EnableAsync ...
jaco0646's user avatar
  • 17.4k
1 vote
1 answer
351 views

I need to create a few dynamic routes in my rails router in the following way: Rails.application.routes.draw do account = Account.find_by( subdomain: request.subdomain, domain: request....
David Geismar's user avatar
0 votes
1 answer
150 views

In MVC Project I dynamically render a view to string using the following code. public string RenderViewToString(string viewName, object model, RequestContext requestContext){ ViewData....
Steven's user avatar
  • 187
1 vote
1 answer
3k views

I have a Java Spring Service with a RestController that calls an async method: @RestController public class SomeController { @Autowired //this is the service that contains the async-method ...
Juliette's user avatar
  • 1,076
1 vote
2 answers
4k views

I have a class the following class as RequestScope bean: @RequestScope class RequestContext { private String requestId; private String traceId; private String authorisedId; private String ...
Sreerag's user avatar
  • 1,411
0 votes
0 answers
1k views

I have a microservice setup with an api gateway accepting http requests and passing them to miscroservices (media-service, payment-service, etc.) using message pattern. I can access the request.user ...
mushfau's user avatar
  • 63
3 votes
1 answer
3k views

I am facing one issue. I am calling some API's in parallel using Spring Webflux. If any child thread faces any issue, it needs to log the request. Now the issue is , for logging a normal POJO class in ...
Ankit Bansal's user avatar
  • 2,388
0 votes
1 answer
1k views

def custom_proc(request): "A context processor that provides 'app', 'user' and 'ip_address'." return { 'app': 'My app', 'user': request.user, 'ip_address': request.META['REMOTE_ADDR'] } ...
mana's user avatar
  • 1
0 votes
1 answer
318 views

I am developing an application in Vertx. I am attaching uniqueRequestId to each request and adds it to the requestContext object, so that while printing any logs I will associate uniqueRequestId to ...
Vaibhav Raut's user avatar
2 votes
1 answer
759 views

I have Django1.9 middleware class: class MyMiddleware(object): def process_request(self, request): token = self._get_or_create_token(request) #request.context['token'] = token ...
Rudziankoŭ's user avatar
  • 11.3k
9 votes
2 answers
31k views

I am working on three files at the moment which are index.js , index.main.js and app.js. I'm using request-context to grab a variable from index.main.js and pass it to index.js. In app.js (A file I ...
Vaulient's user avatar
  • 355
1 vote
1 answer
2k views

I am trying to use Flask to send a stream of events to a front-end client as documented in this question. This works fine if I don't access anything in the request context, but fails as soon as I do. ...
Kris Harper's user avatar
  • 5,932
0 votes
1 answer
1k views

I have a service which calls a dozen other services. This reads from a Kafka topic using a @StreamListener in a controller class. For traceability purposes, the same headers(original request ID) from ...
Isaac N's user avatar
  • 159
0 votes
0 answers
148 views

I have some problems, to change user profile with cefsharp 71.0.2. All is working good with an user1. To change users, the General Usage Wiki page gives me the solution. But the 3rd line of this code ...
crazyfroggy's user avatar
1 vote
1 answer
122 views

I'm developing a JWT-based multi-tenancy system using ServiceStack. The JWT token contains shard information, and I use JwtAuthProvider to translate the JWT token to session object following ...
giangnn's user avatar
  • 415
3 votes
0 answers
1k views

I want to define a new RequestContext when using CefSharp OffScreen to prevent multiple browser instances sharing the same information (e.g. cookies). I can simply do that with CefSharp WinForms like ...
niknot's user avatar
  • 43
4 votes
3 answers
9k views

I cannot figure out why I'm encountering a problem with Django 1.11 and RenderContext. I really need help here. This is the code I've been playing with from the official documentation for 1.11: from ...
user1601871's user avatar
0 votes
1 answer
1k views

As we know there are multiple ways to access the page flow scope variable but which one is the right one? ex RequestContext.getCurrentInstance().getPageFlowScope(); AdfContext.getCurrent....
gavityBox's user avatar
0 votes
0 answers
1k views

I'd like to call a javascript from bean of a dialog window, but it is executed twice! I use the RequestContext.getCurrentInstance().execute() method. This method works perfectly if the page is not "...
Linkman's user avatar
  • 220
0 votes
2 answers
243 views

i'm trying to create a login module for wildfly 10 with access to the request context. I must identify the request url. Also I have to analyse the GET parameters to check if a token is set. How can I ...
Net_Hans's user avatar
  • 165
0 votes
0 answers
836 views

Can anyone advise on how to go about Mocking the 'RequestContext' in a WCF service. I'm currently working on a legacy WCF service that relies heavily upon headers being set in the request context. ...
HelloAmigo's user avatar
0 votes
1 answer
27 views

I'm having a strange issue where certain values in a context from my views are not passing to the template in a production environment only. Take the following view: def products(request,cat_id=0): ...
GeranTabee's user avatar
0 votes
0 answers
2k views

In a spring MVC web application, I wanna store user information at the request scope, in the filer or interceptor I will build the user information and store it and use it later within this request.I ...
bipotato911's user avatar
0 votes
1 answer
2k views

I have a JSF page with commandbutton to show dialog and show data from datatable, but the problem RequestContext.getCurrentInstance().update doesn't update the dialog, can anyone tell me what is wrong ...
san san's user avatar
  • 53
1 vote
2 answers
4k views

I use a JSF 2.2, a Primefaces 6.0 and a CDI. One of my page includes a script which has got two javascript functions (one of them create a chart, second of them supply new data to the chart) and a ...
Robert's user avatar
  • 772
6 votes
3 answers
2k views

I'm using primefaces and have a problem executing JavaScript at the end of an ajax call. I add some action to the RequestContext, and it is executed twice! RequestContext.getCurrentInstance()....
anm's user avatar
  • 545
2 votes
0 answers
437 views

I have a problem of loading large data set to a primefaces tree. Background I have a large data set, one big list of hashmaps to be specific. I need to loop over every element of the list to build ...
joker's user avatar
  • 3,832
2 votes
0 answers
3k views

I've been fiddling with this for a while and have not been able to get this working. There is probably something I am not understanding correctly. I want to call into a Javascript function from my ...
brainfreeze91's user avatar
0 votes
2 answers
809 views

I have a JSF page, with some components rendered if a certain value is selected in SelectOneMenu. For that I change their rendered value and call RequestContext.getCurrentInstance().update("@form"). ...
SMSk's user avatar
  • 705
0 votes
1 answer
582 views

Is there a way to use PrimeFaces RequestContext to call a dialog defined in the JSF from a managed bean, which has a form, but synchronously, meaning that the managed bean wait its thread execution ...
amphibient's user avatar
  • 31.7k
0 votes
0 answers
464 views

there is a bug when opening dialog from ManagedBean with: requestcontext.getcurrentInstance().opendialog("mydialog",map,null). I set closable to false in the map as: map.put(“closable”, false); but ...
iem's user avatar
  • 103
1 vote
2 answers
5k views

Another Primefaces Newbie here. I want to pass data from a bean to XHTML page for use in javascript. Let me make it clear that the primefaces XHTML page does not have components so a normal binding ...
Elton's user avatar
  • 23
0 votes
0 answers
826 views

I have a template file which contains primefaces growl component. I am using this template in another index.xhtml file. Now I am trying to add a FacesMessage from backing bean in @postconstruct ...
Ankit's user avatar
  • 1,105
0 votes
1 answer
772 views

I have a portlet deployed in liferay 6.2 (Tomcat 7.0.42). I use Primefaces 4 and liferay bridge 3.2.4-ga5. I am aware of this post: RequestContext won't work But I have a strange problem here: ...
Daniel's user avatar
  • 117
2 votes
0 answers
5k views

Iam trying to implement primefaces Dialog framework. But stuck with no dialog box. Iam using spring webflow 2.3.2 and JSF 2.1.3. My code from host Xthml page : <p:commandButton process="@this" ...
Subodh Bisht's user avatar
0 votes
2 answers
9k views

I am having trouble to update the view from the bean in the back using PrimeFaces's RequestContext. In the example below I have a button and 2 panels. When pressing the button, I want to update one ...
Socrates's user avatar
  • 9,724
2 votes
1 answer
3k views

I'm trying to create an HttpModule for my MVC application that will intercept a file upload request. The goal is to catch the request before it's sent in order to check the content length of the ...
thiag0's user avatar
  • 2,249
1 vote
1 answer
3k views

I have a web application, in which i am using ScheduledThreadPoolExecutor to schedule some logic to be executed later (maybe after original web request is over). Is it possible to access/use ...
Gaurav Singh's user avatar
0 votes
2 answers
5k views

I am trying to run a function using @Scheduled annotation. Which in turns, call a repository save. But saving is failing with InvalidDataAccessApiUsageException. Posting my stack trace. org....
Benoy Prakash's user avatar
1 vote
1 answer
3k views

I want to make the current request available to child threads without passing on the original request as method parameters through several layers. The application runs both as a servlet and as a ...
dschulten's user avatar
  • 3,205
0 votes
1 answer
3k views

I have a component on my view which i want to update from my bean. It works only once. If i press the second button nothing happen, but the bean method in the actionlistener was called. I checked ...
nik the lion's user avatar
1 vote
2 answers
2k views

I'd like to load the site name in a template using: {{ SITE_NAME }} In setting.py I have: SITE_NAME = "MySite" and from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP ...
tompreston's user avatar
0 votes
3 answers
219 views

I need your help with the gwt requestfactory considering following scenario: I get an existing entity (let's say a invoice) from the server: InvoiceEntityProxy invoice = request1.getInvoice(); I ...
user1215985's user avatar
0 votes
0 answers
414 views

I can't get RequestContext to work: Traceback: File "/Users/Admin/myapp/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = callback(...
Nick Bewley's user avatar
  • 9,319
1 vote
1 answer
65 views

I wonder if I am right about the semantics of the method RequestContext.edit() (GWT 2.5.1). In my opinion, the alert in the following snippet should never happen. Am I right or just wrong about the ...
preitinger's user avatar