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
answer363
viewsHow to set Rendered parameter via JSF bean 2
am facing a small challenge where I need to create a Dashboard dynamically from a drop down. It is functional but there is a button in each Panel that the rendering of it depends on the existence of…
-
1
votes0
answers204
viewsJoin two <h:datatable> with jQuery without losing records after update
I have two datatables, the first one loads 5 records when loading the page and the second one is hidden and empty. Whenever the scroll reaches the bottom of the page I go in the database, I load 5…
-
1
votes0
answers324
viewsScope of p:ajax update and validation
I need you to change the value of the Levelno input to 0 the factoryCode input is disabled, and otherwise nothing should happen. I have the following code: <p:inputMask id="LevelNo" size="4"…
-
1
votes1
answer525
viewsServlet Faces - Error in context with path
Good morning, As I have already said in another topic is not my web area but I am trying to kkkk... After adding a Responsive template named Prologue I have the following error. GRAVE:…
-
1
votes1
answer150
viewsIncrease menubutton box
As you can see in the image, the last line has exceeded the box limit, where I can increase the box width? The code is as follows:: <p:menuButton id="documentos"…
-
1
votes1
answer239
viewsWhy is null returned when accessing the managedBean resource?
I’m having problems accessing methods and attributes in a managedbean. I’m using JSF and the Glassfish server, I’ve already used an architecture similar to the one I’m using but on a Tomcat server.…
-
1
votes1
answer116
viewsFacebook namespace not working in JSF?
I’m using personal jsf, I’m trying to make facebook recognize my metatags: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"…
-
1
votes0
answers264
viewsIntellij JSF - Page opens in white
What I did I created a project Maven and added the module of JSF, however, even with the library downloaded. What’s going on When I run my project using the Tomcat, the page olamundo.xhtml comes…
-
1
votes1
answer70
viewsTomcat JSF 1 Error with f:convertNumber
Hello, I use my application on Tomcat 6, I need to switch to Tomcat 7 but everywhere I use f:convertNumber I get the following error: /pages/Pvt/ipd/client/consultar.xhtml @37,105…
-
1
votes0
answers141
viewsSpringsecutiry and JNDI Authentication Problem
I have an authentication problem when I add the datasource in my project, it happens that when trying to login the authentication is performed but not the transition to the post-login page. I use…
-
1
votes1
answer290
viewsCreating dynamic tabs and combos - Jsf / Primefaces
I am working on a project that has as a basic requirement that the user can create screens to display data coming from various data sources. The user creates what we call Dashboard and includes…
-
1
votes1
answer281
viewsI can’t save in the bank and does not show error log in Hibernate project
In the project I use hibernate, and when I try to save a new client, it just shows the class validation message CadastroClienteService. The strange thing is that all fields are filled in the form,…
-
1
votes1
answer398
viewsInjection error of a JPA object in the Managerbean web project
I am having an injection error of a JPA object in Managerbean in the web project. I have divided into two projects controlled by the Maven. In the first project called Perolamodel contain the…
-
1
votes2
answers604
viewsDisable a p:inputText by focusing the cursor on another p:inputText
Hello! I’m having trouble getting a validation. Here’s the thing... I have a form made inside the components Primefaces 4.0 that has the fields "Cellular" and "Telephone". My intention is that the…
-
1
votes3
answers1290
viewsmask jquery currency
In my xhtml I have 2 input value 1 and 2. The first input works perfectly the jquery mask for currency. More in the 2 input that is in a modal the coin mask is not working. coin function function…
-
1
votes1
answer102
viewsPrimefaces component did not render as expected
As you can see in the image below, the input field is not in the layout of the primefaces. Does anyone know how I can solve? Below now follows my file . xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
1
votes0
answers160
viewsHow to uncheck a checkbox when another is selected?
<t:selectOneRadio layout="pageDirection" forceId="true" forceIdIndex="false" id="selectCodigoProcesso" rendered="#{!bkbCadastroPessoaJuridica.orgaoEntidade}" styleClass="envolveRadio"…
-
1
votes2
answers1250
viewsJSF - Bar loading while executing a Java method
Good morning, I have a login screen, and when the user clicks the Sign in button, I want it to be an incone showing "loading" while the java method is running. Follow my xhtml code: <?xml…
-
1
votes1
answer746
viewsomnifaces does not recognize CDI configured in Tomcat
Good morning everyone. I’m doing the book project "algaworks-ebook-java-ee-7-com-jsf-primefaces-e-cdi-2a-edition-20150228" and I’m having trouble adding the omnifaces. When I go up the Tomcat, I get…
-
1
votes1
answer500
viewsLogin screen problem, if logged in user redirects to telaInicio
Good afternoon, I am with a system, I was able to filter in case the user is not logged in to the session, redirect to login screen. Only now I’m trying to do the opposite, in case the user is…
-
1
votes0
answers87
viewsConnections in web application
I am creating a J2EE, jsf project. They have multiple Beans and controller, and the Beans access the Database. I’m having doubts how to manage the Connection for the database, right now I only have…
-
1
votes1
answer30
viewsProblem in rendering
In my registration screen I have 2 buttons: Save and Come back. In case I am editing some record, the button is enabled New. My problem is when I click this button New the screen gives the refresh…
-
1
votes0
answers270
viewsJSF + Primefaces <p:selectOneRadio inside Datatable and Pagination
<p:dataList value="#{simuladoBean.questoes}" var="q" type="unordered" rowIndexVar="qi" itemType="none" paginator="true" rows="1" styleClass="paginated"> <h:panelGrid columns="2"…
-
1
votes2
answers1127
viewsValidation Login and Password Primeface and JSF
I have a very simple system of Registration and Login, I made a validation in both fields. I want to adapt this validation to something more specific like: Login does not exist Password invalidates…
-
1
votes1
answer627
views<f:setPropertyActionListener does not work
I have the following xhtml page with the boot "Delete". <ui:composition template="WEB-INF/templates/_perfil-template.xhtml" xmlns="http://www.w3.org/1999/xhtml"…
-
1
votes1
answer1707
viewsmethod save: org.hibernate.Exception.Constraintviolationexception: could not execute statement
Guys, I have a little screen that registers name and type. When I click type Physics is rendered the date of birth and I need to save it and when I click Legal I have to save a branch of activity…
-
1
votes1
answer318
viewsHow to form a JSF with a field that can have as many values as needed?
Taking into account the following entity class: import java.io.Serializable; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import…
-
1
votes2
answers1103
viewsSend selected record from a p:datatable to the form, jsf primefaces
Hi, I’m new here, and I’m migrating from Struts 1 to JSF. I am developing in JSF a user registration screen. I would like it when I select a record from p:dataTable, the data from that selected…
-
1
votes1
answer67
viewsRefresh page inserts again
I’m starting web development with java and I’m doing some tests and I came across the following situation, I created a form that loads a list based on every click of the button, however, when I…
-
1
votes1
answer760
viewsJasperreport report - Blank page - PDF report
This is the following I created the report in jasperReport I created a parameter there ,with that the data from this report it is taking from the database (Mysql) and displaying the/ But when I put…
-
1
votes3
answers1043
viewsDelete registration form, JSF Primefaces
I’m using JSF with primefaces. I have a registration screen, and I have a button to delete the form data, would be a button to clear the form to make another registration. However, this wipe button…
-
1
votes0
answers150
viewsBean CDI with @Sessionscoped initializes more than once
I created a bean CDI with session scope (@SessionScoped). The problem is that it is going through the constructor several times, and it should only be once while the user is logged in, correct? I’ve…
-
1
votes0
answers1054
viewsJava ZIP Address Search
Good morning, you guys! I have a zip code search engine that is no longer working. When I use the URL passing my zip code it returns the query. Thanks for the help! Here is a example link to test…
-
1
votes1
answer135
viewsError accessing method in Managedbean
Guys I’m having problems accessing a method that is in my Managedbean, the idea is the following: I have a page where I list the records that are in db from the click on the "Query" button and then…
-
1
votes1
answer535
viewsGeneration of Billets with Bopepo
I have a system that generates an accounts receivable, and I am trying to implement the generation of bank slips, my teacher Advisor indicated me the tool 'Bopepo' Jrmum. I entered in my system and…
-
1
votes1
answer653
viewsPick row reference in table with JSF(Primefaces)
I have a scenario that presents something weird and I don’t understand why this behavior. Using JSF with Primefaces, I have a Datatable with some (several) values that comes from the Database and…
-
1
votes1
answer140
viewsAES JSF encryption
I have a problem with Seguinte, I have an AES encryption algorithm. When I run it by main it works, but when I run it on a jsf page and decrypt the text it returns several ???? when it contains…
-
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
answer646
viewsHow to internationalize the Timeline component of primefaces?
I’m using the Timeline component of the primefaces. Timeline Primefaces Although using the "locale" property it is not rendering in English. <p:timeline id="timeline"…
-
1
votes0
answers63
viewsError while listing data in Primefaces Dialog
By clicking on comandButonn this being loaded the last video from the list in the dialog, however in datatable works properly when displayed by the component media. I want to make it easy for the…
-
1
votes0
answers238
viewsPrimefaces - ColumnToggler Size
I have a datatable with a columnToggler, however I would like to remove the fields without increasing the size of the first field. I’m Using Primefaces 6.0. <p:dataTable id="cars" var="car"…
-
1
votes1
answer180
viewsHelp with post login menu in JSF in Javaweb
Talk to the guys, all right? I’m making a project manager in Javaweb with Hibernate, TDD, MVC, JSF, Primefaces and more I don’t remember kk, Next, when I log in to my project I make the menu appear…
-
1
votes2
answers225
viewsInputtext returns null
I got a problem I don’t know what else to do. My idea was to have a Checkbox that when marking would show a field and when unchecking would hide this field, for that I used rendered and ajax,…
-
1
votes0
answers140
viewsEdit datatable in Javaweb Dialog box - JSF
I need to edit a datatable line when I open the dialog box, but it’s not working the way I’m doing, I did a test on the console, and the object is null when I send the edit, it’s like I don’t load.…
-
1
votes1
answer366
viewsPass parameter in Bundle
My application uses message internationalization, etc. I would like to know how to pass parameters when passing a key that will fetch a value in the file .properties. Ex: My crud screens will always…
-
1
votes0
answers266
viewsjava.lang.Illegalstateexception: Cannot create a Session after the Response has been Committed
Good morning guys, I am with a strange problem in my application only after Gero War and send to Integrator, the application does not even open the Login screen, is returned this error: INFO:…
-
1
votes0
answers515
viewsDynamic menu with JSF and Primefaces when it becomes responsive does not work
I have a dynamic menu on my site, which is brought through categories previously registered in the database. Within each category, it has a list of subcategories. When I click on a subcategory, it…
-
1
votes0
answers116
viewsMaking a data filter
I have a page where I list data from a table in my database. In it, a field and a form, to filter data from the table. Follow the code that has been used to make the filter: <p:panel…
-
1
votes0
answers172
viewsJSF + DDD : Is it correct to use the domain entities within the bean Managed?
1 - In the DDD it is correct to let the domain objects be fed by the JSF through EL ? // classe da camada de dominio public class Cliente { private String nome; // getters e setters; } // bean…
-
1
votes1
answer116
viewsPrimefaces does not locate Panel and Datatable components
I’m doing a job where I use Primefaces + Ajax + Hibernate. I have a screen to include/change a client that should open in a modal every time the user clicks on the button. And in this same code I…