Questions tagged as 'java'

1
answer

What is this code possibly doing?

index.xhtml : ui:repeat value="#{produtoService.listaProdutos}" var="prod" Note: I know that the tags are missing. But what does this code doing ('' assuming the tags are closed properly)? "     
asked by 25.04.2016 / 04:22
0
answers

String to Date conversion via an html form

I'm having problems converting String to Date, here are the codes: Event: @Entity(name = "Evento") @Table(name = "evento_table") public class Evento { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) @Column private Long id; @Colum...
asked by 24.04.2016 / 13:43
1
answer

Doubt about Hibernate Criteria

I'm trying to make a work order system just for me to train. In work orders I can have several categories. And my doubt is when it is time to display, for example, a ranking of the most used categories for a period x using criteria of hiberna...
asked by 13.03.2016 / 05:09
0
answers

How to exchange messages with client and server java Socket?

I am not able to do the exchange of server messages for the client java Socket. The server is ready, but the client can not do according to the server. What is the class that sends message to the server? Here are the questions to answer:...
asked by 22.03.2016 / 19:23
0
answers

Problems with AutoCompleteTextView [closed]

I'm first using AutoCompleteTextView with Json that goes through the google streets. It works fine until the moment I click on the street and I get imagined that I click on the street "Stackoverflow.com Street" in my AutoCompleteTextVie...
asked by 23.03.2016 / 11:27
1
answer

Creation of dynamic combos and flaps - Jsf / Primefaces

I'm working on a project that has as basic requirement that the user can create screens to view data coming from various data sources. The user creates what we call a dashboard and includes components (label, table, graph, combo). The user can o...
asked by 23.03.2016 / 03:13
2
answers

How to make LinearLayout stay at the bottom of the screen?

I have tried many things here to make my LinearLayout stand at the bottom of the screen but I can not do that. I need to do this with Linear which has the id="underneath" Anyone know? Follow my xml: <?xml version="1.0" encoding="utf-8"?&...
asked by 13.09.2017 / 14:12
1
answer

I'm having trouble connecting to SQL with java

Well ... I did some classes, and it's time to connect to get a die in the bank; Okay. He had already connected with the DB, but when I did the class to fetch the data, it gets nullException, as if the database did not exist. Take out: public v...
asked by 22.03.2016 / 02:03
1
answer

Persist object in CRUD JSF + CDI + JPA

I'm doing a simple CRUD using JSF, JPA and CDI. I have two screens: A screen with a datatable listing the data, on each line has the edit and delete button, at the beginning of the screen has an insert button, the edit and insert buttons...
asked by 19.01.2016 / 21:54
0
answers

Insert in mysql database with java

I'm trying to give 6 insert in 6 tables, but I did not succeed that way, can anyone help me with a better idea? private void salvarActionPerformed(java.awt.event.ActionEvent evt) { DadosFunc...
asked by 19.01.2016 / 20:10