Questions tagged as 'java'

1
answer

How to limit the amount of characters in an inputNumber?

I'm using the Primefaces extension to format an input of a person's weight and height and I could not. How do I limit the amount of characters entered in input ? I tested it with maxlength="5" but it did not work: <pe:inputNumb...
asked by 24.10.2015 / 13:45
1
answer

Query MySql confusing results

I have to do a mysql query through a Java method. This is the sql I did to test if it works: select * from servicos S, clientes C, motores M where C.nome = "Claudio Fernando Pires" group by ordemServico Theoretically it should bring...
asked by 25.10.2015 / 22:36
1
answer

How to pass arguments in the Eclipse IDE console?

How to pass arguments in the Eclipse console? For example this program: public class Eco { public static void main(String[] args) { for(int i=0; i<args.length; i++) System.out.println(args[i] + " "); System...
asked by 14.07.2015 / 20:18
1
answer

How to handle error 404 and 500 in vRaptor?

I have already seen tutorial of vraptor4 teaching to put this error in web.xml, to redirect, the following xml code: <error-page> <error-code>404</error-code> <location>/404.jsp</location> </error-page&...
asked by 14.07.2015 / 19:36
1
answer

persistence of data in two or more banks simultaneously [closed]

Greetings! I would like someone to help me with some example of a JSF application that persists data simultaneously in more than one bank, ie: it will connect to 2+ banks and inject data into them. I'm using Hibernate. The project is in...
asked by 03.09.2015 / 14:07
1
answer

What is Prevayler for?

I am studying Prevayler in college, but I do not know the real utility, nor the use of it, searching the internet I found several discussions but nothing that really explains what it is for. Would it be to store data in memory to persist...
asked by 06.07.2016 / 14:48
2
answers

NullPointerException on a servlet when using DataVoting method

I'm working with a servlet but this is giving% error of% when I use the method of object java.lang.NullPointerException . Here is the code: @Override protected void doGet(HttpServletRequest request, HttpServletResponse response)...
asked by 29.08.2015 / 13:08
1
answer

How to list all Browsers installed on Android?

How do I list / check all browsers installed on an Android device via Java?     
asked by 27.08.2015 / 22:05
2
answers

Error removing item from ArrayList

I'm "joking" with the canvas (android) and I'm having trouble removing element from an ArrayList. The app works like this: The user clicks on the screen, a ball appears that goes up but I want to remove only the balls that have exceeded the l...
asked by 09.09.2015 / 22:17
1
answer

How do I call the intercept () method of an Intercept class in another project method?

Okay, everyone? Well, I'm having a hard time and would like a little help. I have the following method of my AccessIntercept class: @Intercepts @RequestScoped public class AcessarIntercept { @AroundCall public void intercepta(Sim...
asked by 26.06.2015 / 16:32