Questions tagged as 'java'

0
answers

Error when listing data in Dialog of the Primefaces

Clicking comandButonn is loading the last video in the list in dialog , but datatable works correctly when viewed by component media . I want to make it easy for the user as follows: When the user clicks the abrir...
asked by 25.09.2016 / 22:06
1
answer

ResultSet first does not work

I'm creating a Java application in Eclipse. I'm having trouble making the First, Previous, Next, and Last buttons work. I'm stuck on the First button because, I believe, the difference is just the .first() , .next() , .previ...
asked by 23.09.2016 / 15:24
0
answers

Error with SessionExpirationScheduler in widfly

When I changed the jboss all to use the shared session, my application after a while starts to give this error below, does anyone know how to solve it? 12:08:40,332 WARN [org.infinispan.transaction.tm.DummyTransaction] (SessionExpir...
asked by 23.09.2016 / 19:12
2
answers

Problem with Spring "No qualifying bean of type found for dependency"

Hello, I'm learning a little about Spring and I'm having a problem that I can not get around in any way. I've been looking for solutions to this mistake for a long time, but I did not find anything that would help. I imagine the annotations are...
asked by 26.09.2016 / 03:00
1
answer

How to check if a ResultSet is empty?

I am doing a query in MySQL and when the query exists it returns the values of good. But here's the question, what value does ResultSet receive when the search does not exist? Type searched for a name in the records of the table if tha...
asked by 11.09.2016 / 21:50
0
answers

Unable to build entity manager factory in jar created with maven

Good morning, In a project we are using Hibernate, Log4J2, Gson and some other things you can see in pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/200...
asked by 09.09.2016 / 16:37
0
answers

Primefaces - Size columnToggler

I have a datatable with a columnToggler, but would like to remove the fields without increasing the size of the first field. I'm using Primefaces 6.0. <p:dataTable id="cars" var="car" value="#{dtBasicView.cars}"> <f:facet name="he...
asked by 28.09.2016 / 18:51
1
answer

Update in sqlite does not update data

Hello, could anyone help me, the update is not updating the data! Follow the button that calls the method: @Override public void onClick(View v) { Receita rec = new Receita(); String dosradio = null; switch(rg....
asked by 29.09.2016 / 03:30
1
answer

How to manipulate MAC address (rotocolot address)? [closed]

I am making an application on INTEL XDK for smartphone and would like to capture the MAC Adrees value of the currently active Wifi Router, as well as the network name (SSID) and password, to make comparisons. Example: I have 3 routers with the s...
asked by 28.09.2016 / 17:34
1
answer

Reading .bat files from java

I would like to read and edit a .bat file by java, in case I have a .bat file that I want to open it in .txt to change, the method below is what I'm using p> public void editarArquivo() throws SQLException, IOException{ DirControle dir = n...
asked by 06.10.2016 / 21:16