Posts by SoabTI • 440 points
19 posts
-
1
votes3
answers11403
viewsQ: Find larger and smaller unique values
I’m trying to find the smallest and largest single value of a Python array, but something is still missing. def pegaExtremosUnicos(v): i = 1 for i in range(len(v)): atual = v[i] j = i - 1; while (j…
-
1
votes1
answer3255
viewsA: Loading page contents without refreshing page
You can use ajax, or even Angularjs for this task. HTML: <ul id="menu"> <li data-target="home.html">Home</li> <li data-target="cadastro.html">Cadastro</li> <li…
-
1
votes1
answer165
viewsQ: Am I abusing Strategy Pattern too much in Java?
In an application for user authentication via Radius I thought it would be interesting to use Design Patter Strategy with Enum. So the code went like this: public enum TipoAutenticacao {…
-
3
votes2
answers236
views -
2
votes2
answers236
views -
0
votes0
answers100
viewsQ: Prevent simultaneous access Tinyradius
I’m using the Tinyradius in a Java EE application and in this application the simultaneous access of the same user cannot be allowed, but Tinyradius itself does not implement such a requirement.…
-
0
votes1
answer78
viewsA: Nullpointexception to set value from Converter
I solved the problem by changing the Converter @FacesConverter(value = "planoConverter", forClass = Plano.class) @Named public class PlanoConverter implements Converter { @Override public Object…
-
1
votes1
answer281
viewsQ: @Inject for manually instantiated object?
I have a class called Application which is a listener, it instantiates objects of ServidorRadius where it needs to access the repositories that are injected with CDI, however radiusRepository is…
-
0
votes1
answer78
viewsQ: Nullpointexception to set value from Converter
I have an application where I need to calculate data from a certain relationship. When usuarioController.view == 3, is defined as a Login for Usuario and a Plano (already persisted) to Login so that…
-
0
votes1
answer58
viewsQ: Send a message to all
What resources could I be using to display a notification on a page if an Exception occurs within a Servletcontextlistener that runs a thread? The idea is to warn the user that something is out of…
-
4
votes1
answer112
viewsQ: Thread execution - Java EE - Jboss
I have a web application using Jboss EAP, JSF, CDI, EJB and need to start a thread whenever Jboss starts. The thread belongs to the Tinyradius package that implements a Radius server. How can I…
-
3
votes1
answer2713
viewsQ: Conversion Error - Null Converter
I have an application where you have a client record with selection of plan, such plan comes from the bank. when submitting comes the following error: Erro de conversão ao definir o valor…
-
3
votes2
answers949
viewsQ: Add field by clicking button
I am developing a client registration project, in a form using Primefaces I would like to click on a button and with this appear an inputText, if you click again, another appears and so on. This is…
-
2
votes1
answer202
viewsQ: p:selectOneMenu no list
I’m in the struggle trying to popular a selectOneMenu with data from a Enum, but when I gave up and put the static data with f:selectItem I realized that still the field is empty. Even with value…
-
0
votes0
answers115
viewsQ: How to read a pre-formatted string?
I have a file with String in a certain format, I would like to capture this string some information. Example: 0:13:13 - ID:( usuário ) / Name:( nome ) / IP ( 177.22.XX.X ) Memory Function Code Error…
-
0
votes0
answers257
viewsQ: Stella Boleto error loading jrxml
I’m trying to generate billet with Stella but I’m getting the following error Exception in thread "main" br.com.caelum.stella.boleto.exception.GeracaoBoletoException:…
-
2
votes1
answer151
viewsQ: How to see memory consumed by the web application?
I have a web application with Spring running, I would like to know how to see the memory consumed by the same.
-
3
votes1
answer130
viewsQ: in.createNativeQuery executes first than in.persist and now?
I’m developing an application with Hibernate + Spring mv. spring takes care of the Entitymanager dependency for my DAO, but I have the following problem. i persist an object called User then I run…
-
3
votes0
answers124
viewsQ: Pass Spring object to JSF
Well, I have a class that is almost entirely populated with Facebook data, but two attributes are missing that have to be filled from data coming from a form. Here is the form:…