Questions tagged as 'java-bean'

1
answer

Can anyone explain what a Spring Framework bean is?

Can anyone simplify what is a bean? I've read the description on Spring's own website but it did not make much sense to me what it actually is, and what it actually does. I know I have to set it up in spring-context.xml, but I do not know exa...
asked by 12.04.2018 / 00:20
1
answer

Problems loading dataTable PrimeFaces

I am using in the Java Web application CDI, JPA and Maven, my application is already inserting records into the database without any problem, now what I have left is to list the records in the PrimeFaces dataTable. Since I am a programmer wit...
asked by 30.03.2015 / 15:22
1
answer

How 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 integer from my MySQL database. I created 5 images, each corresponding to a number returned from the database and attached them in my imgs folder of the projec...
asked by 04.06.2017 / 04:59
0
answers

request.getRequestDispatcher is not working and has no errors

I have a problem in the request.getRequestDispatcher ("Valida.jsp"). forward (request, response); from my servlet that does not forward to the Valida.jsp page. I need to pass from an HTML to a javascript (by Ajax) which passes the infos to a S...
asked by 30.12.2016 / 04:23
0
answers

The implementation of BeanValidation is not working

Greeting for 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" xmlns:f="http://java.sun.com/jsf/core"...
asked by 27.07.2015 / 17:01
1
answer

My application does not recognize my Bean

Look closely at the figure; SeehowmyBeanclassispackagebr.com.terezinha.adm.controller;importjava.io.Serializable;importjavax.faces.bean.ViewScoped;importjavax.inject.Named;importbr.com.terezinha.adm.model.Modelo;@Named@ViewScopedpublicclassC...
asked by 22.09.2015 / 16:36
1
answer

primefaces Chart does not catch variable from SelectOneMenu

I'm trying to pass a SelectOneMenu variable to a Chart of primefaces and I believe the program updates the Chart before passing the variable. <p:outputLabel for="listagem" value="Vendedores:" /> <p:...
asked by 28.06.2016 / 15:57