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
answer10
viewsHow to resolve ioexception in xls file generated by Jett?
Guys I have a bean with way to generate report so done with Jett: Map<String, Object> beans = new HashMap<String, Object>(); beans.put("fichasTecnicasMateriaPrimaResumo",…
-
0
votes1
answer172
viewsAfter registration, datatable is not updated
I have a problem where after registering my datatable is not updated. My button: <p:commandButton value="#{msg['salvar']}" action="#{encomendaController.salvar}"…
-
0
votes1
answer495
viewsTarget Unreachable, Identifier [usuarioMBean] resolved to null
I have a problem trying to log in to my java web application. As you can see below, there is the stacktrace of the HTTP Status 500 - Internal Server Error error. I’ve tried a few things, such as…
-
0
votes1
answer298
viewsClear form after registration (Javaserver Faces)
After having made a registration, it clears the form normally, but when I change page and return to the registration page, the fields are filled with the values I previously registered. The scoped…
-
0
votes1
answer56
viewsWhen returning validation error in the form, object gets the entered values
On the screen I have a datatable that I fill with a list of objects. Using f:setPropertyActionListener i set a list object to an auxiliary object and show it in a dialog. In the save method I speak…
-
0
votes0
answers41
viewsInfinite Loop Method
I have a method call that is made with <p:remoteCommand /> of Primefaces on my system’s home page. And it works perfectly with some users, but with others it goes through the method in the…
-
0
votes1
answer142
viewsProblems with <p:ajax> on primefaces
Good morning friends! I am a beginner in Java and am trying to develop a system for church management. After many attempts, I can make ajax work, but I am not able to recover the id of the state…
-
0
votes1
answer1075
viewsHow to call a JS function by passing parameter as soon as the page is loaded?
I have to call a function in my JS by passing as parameter an array, when the page is loaded. I can do it using one p:commandButton, where here: actionListener="#{rotaEntregaBean.gerarMapa()}" i run…
-
0
votes1
answer237
viewsjava.lang.Illegalargumentexception: Attempt to create delete Event with null Entity
I have a simple Manufacturer model class only with the attribute 'Description'. My database is populated and the save and edit method is working normally. However when I delete generates in the…
-
0
votes1
answer86
viewsHow to display html content in a datatable
I have the message field in an Editor that after inclusion is shown in a datatable. <rich:editor value="#{solicitacaoImpressaoBean.solicitacao.mensagem}" toolbar="full" style="margin-bottom:…
-
0
votes1
answer68
viewstype Enum field can be used for comparison?
I own an enum field: public enum StatusImpressaoEnum { PREVISAO(0 ,"Previsão"), EMELABORACAO(1, "Em Elaboração"), AGUARDANDOREPASSE(2, "Aguardando Repasse"), REPASSERECEBIDO(3, "Repasse Recebido"),…
-
0
votes0
answers272
viewsJSF error - The value of Columns attribute must be Greater than zero
I have this problem, specifically in the Selectmanycheckbox component. Follow the code of my Bean: package controle; import java.io.Serializable; import java.util.List; import…
-
0
votes0
answers84
viewsProblem to convert with composite key into jsf, selectonemenu
I am making a selectOneMenu where the itemvalue will be a composite key. Which will be separated by a hyphen. However, when sending, the getasobject method is called several times, sending all items…
-
0
votes1
answer162
viewsObject comes pro bean with all blank JSF fields
I have a list of Predio objects that is being iterated in my xthml Then, for each iteration, I create a panel and in each panel I display the name of each of the predicates in the list and a button…
-
0
votes0
answers642
viewsHow to fix in my code: Null Pointer Exception
my database has those responsible with values of "Supervisor" and "Manager". However, I do a search to get the Employees responsible and no return. See my getResponsaveis method in my class "Maid.":…
-
0
votes1
answer318
viewsHow to set up a common java project, host and run on a server
Whoa, good night guys, so with some questions about java systems running without server. Some friends and I are developing a java integration project (we receive information from a server/service,…
-
0
votes1
answer514
viewsClose modal JSF
I need to do mine deleteConfirmationModal close. It only works by clicking on NAY. I need to make him perform the action of YES and close the modal. <p:commandLink title="#{label.REMOVE}"…
-
0
votes2
answers477
viewshow to change the color in each selectitem of a jsf selectOneRadio
I have a selectOneRadio that has 3 options : Finishing, embargo and Shipping <h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia" > <f:selectItem…
-
0
votes0
answers182
viewsHow to improve ajax update ? JSF performance
I am developing a system for restaurant and I have a datagrid that updates the other. For example: I click on the class and update the product datagrid. It works, but the result is slow. I’m wearing…
-
0
votes0
answers191
viewsPrimefaces Wizard skips tab without validating fields
I created a javascript function to validate form fields composed by the component <p:wizard> of the Primefaces. The function is called through the event onnext=""of <p:wizard>, that is,…
-
0
votes1
answer29
viewsUpdate in an off-tab dialog
Hello Everyone I am trying to update to appear a dialog dlgPagamentos and does not appear when clicking the search button. <p:dataTable id="tabelaPagamentos" var="pagamentoAux"…
-
0
votes2
answers144
viewsWhen opening a dialog block tabs
Headlines How to do so when opening this dialog, block the tabs not to be clicked on my screen. <p:dialog id ="dlgPagamentos" widgetVar="dlgPagamentos" closable="true" resizable="false"…
-
0
votes3
answers500
viewsForeign key exclusion
It helps the logic. My question is this:: I have a simple relationship between Lancamento and Pessoa, where people is the foreign key in Lancamento Model Class @NotNull @ManyToOne(optional = false)…
-
0
votes1
answer111
viewsHow to find out which tab is enabled
I am programming in JSF using Primefaces. Here I am with a form that has 4 tab’s and I need to check which tab is enabled to be able to call my javascript and validate the data entered at the moment…
-
0
votes1
answer331
viewsJSF Open Image (Defaultstreamedcontent) on another screen
Hello, I am working on a project with jsf and primefaces, where I have an entity called Registry that has a list of images, these images are in a directory outside the project, which access to load…
-
0
votes2
answers95
viewsHow to make Item only appear when category code = 1
I have the following code <h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia"> <f:selectItems value="#{solicitacaoImpressaoBean.tipoGuia}" var="guia"…
-
0
votes1
answer125
viewsPrimefaces inputText Ajax, returns value missing the last character
I’m having a problem using the ajax of primefaces, I also tried with the ajax of jsf. I have the following code snippet: <h:panelGroup> <p:inputText id="skuProduto" size="20" maxlength="20"…
-
0
votes1
answer46
viewsCommandbutton does not register in SQL
I’m having trouble with my code, when I register a new vehicle, it says that the vehicle is not being instantiated and is returning null. Follow my settings: LAYER DAO: public void adicionar(Veiculo…
-
0
votes1
answer611
viewsDoubt in listing data from the JAVA database - JSF
Good afternoon, I have a doubt in listing data in a datatable, coming from the BD. I do not know how to return to the BD data view. Follow my code until the moment package…
-
0
votes1
answer72
viewsError executing JSF project
I am going up a jsf project, but give this error in the console. log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j system properly.…
-
0
votes1
answer48
viewsError while listing data in Datatable
Good morning, I’m trying to make a simple listing of a table on a primefaces datatable, but they’re not listing anything. Follow code until the moment. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
0
votes0
answers74
viewsError in converter for Selectmanycheckbox
I am making a Java web application and came across a problem in the converter to be used in selectmanycheckbox. The converter I made was this: @FacesConverter(forClass = Indicacao.class) public…
-
0
votes2
answers162
viewsI wanted to add more than one permission in the springSecurity roles
I would like to know the correct way to add more than one permission to the same folder in springSecurity because I wanted the admin to have the same access as the average user with an extra page.…
-
0
votes0
answers44
viewsI’m trying to upgrade from spring security 3.0.5 to 4.2.3
I’m trying to switch from spring security 3.0.5 to 4.2.3 but I’m having a serious dependency problem. In this project I was forced not to use mavem or something like that. And the problem (I just…
-
0
votes1
answer49
viewssessionFactory null when trying to select in the database
Good morning,I’m using Spring and JSF. I wanted to query the database and return the data from a table, but in the method I do the search, when calling sessionFactory, it is null. I really couldn’t…
-
0
votes1
answer46
viewsLock send button when no file has been uploaded
So, guys, I have a fileUpload component from primefaces for uploading files. It turns out that even with the required="true", if the user click submit without having uploaded any file the system…
-
0
votes1
answer68
viewsxmlns jsf error, settings?
I am getting the following error when trying to compile a xhtml page, I am using the xmlns`s below: Elements with namespace http://java.sun.com/jsf/html may not have Attributes in namespace…
-
0
votes0
answers227
viewsFilter Datatable Primefaces does not work with p:selectCheckboxnu
Talk to me, people! I’m using the filter itself datatable of primefaces but it’s not working when I use it to filter the p:selectCheckboxMenu.When I select one of the options it doesn’t find…
-
0
votes2
answers103
viewsDoubt in Selectonemenu Primefaces
I have a Selectonemenu in my xhtml view. I have an onchange in it that when clicking calls a p:dialog to fill out a form. Follow selectOneMenu <p:column headerText="Mecânica"> <div…
-
0
votes1
answer90
viewsTraverse lines from a javaEE, jsf2, and Primefaces datatable with Keyboard arrows?
I found this code on the Internet, but part of it was discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() {…
-
0
votes1
answer39
viewsrequiredMessage not working on selectOneMenu JSF
I have the following requiredMessage <h:selectOneMenu class="form-control" id="selectOlhos" value="#{corpoController.corpo.corOlhos}" required="true" requiredMessage="Selecione uma opção.">…
-
0
votes0
answers207
viewsDoubt JSF Dialog + Selectonemenu
Hello, I’m trying to open a dialog with a selectonemenu, depending on what the user selects. My Selectonemenu looks like this <p:column headerText="Mecânica"> <h:commandButton>…
-
0
votes2
answers509
viewsLoad data into Inputtext JSF + Primefaces
I have a page that searches for a client and returns a datatable, with this return I would like to select the client that was selected and popular another inputText with the data that were selected…
-
0
votes1
answer85
viewsGrowl component "life" attribute only works the first time
We are running a JSF project using Primefaces (v5.0) and created a simple validation for blank fields in our form. The first time it is fired, the component performs the actions correctly. If the…
-
0
votes1
answer146
viewsMount recursive function for Treetable
I’m trying to build a tree of folders and questions with Java, Jsf and Primefaces. I have two lists, one is the one that saves the folders and subfolders, and another list is the one that assembles…
-
0
votes1
answer162
viewsInsert foreign key Hibernate
I have four entities (selection, match, bet and bettor) where within the Bet class I have the Ids of a bet and a bettor. When I try to insert a bet by clicking on the match and the player, it…
-
0
votes1
answer90
viewsHow to list all Jsonarray data using JSF?
I’m having trouble listing all the data from JsonArray in a JSF, always remains only the last value, already when I use System.out.println(variavel) I can list everything without problems. Page JSF…
-
0
votes0
answers139
viewsProblem with @Facesconverter
Good morning to all. I do not know what to do to solve this problem in @FacesConverter(forClass=Fabricante.class) that I implemented... The method getAsString is called with null values. All…
-
0
votes2
answers856
viewsHow to use p:fileDownload to download a specific file
I have a datatable and I want to implement a download button to download the pdf file from that specific line. I already managed to implement p:fileUpload and now I want to download this uploaded…
-
0
votes1
answer83
views"<p:message" Does Not Display Message in XHTML
Hello, I am implementing a register using the primefaces to present the critical messages performed in the bean. I’m using the Facescontext as below:…