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
votes0
answers110
viewsDependent checkbox
I have a problem and I was wondering if you could help me. I have a CRUD that registers cycles, these cycles can have many courses. What I wanted to do exactly, is validate the selectsOneRadios when…
-
0
votes1
answer243
viewsManipulating a JSF + Primefaces datatable
How do I make for the dataTable only be displayed after I click Reply Simulated? When loading the page, the dataTable first logo is already displayed, even I have no question in it. I have a Command…
-
0
votes1
answer75
viewsI cannot render a component after clicking a button
I can’t render the include component that’s inside a panel, I want to render by clicking a button inside a datatable, but when I click the button nothing happens View Arts Aptas a Book of Order…
-
0
votes1
answer124
viewsHow to pass a parameter between two views with @Viewscoped
I need to pass an id of an object between the views, the Beans of both are view scoped, I’m trying to pass via f:param, but I can’t. The value always arrives null in the other view View 1…
-
0
votes1
answer74
viewsMethod not called when using command button
I have two methods in two different dialogs: adicionarRelato and RetificarRelato. The adicionarRelato performs perfectly at the click of command button in the first dialog. But the retificarRelato…
-
0
votes0
answers137
viewsRendered attribute not working in p:dialog
I need to render a form that is inside a panel in p:dialog and after I save the data, I want to hide it and render a p:fileUpload in p:dialog. But I can’t do it, I don’t know what’s wrong. The…
-
0
votes1
answer50
viewsHide and Render component in p:dialog
I need to attach files and save the path in the database. Attachments belong to an object that can have multiple attachments, so I created an entity to store the path in the database, however I need…
-
0
votes0
answers48
viewsGenerate web pages using Flask or Django from the tables
I have a schema in a Mysql database. I want to generate the web pages from the tables of this schema. Is there any generator of this in python? A few years ago I was generating a "system" like this…
-
0
votes0
answers620
viewsRedirect user to requested pages after login
Here in the company it is common to pass news links from the portal to others via email, but when the user opens the link he asks for authentication in the system, but after logging in he is…
-
0
votes0
answers28
viewsERROR when selecting a simulation
I have a subscription problem. I have a screen that recovers cycles that are open according to the course of the user and for each cycle of this already has a simulated saved, ie a relationship.…
-
0
votes0
answers26
viewsFunction to unzip xml does not work on Linux
In my application I use a function to zip the xml files to save them in the database. When I unzip it to make the file available for download the xml does not come complete, at the end of the file…
-
0
votes1
answer144
viewsjava.lang.Noclassdeffounderror: org/codehaus/groovy/Runtime/Bytecodeinterface8
I have a report and need to use sub Ports, but whenever I try to use, find this exception: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/BytecodeInterface8 Caused by:…
-
0
votes1
answer72
viewsCreate mask to accept only links containing HTTP/HTTPS - Java JSF
I need to create a field input where the user will place a link, but this field can only accept links that contain http:// or https:// at first. There is a way to do a validation in Javascript or…
-
0
votes1
answer88
viewsPaging appear in JSF Primafeces Datatable only when you have more than one page
How to make pagination appear only when you have more than one page, using the Datatable of Primefaces in the JSF?
-
0
votes2
answers143
viewsSpring Bean tenantEntityManager error: Unable to find column with Logical name
am having an error while trying to run my JSF application with Spring, more specifically: -I have a method to do a badge search on certain repositories and change them after running method on a…
-
0
votes1
answer47
viewsError in Facesconverter with variable type Date
I am getting the following error while running a web project: java.lang.Classcastexception: java.sql/java.sql.Date cannot be cast to br.faraway.Nicholas.converter.Sampleentity My page on which I…
-
0
votes1
answer40
viewsWhen trying to generate report I come across this error! I am using Jasper
I am using a Composite to print out reports Note: I can send the report with my City usually the problem is with the material. Menu Impressão Composite <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
0
votes0
answers270
viewsUpdate image after attaching to fileupload
When I insert the image by dialog using the fileupload the graphicImage does not update the image after I click on attach. The photo only appears on graphicImage after I save the form. I wanted the…
-
0
votes1
answer15
viewsApplying the paradise premium primefaces theme to a project that is not Maven is possible?
I was able to import the War that comes in the theme file and access the contents, but I already have a non Maven project started and Spring Security structure mounted working correcting already ..…
-
0
votes1
answer97
viewsJASS implementation in JSF + Tomcat
I want to create an authentication for login in my project, but when I try to log in, the error java.lang.Nullpointerexception appears Error log javax.faces.el.EvaluationException:…
-
0
votes0
answers135
views -
0
votes3
answers97
viewsI cannot save my Selectmanycheckbox Primefaces in the database
My View Cad Medico xhtml <p:selectCheckboxMenu id="multiple" value="#{medicoBeanView.objetoSelecionado.especialidades}" label="Especialidades" multiple="true" filter="true"…
-
0
votes0
answers13
viewsHow to instantiate a bean again after the session drops JSF 1.x
Good afternoon, you guys, I’m racking my brain with something I believe is simple. Next, is there any way to instantiate a Bean and its attributes "manually"? I have a configured bean in xml with…
-
0
votes0
answers105
viewsMerge Jasperreport report with other Pdfs and images
I have a Jasperreport and need to attach to it other Pdfs and images that the user attached. I was suggested to use iText, but I still have no idea how to merge the Jasper report pdf with these…
-
0
votes0
answers99
viewsError when returning the object after query
Good night to you all. Objective: The main objective is to take the user id and the code of the simulated that he answered, and display it on another screen after he answers this simulated, however,…
-
0
votes1
answer45
viewsNull arrives attribute in Managedbean
I have an object called Historicosituacaodocumentacaoprotocoloonline, this object has some dates, a description and another object, called Situacaodocumentacaoprotocoloonline. The dates are being…
-
0
votes1
answer54
viewsPlaceholder in <h:inputText with JSF 1.x
Good morning, I’m with a system developed with version 1.2 of JSF and Richfaces 3.3 I’ve been researching about including a placeholder in the element <h:inputText jsf but only found tutorials…
-
0
votes1
answer688
viewsNavigation to pages in subfolders in JSF 2 does not work
I have the following problem: I have a hierarchy of folders where I separate my web pages from the project: Web |- Acoes | |- usuariosAcoes.xhtml | |- cadastrarAcao.xhtml |- usuarios | |-…
-
0
votes1
answer161
viewsRendered Does not work in datatable
Good afternoon. I have a simple problem. However, I am struggling to solve. I have these 2 methods to control my Rendered do dataTable: // Filtra o simulado.. @Transactional public void…
-
0
votes1
answer134
viewsHow to save an image in the BLOB field of the SQL bd using jsf + primefaces?
I have a table in the database where the BLOB type field already exists to store an image. I wanted to know how to capture an image through JSF/Primefaces and store in this BLOB field of the…
-
0
votes2
answers261
viewsHow do P:Izard go back to a certain tab?
I have a p:Wizard in which, if a certain condition is true, it advances to the last tab by clicking next. But I’m not getting it back to the first tab if I click back. There’s a way to do this with…
-
0
votes0
answers231
viewsgraphicImage does not render: ? pfdrid_c=true
I’m trying to display an image with , but it’s not showing in any browser. On my page I make the call of the mode image: <p:graphicImage value="/upload/#{desap.foto}" height="140" width="140"…
-
0
votes1
answer57
viewsJSF - Deploy problems with Wildfly and Tomcat9 (web.xml and faces-config)
Hello, everybody! Good morning. I have a big problem that p/ me is bizarre. I have a little project here very simple, but I’m not getting up. When I run it from the entire project (right click - Run…
-
0
votes0
answers13
viewsRedirect to page . jsp via a commandLink tag
I’m having a hard time linking a jsp. Use little JSF and would like to know which command can be inserted inside the tag commandLink to make a redirect process. Example: <h:commandLink…
-
0
votes1
answer303
viewsPerformance when generating a JSF table
I’m having a question of how to improve perfomance when generating a table on a page using components JSF and Primefaces. I am generating a table, after making an SQL query and mapping the object…
-
0
votes0
answers356
viewsJSF - Custom validator executed, no problems found, but execution flow does not arrive in Managed Bean
I created a Custom Validator, referenced it in a <h:inputText>, Validator runs, no exception is raised, but the execution flow does not arrive in Managed Bean. Where I must be going wrong?…
-
0
votes1
answer320
viewsMaven changing the faces-config.xml
I have an EJB project and my Maven keeps changing the faces-config.xml when I run "mvn install", Maven changes everything inside it leaving without the paths I specify, follows my "pom" file of the…
-
0
votes1
answer124
viewsHow to download a PDF that is in C:
With the code below I can download a JPG, but with PDF does not work. I tried to change the last line for that, but it didn’t work either. file = new DefaultStreamedContent(stream,…
-
0
votes1
answer202
viewsWhy does the primefaces dataScroller stop fetching records?
My xhtml is like this: <p:dataScroller ajax="true" id="listaDiarios" chunkSize="3" lazy="true" value="#{managedBeanUsuario.lazyRegistrosDiarios}"…
-
0
votes1
answer81
viewsI can’t get value from my form
I created this form and I can’t redeem its values in Bean. Follows form and parts of the bean. Form <h:form id="form"> <p:commandButton value="Salvar" icon="ui-icon-document"…
-
0
votes2
answers2968
viewsError org.hibernate.Lazyinitializationexception
Error when the drive class is filled with data in the database, if there is no record, I can access my xhtml normally. In the class I count with fetch = Fetchtype.EAGER, but in the class drive this…
-
0
votes1
answer126
viewsProblems configuring Table with CSS
I am creating a commercial project in JSF, and to start the project I started to create the layout of the pages, to create the project, I am doing it by pieces, and in each piece of the project I am…
-
0
votes3
answers579
viewsJSF + Primefaces - HTTP 404 error
Good morning, Web isn’t my thing anymore. I created the project as "Dynamic Web" after converting to Maven because it was giving errors and the way it stopped giving error was described above. I did…
-
0
votes2
answers348
viewsChange whether or not item appears in <p:Datatable>
Good morning. I am with the following datatable: Could you give me some insight into how I could make this Expansion appear just for the first two lines? The rest have no details to appear in the…
-
0
votes1
answer100
viewsProblems with editable <p:datatable
Good evening. I’m having trouble updating an editable datatable I created here. It reads the values, but does not assign them to the Managedbean object so I can persist. Follows Code of the Bean…
-
0
votes0
answers263
viewsTomcat message with JSF error 403
I’m using the netbeans 8.1 to develop a JSF application, but when I run the facelets template appears the message I’m posting on the forum. Man Tomcat was installed along with netbeans, and I have…
-
0
votes1
answer172
viewsPrime faces does not run the theme "SAM"
When I run my main.xhtml page the theme is not displayed next to the page The tree of the project is attached. Web file.xml <?xml version="1.0" encoding="UTF-8"?> <web-app…
-
0
votes1
answer930
viewsHow to resolve "Type Mismatch: cannot Convert from element type Object to Message"?
I was studying JSF and found this site where teaches to create a basic chat using JSF, primefaces and ajax: https://jetcracker.wordpress.com/2012/03/04/jsf-how-to-create-a-chat-with-ajax/ I have the…
-
0
votes1
answer722
viewsJavascript in JSF page - Primeface
HTML code - JAVASCRIPT It reads a txt file from the computer and puts its value in an html input <input type="file" id="files" name="files[]" multiple /> <input type="text" required…
-
0
votes0
answers72
viewsNull Field Error - Java Web
In the project I am studying is based on the book "Java Programming for Web" where a strange error occurs, then the error arises after filling the entire form, where it appears in the log that the…