Questions tagged as 'java'

2
answers

Hibernate correctly configured does not insert into the database

My code does not enter into the Mysql database. It identifies all the database, the tables and the fields, but the insertion is not done. UserID.java package br.com.sistec.dao; import org.hibernate.Session; import org.hibernate.Tran...
asked by 27.06.2015 / 23:13
0
answers

Error when deploying on Wildfly 8: Failed to define class

I'm getting the error below when trying to deploy my application after migrating from JBoss AS 7.1 to Wildfly 8.2 and from Java 7 to Java 8 and still can not identify the source of this error. I'm using Wildfly 8.2, Primefaces 5.1 and JSF 2.2...
asked by 29.07.2015 / 14:41
1
answer

Send namespace xmlns: xsi and xmlns: xsd in response webservice soap

I have a webservice developed in java working perfectly, but I need to send the namespace xmlns:xsi and xmlns:xsd as shown in the example below:
asked by 30.07.2015 / 00:05
1
answer

Change validation behavior on Primefaces components

I have 2 generic templates for crud . (% 2) The search for the template CRUD . XHTML (Code 2) has the following logic: (When you open the page, all input fields are disabled when you click the first time on the Search button, it enables all...
asked by 25.08.2015 / 20:31
1
answer

Show textfield or textarea java [closed]

I can not display words in textfield (or textarea) in my code, several hours on it and still can not. I have here a link to the code . The most important lines are these, but if you want to test the whole code, it's easier to help, I guess....
asked by 10.06.2015 / 21:36
1
answer

Changed data in the database is not displayed in the PrimeFaces DataTable

I'm trying to disable the JPA cache (EclipseLink 2.5.2) through "persistence.xml", but it is not working. Changes made to tables, externally to the application, are not displayed in the PrimeFaces 5.0 DataTable with JSF 2.2. Environment: N...
asked by 13.04.2015 / 19:08
1
answer

How to make the p: editor of primefaces escape the special characters typed by the user before writing them?

I'm using the component of primefaces. My problem is that it is recording the accents that the user types in the text without doing the proper escaping HTML. Is it possible to change this so that he knows that the letter is an accent and needs...
asked by 16.04.2015 / 15:59
1
answer

Android app in the background [duplicate]

I'm working on the open source project Linphone , when the application is closed it is not working in the background, so if someone makes me a link in the mean time I am not notified, how can I handle this problem?     
asked by 10.10.2016 / 16:39
1
answer

JPA - Error of record not found soon after insertion of same

A question regarding JPA procedures, due to an error that has happened and I can not understand. I'm taking care of a part of the system that feeds a card order table. It looks up if the user that the request references has the card, and it i...
asked by 24.04.2015 / 22:04
1
answer

Can you get the index of the list inside the for-each in java? [duplicate]

When we create the traditional for we do it like this: for(int i = 0; i<strs.lenght; i++){ Log.wtf(TAG, "Jon Snow is "+strs[i]); } Now I have the following for each : for(String str: strs){ Log.wtf(TAG, "Jon S...
asked by 24.06.2017 / 06:13