Questions tagged as 'java-ee'

0
answers

How do I return an imported value from one JSP page to another? [closed]

I have two JSP pages: in one it checks a client link condition; if it has no link, it enters a function that calls another JSP to import the client data. It even imports the data, but when it returns to the JSP that called it it does not brin...
asked by 28.04.2014 / 22:47
3
answers

Doubts about extends Application

Developing for android I can create a class that extends Application. How would I do this in java? Is there or is this marking?     
asked by 11.06.2014 / 17:41
2
answers

How to name a constraint in Hibernate / JPA?

Using the class: @Entity public class Pessoa{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long idPessoa; @Column(nullable=false, unique = true) private String nome; @OneToOne @JoinColumn(name...
asked by 30.03.2016 / 14:44
1
answer

How to create an Exception / Custom Exception in Java

Java, brings with it several Exceptions already ready, IllegalArgumentException, IllegalStateException, RuntimeException, among others. How to create a Custom Exception in Java? I have the following method - sumAndPrint(int,int)...
asked by 28.06.2015 / 20:01
1
answer

Problem with redirect JSF + Primefaces

I have a menu where I have a Registry submenu and inside it a menuItem Usuários in my Template, and I also have a menuItem Sair . The problem is that logging out only works on the Home screen, which is the screen that is c...
asked by 13.07.2015 / 21:19
1
answer

Spring MVC error in performing binding of checkboxes in a list of objects

I have the following code snippet in my .jsp , in which the purpose is to dynamically list a passenger list per customer. <f:form id="service-item-form" action="${action}" modelAttribute="serviceItem" method="post"> <ul id="l...
asked by 20.11.2015 / 14:26
2
answers

JSP Dynamic Change in JBoss AS 7.1

Hello. As far as I'm working with JSP I find it very bad to have to pause and start the application every time you need to see a change. Do you have any way to update page changes without doing all of this?     
asked by 24.07.2014 / 19:25
2
answers

Datatable not population object? JSF

I have the following problem: I have a DataTable that is populated with entities of type Login that belongs to Usuario as relationship. A button named Add Login calls the method addLogin() of Login...
asked by 13.10.2015 / 22:46
2
answers

Graphics in PrimeFaces

I have a method that does a query in the database and returns me a List , in this List I have three data that interest me: Funcionário and StatusTarefa . Example: I have 2 Employees performing various tasks, a task ca...
asked by 20.07.2015 / 13:55
1
answer

How to make hibernate read a table in a MySQL database and write to another table in PostgreSQL?

I need to query a database in MySQL and get a table from there to write to a PostgreSQL database through Hibernate / JPA. I configured persistence.xml as follows: <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="ht...
asked by 12.02.2016 / 22:14