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
-
1
votes1
answer137
viewsWhat is the difference between these two statements?
I was reading some tutorials and documentations and came across two different ways to declare the RequestContext: RequestContext requestContext = RequestContext.getCurrentInstance();…
-
1
votes1
answer259
viewsRendered of the first faces giving error while recovering entity Boolean
Can anyone tell why the rendered Graphic image is giving error??? <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista" styleClass="ui-datagrid" >…
-
1
votes2
answers2504
viewsHow to run a JS or jQuery function after an update, Reload in JSF and Primefaces?
I need to run this function after a button gives an update="@form" on the page <script type="text/javascript"> function carregaCss(){ $(".ui-icon-calendar").addClass("glyphicon…
-
1
votes1
answer213
viewsData modeling problems with Persistence.xml
I created a college application to create automatic tables by Hibernate with JPA however it gave error in some tables, that were these; Catalogued Orderly Commodity but this generating the following…
-
1
votes1
answer1931
viewsAligns in the same row rowEdit and other buttons in Primefaces
I’m in trouble where mine dataTable owns the property editable set to true. Allowing editing of the line the user selects. Well, when putting a button to delete for example I’m having trouble that…
-
1
votes1
answer722
viewsSearch database using JSF
I am programming an application in JSF, my application can do the function of Record and Change without any problem, but as I am using Java web technology now I am finding a certain difficulty in…
-
1
votes2
answers1859
viewsError occurs when performing resource injection into the bean
Bean: package br.com.drogaria.bean; import java.sql.SQLException; import java.util.ArrayList; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import…
-
1
votes2
answers441
viewsError installing a War in jboss eap 6.2 with myfaces jsf 1.1
The error below occurs when installing the application to jboss. I know it is due to jboss having a javaserver faces implementation. 11:15:04,601 INFO [org.apache.catalina.core] (ServerService…
-
1
votes2
answers428
viewsOverwrite CSS compontente Richfaces
I’m using a component Calendar but only the date (omitting the time), and overriding the CSS to reduce the screen size. Below: <rich:calendar value="#{_sessao.dtSessao}" showFooter="false"…
-
1
votes1
answer161
viewsOutputtext only updates after Tomcat Restart
I’m using Tomcat 7, Eclipse Juno (on Windows 7) and Primefaces 5 for my application. After registering some information in the database (vaccines for vaccination booklet), access a screen…
-
1
votes1
answer1410
viewsConvert html page to jsf
Well I downloaded a template that will be the index of my project, so it is already configured the web.xhtml, already run other jsf projects, however I am starting another project and I want to put…
-
1
votes1
answer144
viewsPaypal IPN for recurring cancellation payment
I got the following code from Paypal’s git hub. I am making recurring payments and would like to receive notification in the system when there is cancellation. Thus, I could block the provision of…
-
1
votes1
answer385
viewsJSF accessing serial port
I am working on a JSF system and need to send data to the serial port of the client (printer). The only way is even using Applets?
-
1
votes1
answer358
viewsGoing to a particular tab
This is my menu: <p:menubar> <p:submenu label="Clientes"> <p:menuitem value="Cadastro" action="#{nomeBean.cadastrar} outcome="funcionario.xhtml" /> <p:menuitem value="Consulta"…
-
1
votes1
answer777
viewsRedeem selected input values in the Datatable of the first faces
I tried to use ajax and the option f:attribute, but I cannot redeem the required values, that is, the selected line and the value of the input. I’d like some help. Thank you.…
-
1
votes1
answer281
viewsJSF cluster application
What my application (JSF + Primefaces) needs to work with in a cluster? I am doing a test in a cluster 3 Tomcat environment (with session replication) and my test application does not work. At first…
-
1
votes0
answers303
viewsJSF + Primefaces 5 - Same Status as Page P/ Multiple Users
I’m having a really hard time with the PrimeFaces 5 + JSF. I have two applications in the company where I work and the same ones running on intranet, but when someone executes something, queries or…
-
1
votes0
answers353
viewsTomcat + jsf + Hibernate application = Slow to boot
My application is very slow to boot. Follow the eclipse log where it takes longer: INFO: HHH000397: Using Astquerytranslatorfactory
-
1
votes1
answer127
viewsSend a List<Entity> on Redirect
I have a list and I need to send it to another page to fill a table, when the redirect ends the page loads only the table does not fill because the list has been emptied, as I keep it with the…
-
1
votes1
answer2319
viewsCheck if the user informed data already exist in the database before entering
I need to check in the database if the information that the user is trying to enter already exists, for example: In the registration of a company, I cannot allow the same CNPJ for others. I am doing…
-
1
votes4
answers2941
viewsPrimefaces datatable number formatting
How can I format a datatable column (ZIP) with the mask "00.000-000"? Example: Valor: 90560120 - Exit: 90.560-120…
-
1
votes1
answer126
viewsRichfaces fileUpload does not invoke Listener
I’m using the latest version of Richfaces, I copied the example of show case on the Richfaces website, and the example does not invoke the Istener, I’ve tried everything, someone could help me?…
-
1
votes1
answer138
viewsSessionscope is not coming on Request
I have a bean to log in, when I try to get it in the filter class request it is coming null. The information that is coming on the console is this. 17:29:57,968 INFO [stdout]…
-
1
votes1
answer450
views<p:datatable> with variable column amount
Good night. Can anyone tell if it is possible (and how to do it) to create a datatable of the first faces whose column number is variable? For example, imagine two cases, A and B. In set A I would…
-
1
votes2
answers869
viewsException with Convert from a Primefaces selectOneMenu
I created a dynamic selectOneMenu that takes a Author Object List that implements Serializable. The code is as follows:: XHTML from selectOneMenu <p:selectOneMenu id="autor_selecionado"…
-
1
votes1
answer568
viewsProblem creating custom Components in JSF
I’m having problems creating custom components in JSF, it’s actually the first time. I found some guides on the internet but it hasn’t worked. Here’s what I did. I created the custom.taglib.xml…
-
1
votes1
answer654
viewsImage upload problem with more than 10mb primefaces
Guys, I’m going through a very boring and seemingly simple problem and I haven’t found a solution yet, so can someone help me? I’m using the upload of the first faces and it just doesn’t upload…
-
1
votes1
answer1093
viewsBackground image does not appear when running the project
I have a JSF+Primefaces project and I have a css that puts a background: <h:body style="background-image: url('../images/textura.jpg');"> When I run the page works perfectly, but when I give a…
-
1
votes1
answer308
viewsDeployment of more than one . War in the root context of Glassfish
I have two applications that I need to deploy to Glassfish and I would like to know how to put both in the root context of the same Glassfish. I know that to put an application in root context, I…
-
1
votes0
answers94
viewsLine graph does not render (p:lineChart)
xhtml code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"…
-
1
votes0
answers36
viewsHow much scrolo the datatable up it goes up all at once (Primefaces mobile)
I am using Primefaces mobile and to present some data I am using the datatable, I make a query and it lists the records normally, while I roll the logs down using my mobile browser it descends…
-
1
votes1
answer294
viewsHow to set a Spinner value to an object
I have the following table: <p:dataTable id="tabelaDisciplinasSelelecionadas" var="disciplina" value="#{disciplinaBean.droppedDisciplinas}" rendered="#{not empty…
-
1
votes0
answers131
viewsUpload JSF Multiple Photos
I need to make a registration screen, where the user can choose up to 5 photos to save. I am using JSF 2.2 would like to know the best way to do this without using primefaces or richfaces, using a…
-
1
votes0
answers85
viewsDoubt menu of Primefaces
I changed the color (Hover) when I move the mouse over the menubar item, but the icons are also disappearing, when I move the mouse over the image. How do I make icon not disappear? /* Cor menu */…
-
1
votes0
answers670
viewsPass as parameter to Jasper an Object
I’m trying to create a report, now it’s already generating, but only when I pass Jasperprint the Jremptydatasource(). JasperPrint impressoraJasper = JasperFillManager.fillReport("D:/Edital.jasper",…
-
1
votes1
answer352
viewsEclipse Error #{Component.Valid} "Valid cannot be resolved as a Member of Component"
Eclipse of Warning in #{Component.Valid} in Sryleclass, With Obs that imputText is inside a Composite Component. <div class="labelledInput"> <p:inputText id="txtPesqLot" ...…
-
1
votes1
answer156
viewsNull Pointer in Part filetype when upload
I have a purpose using the javax.servlet.http.Part. It is coming null when I upload. XHTML of the test <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"…
-
1
votes1
answer654
viewsCommandbutton Primefaces does not call the method
Man commandbutton does not show error when clicked, but also does not execute the method. Commandbutton code: p:commandButton action="#{clienteMB.cliente.Salvar}" value="Incluir"/ Method code:…
-
1
votes0
answers122
viewsList the directory names of a given location in a selectOneMenu
Hello, I am with this doubt, I already managed to list the directories with methods found on the internet, but I could not implement in a method that feeds a <h:selectOneMenu> to select an…
-
1
votes0
answers483
viewsJSF: Error messages inside the catch block does not appear on the screen
I have a JSF application and created a Basebean class to generate the messages that appear on the screen when an event occurs. Well, in Managedbean when I call the Basebean class to send a message…
-
1
votes1
answer79
viewsdata persistence in two or more databases simultaneously
Greetings! I would like someone to help me with some example of a JSF application that persists data simultaneously in more than one database, that is: will connect there are 2+ databases and will…
-
1
votes0
answers539
viewsHow to create a JSF shopping cart with Hibernate Postgres Glassfich and primefaces?
I need to create a shopping cart like in a E-comerce but all on the same page, and I do not know where to start, I am new in programming I am with many doubts. In my design I use…
-
1
votes1
answer1203
viewsProblem with coin mask on Primefaces
I’m using JSF, and it’s not working my coin mask, did I miss some of the code? here is the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
1
votes1
answer3906
viewsJSF does not find resource
Good morning. I am not able to present a screen because it is said that a certain feature is missing that is not cited through the console and the error screen. Can someone give me a hand? xhtml…
-
1
votes1
answer41
viewsProblems with attribute update
Good afternoon. I’m having a problem instantiating a new object of type X every time I click on the "New" button. I will attach the bean, the view and two prints (update and new). Edit New…
-
1
votes2
answers402
viewsRedirect JSF error
I am trying to pass two parameters to another example page: <p:commandButton icon="ui-icon-pencil" action="form?faces-redirect=true&id=cargo.id"></p:commandButton> But this error…
-
1
votes1
answer499
viewsRedirect JSF page
I have a Sessionscoped bean that I use to navigate data from page 1 to page 2. Page 1 is accessed through the menu, while page 2 is accessed by a button inside page 1, where some data based on…
-
1
votes1
answer512
viewsHow to limit the number of characters in an inputNumber?
I’m using the Primefaces extension to format a input the weight and height of a person and could not. How do I limit the amount of characters typed in input? I tested with maxlength="5" but it…
-
1
votes1
answer438
viewsNull object fields when trying to persist with JSF and JPA
I am trying to persist an entity and when I try to persist it plays an error of Constraint Violation, performing the debug, I noticed that the object is instantiated but the fields are null.…
-
1
votes1
answer361
viewsJava Web Authentication Control
Good evening, I’m doing a project using JSF, Hibernate and Tomcat and one of the requirements is: X RF 01. The system must use access passwords for secure application control. What could I use in…