Questions tagged as 'java'

1
answer

How to update a form with ui: repeat without duplicating oc fields in jsf?

I have a problem with my ui: repeat components, I want to update and not repeat the components, how? My form: <h:body> <h:form > <h:outputLabel class="col-sm-2 col-sm-2 control-label" value="CEP" />...
asked by 02.11.2016 / 23:12
2
answers

Scanner - Split regardless of number of columns

public void lerFicheiro(){ try { Scanner scanner = new Scanner(ficheiro); while(scanner.hasNextLine()){ //quando numero de campos for igual a 4 String designacaoAeronave = scanner.next();...
asked by 03.11.2016 / 13:25
1
answer

Play! Framework - How to load public files (js, css, img) only once?

Hello, I started using Play! Framework with little time AngularJS, and I'm having problems to use AngularJS services, therefore I'm a variable on a page and when I go to check this variable on another page the value is null. I noticed that th...
asked by 16.06.2016 / 21:30
1
answer

Catch all elements that meet a condition

I have some Vector : public static Vector<Integer> id = new Vector<Integer>(); public static Vector<String> nome = new Vector<String>(); public static Vector<String> nascimento = new Vector<String>();...
asked by 15.06.2016 / 16:11
1
answer

Convert tuples from different databases to a given Java object

Well folks, I do not know if the title of my question is correct, if it is not, someone edits please. I'll explain what my problem is. I developed a tool that checks for conflicts between access control policies in Software as a course comple...
asked by 14.06.2016 / 23:25
1
answer

How to check if a table exists in MySQL

I already found several forms on the internet, but none of them the way I wanted it. I would like a java method to check whether or not a table exists in the database, if it exists, return TRUE or return FALSE . Thank you in a...
asked by 28.05.2016 / 04:24
1
answer

Use DatePicker in an Activity [closed]

Hello, I'm trying to make a datepicker part of the activity layout as shown below: I've been looking for the internet, but all the examples I'm talking about datePickerDialog, and that's not what I wanted. Any solution? Thanks!     
asked by 25.10.2016 / 22:27
1
answer

Bank Account Validation Rules [closed]

Where do I get the official bank account validation rules and check digit? After a lot of Google search, I can only find rules ten years ago and in forums, with no source reference. I learned that Itaú has undergone changes in its rules and I...
asked by 20.10.2016 / 15:18
1
answer

java.io.Console when debugging in Eclipse

I'm trying to use the java.io.Console from within of Eclipse. However, whenever I call System.console () returns me null. In jetty, you can pass parameters in the eclipse console. For example, if I press 'x' on the eclipse console, the je...
asked by 19.05.2016 / 03:19
1
answer

How do I use Page in this query instead of List?

@Query(value="SELECT * FROM prot_protocolo where status = 'PENDENTE' AND departamento_id=?", nativeQuery=true) public List<Protocolo> findByProtocolosPorDepartamento(String id); The page does not accept nativeQuery, of the error when...
asked by 24.10.2016 / 15:45