Questions tagged as 'java'

1
answer

Working with date: print all dates in a given range

I'm struggling with simple implementation. I need to receive the amount of days, taking Saturdays and Sundays, from a certain range of dates. I tried to use Calendar because I can set the day (date), month and year and use calendar.get(Calend...
asked by 06.08.2014 / 02:47
1
answer

XSD validation error

My XSD after some modifications by another team started giving the error: Parse Error at line 33 column 14: s4s-elt-invalid-content.1: The content of '#AnonType_TxnHdrTransaction' is invalid. Element 'any' is invalid, misplaced, or occurs too...
asked by 08.09.2014 / 18:32
1
answer

Count with Hibernate Criteria

I have two tables, Products and Sales Items In the sales items table I have an FK of products. I want to query using hibernate criteria. select count(itensvenda.prdcodigo), produtos.prddescricao from itensvenda inner join produtos on iten...
asked by 08.09.2014 / 05:22
1
answer

Use NotificationManager in a class that is not Activity

I'm having a problem and I'm not getting any better. The problem is this: I have a Fragment in my app, and I want to trigger a notification from it. The line I'm having problems with is this: NotificationManager mNotificationManager = (Notifi...
asked by 22.07.2014 / 20:38
1
answer

Using JPA with H2 Database

I apologize for having posted my question in the thread of a similar one. So I'm posting as a new topic, okay? I'm using the H2 and JPA database to create my tables. Testing my application, I can create the tables, insert records, list the...
asked by 17.07.2014 / 21:45
1
answer

Problems compiling BitBucket + Eclipse

I use Eclipse to compile / modify Java emulated game servers and I've always used Assembla, it uses build.xml to compile and I've never had problems. I have a project that I need to compile and it is in Atlassian / BitBucket and for all t...
asked by 20.07.2014 / 19:06
1
answer

Problem with reading files in Java [duplicate]

I have a module in a Java application that reads and processes .xls , .xlsx .csv . It is a web application, where the user uploads a file with some of these formats, via rest, and when the file is on the server, my Java application proc...
asked by 30.07.2014 / 20:45
1
answer

Add attributes in file creation

I'm developing a Java application that creates files in the user's directory. So when I created the files I needed to add some attributes in their properties, so I can identify where they originated this file if the operating system user copie...
asked by 24.09.2014 / 15:23
3
answers

How to load the list of items from p: selectOneMenu when clicking to open the dropdown?

I would like my p: selectOneMenu to reload the items and show the options every time I clicked to open the dropdown, has anyone tried to do this? If so, how do I do it?     
asked by 07.07.2014 / 20:43
1
answer

Return Java exception for Ajax

Alright? I'm working on a project, and the backend (java) , is completely separate from the front-end , and they communicate by REST . I have a big question on the issue of exceptions. For example, an error occurred in java, SQLExceptio...
asked by 03.07.2014 / 21:30