Questions tagged as 'java-ee'

1
answer

avoid stackoverflow while reading and popular relations

I'm doing a library that populates a random model with random values, to be used in tests, but it happens that when I have a relation like below, I get a StackOverflowException Author @Entity public class Author implements Serializ...
asked by 29.07.2015 / 00:15
1
answer

How to tell who a class will extend at runtime?

I have the class public class Conhecimento{} This class extends from another class "CteProc" Only this CteProc class has "versions" example. v200.CteProc v300.CteProc My problem is that in creating the Knowledge class I need to...
asked by 11.09.2017 / 14:45
1
answer

Redo Spring cache?

Is it possible to schedule the Spring cache to be redone at midnight every time? I've read the Springs Cache Docs and found nothing about how to get it back.     
asked by 09.03.2017 / 07:16
1
answer

Error when trying to update in a dialog PrimeFaces

I have a button that stays inside a column in a dataTable, this button opens a dialog that contains a table with some data. But when I try to give a update=":frmPrin:dialogParecer" of the following error on the page:    Can not...
asked by 19.08.2015 / 18:34
1
answer

How to assign new value from SelectOneMenu to entity?

I have a table with several columns, among them I have one that is a SelectOneMenu , the table is loaded with a list of Inscricao . In the subscription status column I have a SelectOneMenu with the statuses: {"Solicitada...
asked by 06.07.2015 / 02:14
3
answers

Business rules in JSF [closed]

In JSF where would be the best place to set business rules? In the model, in the managed-bean, or in a business rules layer (I'm rather reluctant to adopt this latter approach), or do I implement such rules as JSF custom validators? I have quest...
asked by 16.06.2015 / 18:34
1
answer

How to choose which serialize field - Jackson

I'm using Jackson to convert my objects to Json . The fields I do not want to serialize markup with @JsonIgnore annotation, but in some cases I wanted to serialize those fields. Is there any way to choose when to serialize them?     
asked by 04.04.2016 / 16:11
1
answer

How to configure Log4j to generate a file in the WEB-INF folder with different date?

I want to generate * .log or * .txt files with different dates (eg file-log-22-10-2015.log) inside the WEB-INF folder of my JavaWeb project. I created the log4j.proprieties file as follows : log4j.properties # Root logger option log4j.rootL...
asked by 27.08.2015 / 20:30
2
answers

Problem creating Maven project in Eclipse Mars

I was using Maven in Eclipse Luna normally, I tried to test the new version of Eclipse and when I create a project Maven some exceptions are thrown:    Description Resource Path Location Type Failure to transfer   org.apa...
asked by 11.08.2015 / 14:16
1
answer

Increase font of content written in input

Hello, I'm new to Java Web programming, I'm developing an application in which I want to write an input word, I want to select that word and increase that font, how can I do that? I'm in doubt: / My select where to select which font: <s...
asked by 16.06.2015 / 16:40