Most voted "java-bean" questions
Javabeans are software components written in the Java programming language as a Java class that exposes properties, following a simple Nomeclatura convention for getter and Setter methods. If the question is not about "Javabean", do not use this tag, even if you are using "Javabean" in your project.
Learn more…24 questions
Sort by count of
-
31
votes3
answers25678
viewsWhat is a Java Bean and what is it for?
I’m starting to read about development java layered, and read something about the bean, an encapsulated class. But I couldn’t find any content that would really explain the purpose and an example.…
-
30
votes1
answer10018
viewsWhat is the difference between Javabean and POJO?
I’m new to Java, and I have that question. I searched several places on the internet and asked several friends JAVA programmers but none could explain to me clearly what the difference between the…
-
6
votes2
answers733
viewsEmpty constructor without calling super()
When I do parameterized constructors, I create an empty constructor as well. In the empty constructor, should I always make the call to super()? Why? (Take into account, that my class is just a…
-
4
votes1
answer2259
viewsHow to send an object by parameter?
I have the following code snippet: <p:selectOneMenu id="agencia" converter="agenciasConverter" value="#{agenciasMB.agencias.agencia}" style="width:150px"> <f:selectItem itemLabel="Selecione…
-
3
votes2
answers783
viewsDo I need to do unit testing of the system entities?
I am working on a project and participating in a team , we were given the task of doing a series of tests with a system,testes de integração continua, testes unitários .... The point is that all…
-
3
votes2
answers185
viewsRelation between bean and view
I have three views that show the same table with a sequence of leds and information, I have a class service that makes the business logic to know which led and which color to show, in my bean…
-
2
votes1
answer56
viewsWhy instantiating objects using new keyword is hardcoded?
I am learning Spring, and several times I have come across instructors solving the "problem" of instantiation of objects being made by keyword new, as in: private SpeakerRepository repository = new…
-
2
votes1
answer303
viewsSet Bean dynamically according to the registration screen
I’m starting a project with JSF, but I’m still "crawling" on the Framework, and starting with Java now as well. I already work with programming, but not with Java... hehe In my project, I want to…
-
2
votes0
answers80
viewsCDI Beans inside . jar file are not found by container (Unsatisfied dependencies)
I created a Java project to lib other projects, decreasing code duplicity between projects. This lib project is exported to jar to be included in Web projects. In the Web projects (from which these…
-
1
votes0
answers295
viewsError message Method not found: class Bean
This is the error message displayed; mai 25, 2015 3:40:55 PM com.sun.faces.context.SessionMap put ADVERTÊNCIA: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave:…
-
1
votes0
answers247
viewsMy application does not find my method
Take a look at the error message; jul 28, 2015 8:12:39 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException GRAVE: Error Rendering…
-
1
votes0
answers49
viewsError when Injecting DAO EJB
I have an EJB project built with JDK 7. Currently in production we use Glassfish-3.1 as an application server and we are trying to migrate it to Payara-4.1. We were able to upload the application…
-
1
votes1
answer279
viewsError trying to insert data via JSF-Bean Error
I’m starting to create a web application using JSF, but I try to insert some data through a form and it displays the error below: /usuario.xhtml @19,72 value="#{usuarioBean.email}": Target…
-
1
votes1
answer44
viewsHow to set fields on pages
Please inform if I need to improve the explanation. I am trying to create a report in Jaspersoft Studio composed of three sections: customer information (a Javabean containing name, email, date of…
-
0
votes1
answer896
viewsProblems loading datatable Primefaces
I am using in the Java Web CDI, JPA and Maven application, my application is already entering records in the database without any problem, now what I have left is list the records in the Primefaces…
-
0
votes1
answer1598
viewsCan anyone explain what a Spring Framework bean is?
Can anyone simplify what a bean is ? I’ve read the description by the Spring site itself but it didn’t make much sense (to me) what it actually is, and what it actually serves. I know I have to…
-
0
votes0
answers296
viewsThe implementation of Beanvalidation is not working
Greeting to all, please note the XHTML page; <ui:composition template="/WEB-INF/template/LayoutSystem.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"…
-
0
votes1
answer10
viewsChange language of Validation Bean messages to PT_BR
Hello, how do I change the language of Validation Bean messages to PT_BR? I want to force the default messages of Bean validation to be in PT_BR.
-
0
votes0
answers154
viewsrequest.getRequestDispatcher is not working and shows no errors
I have a problem in request.getRequestDispatcher("Valida.jsp"). forward(request, Response); from my non-forward Folder to the Valida.js page. I need to go from an HTML to a javascript (by Ajax) that…
-
0
votes1
answer520
viewsHow to change the image according to a variable coming from the bank?
I’m a beginner in this part of front-end and made a function that returns an entire number from my Mysql database. I created 5 images, each one corresponds to a number returned from the bank and…
-
0
votes0
answers9
viewsProblem with xhtml, using the appendTo="@(body)" property and saving, does not update my object data in the bean
header="Atualizar Contatos" dynamic="true" modal="true" closable="false" appendTo="@(body)"> <p:panel id="pnlAtualizarTelefones" class="panel-simples"> <c:linha> <c:coluna…
-
-1
votes1
answer434
viewsMy application does not recognize my Bean
Take a good look at the figure; look at my Bean class package br.com.terezinha.adm.controller; import java.io.Serializable; import javax.faces.bean.ViewScoped; import javax.inject.Named; import…
-
-1
votes1
answer19
viewsPage does not return Managedbean
I’ve seen several similar posts, but it didn’t help much. My problem is very simple. I have a form page that will record data and display in a table using Managedbean. But when I click to write, the…
-
-2
votes1
answer154
viewsChart primefaces does not take Selectonemenu variable
I am trying to pass a Selectonemenu variable to a Chart of the first faces and I believe the program updates the Chart before passing the variable. <p:outputLabel for="listagem"…