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
answer169
viewsInternationalization with Enums Labels
Hello I’m trying to do internationalization with Labels from an Enum: public enum WeekDay { MONDAY("msg.week_monday", "mon"), TUESDAY("msg.week_tuesday", "tue"), WEDNESDAY("msg.week_wednesday",…
-
0
votes1
answer73
viewsChange pattern behavior of element p:confirmDialog
I need to change the default behavior of the p:confirmDialog element. By clicking yes, he must complete the request by passing a value and clicking no, he must complete the request by passing…
-
0
votes0
answers415
viewsError like @Manytomany (com.sun.Jdi.Invocationexception occurred invoking method) - JSF
Galley, am trying problem to change an employee’s password, in my Manytomany is giving an error: com.sun.Jdi.Invocationexception occurred invoking method Can someone help me? Functionbean…
-
0
votes1
answer1076
viewsHow to make a regular expression to validate JSF password
I need a regular expression to validate password as below: The password must be in the default: Ipe@1234 (letters, special characters and numbers) I’m using this below, only it does not validate,…
-
0
votes1
answer1134
viewsPrimefaces doesn’t see the methods of my class
Here’s my problem: In the xhtml below (listDeOSs.xhtml) when I put it this way, it does not recognize the method I made in my Bean (the bean method returns a list). JSF along with primefaces is…
-
0
votes1
answer219
viewsInsert arrow in Submit input for when jsf render appears on button
I made a whole layout in HTML5 and I have a "next" button where I have an arrow in it, but the developers are doing it in JSF and by rendering the commandButton becomes a input type submit and the…
-
0
votes1
answer60
viewsError using JSF Exporter lapis
I’m trying to implement the Lapis JSF Exporter I use Primefaces 5.3 jsf version 2.1.20 error occurs and the project does not go up... Apr 26, 2016 5:29:21 PM…
-
0
votes1
answer35
viewsShow itemLabel instead of ivemValue in Datatable - JSF, Primefaces
Well, I am working on a project and when saving a register using selectOneMenu of the primefaces, an Id is being displayed instead of the field name that was selected, I need to know how to display…
-
0
votes1
answer52
viewsDoubt (hibernate) - JSF
I’m making an employee register, and this register already has departments registered in the bank. So, at this point I walk through the database to present the data in the view, but when I finish…
-
0
votes1
answer300
viewsError - JSF and Primefaces
Error trying to register user, the following message appears: accordion:dtNasc: '22-02-1990' could not be understood as a date. XHTML: <p:outputLabel class="lt" value="Data de Nascimento:" />…
-
0
votes1
answer786
viewsRender component after clicking button
I have a Yes/No button.I would like to have an element rendered below by clicking Yes. As follows in the example of my page: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC…
-
0
votes1
answer354
viewsManagedBean methods are not processed
Good morning, I am the following problem. I have an application that has several Managedbeans that are working normally. Today I went to create a new bean to do a test and this bean does not run nor…
-
0
votes1
answer929
viewsUse external css file in JSF
given my template page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"…
-
0
votes1
answer1413
viewsChange theme of the first faces
I’m trying to change the theme of primefaces, downloaded all available themes using Maven and my web.xml file was like this: <?xml version="1.0" encoding="UTF-8"?> <web-app…
-
0
votes1
answer235
viewsError in properties file configuration
I am trying to set up a properties file. I followed some tutorials but unsuccessfully. I am with the following error: Caused by: java.util.Missingresourceexception: Can’t find Bundle for base name…
-
0
votes1
answer546
viewsEdit datatable record
Next person: On my datatable when I click the edit button, you are not opening the screen for editing. Can anyone help me where I am missing? page: <h:form id="pesquisa"> <p:panel…
-
0
votes1
answer152
viewsCalling a method via datatable lines
Given my datatable below: <p:dataTable id="tabela" var="linha" value="#{naturemb.lista}" paginator="true" rows="10" rendered="#{not empty naturemb.lista}" > <p:column…
-
0
votes0
answers59
views"java.lang.Nullpointerexception" in JSF Hibernate application
My web application uses JSF/Hibernate , but when I run a search method in the BD it returns "java.lang.Nullpointerexception " . What will be the cause of the error ? /* * To change this license…
-
0
votes1
answer76
viewscommandLink does not link to the screen
I’m starting with sf and I’m having a problem with this project. The following command does not create the link on the screen I need to go to the next page, just gives me "New user" written on the…
-
0
votes0
answers156
viewsMethod with jsf + output Parameter
How I can pass a parameter to a method and at the same time return the method value with output? Example. //Bean public String getResposta(String ok){ return ok; } //pagina <h:outputLabel…
-
0
votes1
answer19
viewsHow in xhtml commandButton identify that an error was generated in Dao and keep the navigation on the same page?
On the xhtml page in a commandButton call the action confirms() to confirm the recording of an object. The return of this method is a string pointing to a new page. <p:commandButton…
-
0
votes1
answer87
viewsSlowness in the first access to the newly hosted site
good afternoon! I’m starting to practice my studies with Web development and when hosting and climbing a JSF site with Spring and Hibernate, the first access is very slow. Once it accesses, the…
-
0
votes1
answer189
viewsHow to delete objects within a List?
Guys ,is the following... In this project I’m using JSF,Primefaces and I’m still new to programming.. the list screen is displaying the information according to the bank Only that I wanted to delete…
-
0
votes1
answer114
viewsnull return when trying to persist data
I’m having problems registration and search system while persisting in saving method of the null return, I already switched to @viewscoped my bean but nothing, debugged project and nothing, I can…
-
0
votes1
answer394
viewsFilling in automatic data - JSF
I need to have my inputs filled automatically, after selecting the combo. I have done the method to go through the database and retrieve the necessary information, but does not fill... Can anyone…
-
0
votes1
answer148
viewsApplication - playing this message - javax.el.Propertynotwritableexception - not writable on type
Hello. It’s the following ,I’m not able to delete the selected fields,and my application is playing the message - javax.el.Propertynotwritableexception: /listFunction.xhtml @29,32…
-
0
votes1
answer53
viewsBootstrap interfering Imageareaselect (Primefaces)
I’m using the component, from the Extesions primefaces, called Imageareaselect. Primefaces Extesion - Imageareaselect However this Bootstrap TAG is causing the background of Imageareaselect is…
-
0
votes1
answer265
viewsProblem with the confirmDialog component of the primefaces
In the view of my java application I have a commandButton that should open an exclusion dialog, however, when clicking the delete button the dialog is not shown. The code is: <ui:composition…
-
0
votes2
answers337
viewsJSF tags are not being converted to HTML
I created a Maven project in Eclipse to use JSF and made all the settings the material asked for. However, when I created a XHTML file and went around in the browser, the source code of the page was…
-
0
votes0
answers242
viewsEclipse/Runtime only updates HTML after restarting
Good night! I don’t know if anyone will be able to help me, but it’s good to try. I have a project JSF in the Eclipse for years, whenever I update a XHTML the change was reflected in the navigator.…
-
0
votes1
answer63
viewsUser see only Items of the Operational unit that is in your registration
I have a vehicle management system. The company in which I work has several business units, so the user can only see the cars of the unit in which he works. This I managed to do, but whenever…
-
0
votes1
answer208
viewsAccess my application without the version number
My JSF application runs in wildfly. But when I lift the server, to access the application I must use: http://localhost:8180/app-0.0.1-SNAPSHOT/start.jsf. In short: I want to take the -0.0.1-SNAPSHOT…
-
0
votes1
answer85
viewsJSF property not found (javax.el.Propertynotfoundexception: Target Unreachable)
I’m starting an application in Primefaces. I did a small project that has only one model class. I created a repository class where I placed an arraylist of this class. I developed a small CRUD page…
jsfasked 8 years, 2 months ago OrlandoDias 14 -
0
votes1
answer43
viewsvariable does not take selectedOneMenu value
In a form I have the field where I enter the name and create a folder with that name, in the second form a selectedOneMenu where lists the folders I created in the first form, now my problem is in…
jsfasked 8 years, 2 months ago Renato Valadao 11 -
0
votes0
answers27
viewsvariable in selectOneMenu
In a form I have the field where I enter the name and create a folder with that name, in the second form a selectedOneMenu where lists the folders I created in the first form, now my problem is in…
-
0
votes0
answers993
viewsSet variable value in Inputtext JSF
Guys, I’m having a doubt maybe a little bit stupid but I’m not able to solve, I’m starting web development using java and jsf, primefaces and I have a problem at the time of changing a record. I…
-
0
votes1
answer55
viewsuploadFile primefaces
The method below, along with my jsf, uploads a file. bat to a folder inside my project, until then it works normal, the problem is that when I go to see the folder where the file is, it is there,…
-
0
votes1
answer148
viewsWhite Space selectOneMenu
I would like to know if it is possible to remove a blank field in selectOneMenu, I have the following case, I have a selectOneMenu that displays several names, some names that I do not want to…
-
0
votes3
answers355
viewsPrimefaces Datatable Edit does not send updated value for editing
I am trying to update through the Edit datatable of the first faces, but it does not send the updated inputtext value to the bean. The process occurs almost correctly, the value is sent and updated,…
-
0
votes0
answers162
viewsMake downloading Html5 video difficult
I would like to make it difficult to download Html5 videos from the URL, which the user can inspect (examine with browser functions). Searching the Net saw that there is a 100% way not to allow the…
-
0
votes2
answers2979
viewsScroll to the bottom of the page automatically
I’m developing an application where the user asks a question and the server delivers an answer, I’m having trouble getting the scrollbar to keep up with the conversation, So far I’m having the…
-
0
votes1
answer87
viewsCharts Primefaces
I am having the following problem I have the following class that receives the values of the graph of information collected in real time from the bank @ManagedBean public class ChartView implements…
-
0
votes1
answer263
viewsSwap button after JSF click
Talk personal I have the following problem, I have these two buttons that make: X : Removes the value of a chart + : Adds the value of a chart I need it to look like this: When I click the X button…
-
0
votes2
answers199
viewsLoad objects from other classes
I have a selectOneMenu which will be used to list all Generations (data in the database). These data should be listed when registering a Nature object. My selectOneMenu is like this :…
-
0
votes1
answer186
viewsBigdecimal - set to null by form when input is empty
I have a form (jsf/primefaces) where a value of the kind BigDecimal, can be submitted without value. In this case, its value should be null. However when set is as 0. There is an argument that is…
-
0
votes2
answers1427
viewsMark or uncheck selectBooleanCheckbox when clicking another
Hello, I have the following situation: On my jsf page I have some components selectBooleanCheckbox. I need that when clicking on one of them some others are unchecked, and also disabled, making it…
-
0
votes1
answer1211
viewsCentralize components
The print below is from the confirmation of a record of my datatable, the popup is opened when you click on the delete record button: The code of this dialog is as follows:: <p:commandButton…
-
0
votes1
answer126
viewsRedirect between pages with datatable(primefaces) without losing filters
I have 3 pages and they are responsible for fetching objects in my databases based on the first page selection filter. My website is about car ads and has the following structure: 1st page:…
-
0
votes3
answers3802
viewsLoad a list of Enums
I have a selectOneMenu thus: <p:selectOneMenu id="diminui" value="#{naturemb.nature.diminui}" effect="clip"> <f:selectItems itemLabel="#{naturemb.carregarAtributos()}"…
-
0
votes1
answer38
viewsProblems inserting an OBJ into a LIST
I’m doing a survey using the LIKE, in the MySQL with JSF. Whenever I will insert the search result inside a array to return to my JSF, the array add, but always overwrite items with the last…