Most voted "jsf" questions
Javaserver Faces (JSF) is a Model-View-Controller framework commonly used to create web applications. Always inform: What is the JSF version you are using; What technology you are using, JSP or Facelets; Error messages displayed; Minimum copy of code that can be executed.
Learn more…1,003 questions
Sort by count of
-
0
votes1
answer654
viewsMethod being called twice when loading page
I have a system JSF+PrimeFaces and a page where I have a datatable, this datatable is filled in as follows: <p:dataTable value="#{tarefaBean.listar()}" id="tarefaTable" var="tarefa"…
-
0
votes1
answer74
viewsConvert classes
I have studied programming in JSF, I read that for objects to be transformed into String you need a Convert to the entity. Is there a class already ready and we adapt our Entities? How it works ?…
-
0
votes1
answer223
viewsChange style Facesmessages
As shown in the figure, the FacesMessages has the following standard formatting: It is possible to change the background and font styles ?…
-
0
votes1
answer380
viewsChange Bootsfaces theme
I’m trying to change the theme of a Bootsfaces application and I’m not getting it. On the site says I have to find a folder called less but I can’t find it. Customization of the Bootsfaces.jar Until…
-
0
votes1
answer474
viewsJava Framework for Ecommerce-style Website
good night! I would like the opinion of those who are active on which is the most suitable framework for developing a site in the E-commerce style using java. I was thinking about JSF 2 + Primefaces…
-
0
votes0
answers45
viewsHow to integrate my User into Spring Security xml
I’m starting to learn Spring Security and I’m having some questions. In the past I used to authenticate users using phaseListener. I have the User MB where your scope is @SessionScoped. How can I…
-
0
votes1
answer18
viewsPlace of message display
Look at the image below: Note that the validation message appears at the top, as I do so that it appears next to the corresponding fields and no longer appears at the top ?…
-
0
votes0
answers410
viewsSaving jpa objects in spring transaction
Good morning, there has been a problem in the application that I work when I persist the object in the database I see the jboss log showing the Insert instruction plus the id of the object remains…
-
0
votes1
answer57
viewsProblems saving with selectOneMenu.
I’m trying to save a record of Activities with information from Favored. I cannot save in any way. I will put the code and please if anyone can help me thank you. < package br.com.sentinel.Bean;…
-
0
votes1
answer43
viewsJSF + Richfaces - Print HTML in Datatable
Guys, I have an HTML code in the database and I need to show it on a datatable. But when printing instead of redenizing HTML the browser is displaying HTML. How do I redenize?…
-
0
votes3
answers109
viewsValue is not being written to the bank
I have the following entities: package br.com.pokemax.modelo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import…
-
0
votes1
answer445
viewsWhat is the difference between actionlistener and action?
What’s the difference between actionListener and action? When using one or the other? <h:commandButton action="xxxx" actionListener="zzzz" id="teste"/>…
-
0
votes1
answer42
viewsTime to update - JSF
Fala ae galera blz? Is there any native way I can update some component after a few seconds? I was able to do it natively using "p:remoteCommand"
-
0
votes0
answers212
viewsLinking data from two different tables
I have two database tables one customer call, another municipality, and in the table "client" I have the items (Cdclient, Nmclient, Status and Cdmunicipio), in the table "municipality" I have…
-
0
votes1
answer749
viewsError generating report with Jasper Reports using JSF
I’m following a tutorial which explains how to generate reports with iReport using JSF. I set up my report on iReport and it is working perfectly, I mean when I give a preview all data from the…
-
0
votes1
answer2562
viewsTarget Unreachable, Identifier 'usuarios' resolved to null
My bean: package com.cliente.Bean; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import…
-
0
votes1
answer74
viewsHow to change getRealPath() save location? Photocam primefaces
I’m trying to use the Photocam component of Primefaces, it’s working, but the image is saved within the target of the application. I want to move the rescue site. Follows an excerpt from the code.…
-
0
votes1
answer470
viewsNullpointerexception Selectonemenu [JSF + PRIMEFACES]
On a JSF page about a car shop, I first select the brand of the car and then choose the model. However, when selecting an item from the first "Hyundai" menu, it gives NullPointerException and I…
-
0
votes0
answers50
viewsAccented words with problems
In many projects jsf I don’t remember if I’ve ever had a problem like this but as the image below shows, the encoding is not correct. The problem is occurring in the java because I have accented…
-
0
votes0
answers95
viewsCalling a report with sub-report from a Managedbean
Someone has an example in Java of how to call from a Managedbean a report with sub-report? I already have the report with the sub-report working well in ireport,but when I try to call from the…
-
0
votes1
answer174
viewsSetting for date and time field
I’m setting 2 attributes, one will be date and the other time: @Getter @Setter private Date dataOcorrencia; @Getter @Setter private Calendar horaOcorrencia; I wonder if it’s the best definition for…
-
0
votes1
answer608
viewsBootsfaces Error javax.faces.Facesexception: Expression error
Follow the error javax.faces.FacesException: Erro de expressão: Objeto denominado: net.bootsfaces.component.Button não encontrado. Pom <dependency>…
twitter-bootstrap jsf spring spring-boot bootsfacesasked 9 years, 1 month ago Jose Vieira Neto 2,560 -
0
votes1
answer610
viewsJavascript upload image (GIF)?
I am trying to show a loading image on my pages using these functions: $(document).ready(function(){ $(".loading").hide(); $.unblockUI(); $(".menuLink").focus(function() {…
-
0
votes1
answer948
viewsView PDF JSF primeFaces
Staff I am creating a pdf file up ai beauty. Now I would like to display this PDF in a formulário.Xhtml Below is the code I use to create the pdf in case someone can help me: Creapdfbean class…
-
0
votes1
answer997
viewsLogico Javascript Operator Error on JSF page
I have a JSF page where I use the primefaces. When I use the logic operator in my javascript functions, it displays this problem: the entity name must immediately follow the '&' in the entity…
-
0
votes1
answer172
viewsReturn person and phone list
I have an entity called Pessoa. This entity has a phone list of the entity Telefone. How do I bring the person information and popular the phone list of this person in a select with only hql? When…
-
0
votes1
answer58
viewsSend a message to all
What resources could I be using to display a notification on a page if an Exception occurs within a Servletcontextlistener that runs a thread? The idea is to warn the user that something is out of…
-
0
votes1
answer679
viewsLayout of many columns with datatable
I’m having a problem with datatable layout. I ended up creating a very extensive component (if I’m not mistaken, about 25 columns). I need to move one of these columns (year) according to the scroll…
-
0
votes1
answer510
viewsWhy does JSF not recognize the component id in the View?
JSF is not recognizing the "dialogo-analyze" id that is in the view and is giving the error : FATAL: Cannot find component for expression "dialogo-analise" referenced from…
-
0
votes2
answers804
viewsJava jsf image
I am wanting to place an image on a netbeans JSF page, but the page does not display the image. I’m calling the picture in my code like this: <h:graphicImage library="resources/imagens"…
-
0
votes0
answers32
viewsCan I use common HTML fields and buttons with JSF?
I’m doing a project with JSF and I’m also using common HTML fields and buttons in some forms. Excerpt from my (X)HTML <div class="clearfix"> <input class="small DDD" type="tel"…
-
0
votes0
answers71
viewsUpdate information for p:painelGrid in real time
I need to make a screen with real-time information that will run on a TV for 24 hours, seven days a week. I studied some ways to make, using Restful and Primefaces components, such as the…
-
0
votes1
answer104
viewsPrime faces,play data from a datatable for a dialog
screen contact <?xml version="1.0" encoding="utf-8" ?> <p:growl autoUpdate="true"/> <p:panel header="Formulário" id="panel"> <h:panelGrid columns="2"> <h:outputText…
-
0
votes0
answers167
viewsPrimefaces+JSF+Jasper JAVAEE
Well I am trying to generate PDF in my application and it is not working, when clicking the print button generates the following error 00:14:24,037 WARNING [org.primefaces.config.WebXmlParser]…
-
0
votes0
answers73
viewsPrimefaces 6.1 + HTTPS = IE11 error
I put a project JSF with primefaces stop rotating with https and when we enter the IE11 a surprise: it doesn’t work! Triggers a browser error like this: CSS3111: @font-face Detected an Unknown…
-
0
votes0
answers327
viewsValidate user login
I’m not able to validate the user login. Could someone give me a help? My Dao: public Login getvalidarLogin(Login login ){ Session session = HibernateUtil.getSessionFactory().getCurrentSession();…
-
0
votes2
answers493
viewsWhy is my Bean not getting the form Ubmit?
Why my Bean is not recognizing the attribute of a simple selectOneMenu: I created in my Bean the attribute private Long areaprevencaoId. This attribute is associated with a <p:selectOneMenu>…
-
0
votes1
answer149
viewsWhy is my selectOnMenu of the primefaces rendered differently?
Why are my components selectOneMenu primefaces is not fully rendered? Normal component of the primefaces: My rendered component : Screenshot of the problem. How to change prime css?…
-
0
votes1
answer1297
viewsChange color of commandButton?
I would like to change the color of a commandButton, actually several, wanted to leave set "edit", "delete"... etc My code is like this. <p:commandButton icon="ui-icon-trash"…
-
0
votes2
answers478
viewsUpdate in datatable after you have updated data
Speak guys, I have a problem updating a column in my datatable after an edit. I use a dialog to edit the desired data. Everything is saving in the database, the problem is when updating the table,…
-
0
votes1
answer55
viewsData does not persist when saving with dialog box
I have a list where I want to select the item change a product table field and save to the bank through a dialog. Knowing that a product has several historical , ie the relationship is Onetomany .…
-
0
votes1
answer659
views -
0
votes1
answer374
viewsHow to change the blue/red color of an edited field
I have the following screen : https://snag.gy/wmPBpM.jpg How can I change the field of the list, previsao1 so that it turns red or blue as I edit it and save by changing its value. Follow the xhtml.…
-
0
votes1
answer158
viewsError when trying to edit a record: component<p:selectManyCheckbox/> failed to lazily initialize a Collection of role:
Hello personal I have no experience with java and would like to receive help. I’m mapping SEVERAL lists with @Manytomany(Scade = Cascadetype.ALL) and I’m getting the following excpetion when I try…
-
0
votes2
answers780
viewsStart with an already selected <f:selectItem
I would like when the menu is presented the "Option 1" starts selected, something like an html Selected <p:selectManyMenu id="basic" value="#{selectManyView.selectedOptions}"> <f:selectItem…
-
0
votes0
answers80
viewsSubistituir Requestcontext by Facescontext
I currently use the following functions which are from Primefaces: RequestContext.getCurrentInstance().update("ComponentTal") RequestContext.getCurrentInstance().execute("FuncaoJavaScript") How can…
-
0
votes1
answer419
viewsProblems with p:selectManyCheckbox using Enum
Good evening, I’m making a registration page but I came across a problem on p:selectManyCheckbox <p:outputLabel value="Nome" for="nomepa" /> <p:autoComplete id="nomepa" size="40"…
-
0
votes0
answers38
viewsBackground does not continue in the area larger than the browser screen
I have a login screen: <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="context"…
-
0
votes1
answer537
viewsError trying to validate @CPF and @CNPJ with Hibernate jSf2
Good evening I have a system project in Javaee with JSF2 Primefaces. I’m using the @CPF and @CNPJ mappings from Hibernate, in the same attribute. But this giving error "WARN: HV000129: EL Expression…
-
0
votes1
answer191
viewsHow to run a <p:confirm> through the bean?
My question is: How can I execute one <p:confirm> through the Bean? I will explain the problem better. During the insertion of a record I need to check if it already exists in the list in…