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
answer149
viewsInjected object but is null
I have an object that is injected into my converter : package br.com.pokemax.modelo.converter; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import…
-
0
votes0
answers68
viewsHow to edit an entity that has another jsf object?
Good afternoon guys, I’m new to programming and I’m having problems with my jsf project. I have a client class that has an address object, with relationship @OneToOne to the address. I am able to…
-
0
votes1
answer252
viewsShow suggestions while typing autocomplete
I got the following autoComplete : <p:autoComplete id="geracao" value="#{habilidademb.habilidade.geracao}" completeMethod="#{habilidademb.listarGeracoes()}" dropdown="true" var="bean"…
-
0
votes1
answer298
viewsUi:repeat - taking Description from the bank
Hi. I would like to know ,how to organize my ui:repeat... why on the page it displays : Change of Schedule and the checkbox field, Nightwork and the checkbox field summing up I wish I could organize…
-
0
votes0
answers83
viewsConversion error on Primefaces imageCropper component
I’m trying to cut an image with the component imageCropper of Primefaces, but in the implementations I performed it only gives conversion error, and when not, the object croppedImage that Primefaces…
-
0
votes1
answer390
viewsDynamic query using JPQL
I need to implement a dynamic query logic, in BD using JPQL, and I have 4 filters: 1 - PROJECT COORDINATOR 2 - SERVICE PROVIDER 3 - PROJECT START DATE 4 - FINAL DATE OF THE PROJECT Any of the fields…
-
0
votes1
answer174
viewsP:messages duplicating messages Primefaces JSF
Message duplication problems in Primefaces p:messages. In the application I call this method just to insert the message. Follow the code: public class FacesUtil { public static boolean isPostback()…
-
0
votes0
answers400
viewsAjax does not work, selectOneMenu cascading
I am developing a program but ajax does not work at all. I decided to make a very simple system to see where the error is and still can not a solution. I saw some of that on the forum but I couldn’t…
-
0
votes0
answers455
viewsUpdate datatable
I’m having trouble updating a primafaces datatable after doing a filterBy search. First, I do a search through a method in managedbean to bring the list from the bank to the table. Therefore, I…
-
0
votes2
answers49
viewsRendered does not let the button work
I have the code below it only renders if the.aditivopdf contracts are 1 only with this code he does not enter the actionlistener method only that if I remove that rendered, the actionlistener calls…
-
0
votes1
answer66
viewsParameter is not coming as null
I am working on the internationalization of my messages and their centralization. I have the following methods: private static void addMessage(Severity severity, String mensagem, Object...args){…
-
0
votes1
answer389
views -
0
votes0
answers46
viewsConfigure Webservice
I’m having difficulties to configure a POST method, I’m implementing the integration with the payment platform Gerencianet, their support returned me the following message in a call: Dear, please…
-
0
votes0
answers109
viewstag p:commandButton does not do what is in managedBean
I’m starting now at jsf primefaces and I’m in trouble. My commandButton is not executing the method that is in managedBean and is not shooting anything on the console when you click on it (even when…
-
0
votes1
answer244
viewsMessage is not being displayed
Inside my form has a autocomplete, When activating the autocomplete and if the previous field has not been filled I want to send a message stating that the previous field must be filled. I…
-
0
votes1
answer231
viewsPrimefaces (Tabview): Null properties when saving
I’m using a Tabview with two tabs and each tab with an external file with fields. By clicking the "Save" button the attributes are coming as null. Follows the code: Clientescadastrados.xhtml: ...…
-
0
votes0
answers60
viewsJsf registration of launches page
I’m studying jsf, I made a launch registration page, but when I enter the data and click on the button to register is occurring the error below, someone can help me HTTP Status 500 -…
jsfasked 7 years, 8 months ago ROBSON CESAR 1 -
0
votes1
answer65
viewsObject is not completed
I have the following form from my page: <h:panelGrid columns="3"> <p:outputLabel value="Código" for="codigo"/> <p:inputText id="codigo" value="#{encomendaController.encomenda.codigo}"…
-
0
votes1
answer80
viewsPrimefaces 6.0 and 6.1 - Jquery error
When including any Primefaces component in my HTML body, it raises this error: Uncaught Typeerror: N.delegate is not a Function. You know what would be? The error is in this second line of…
-
0
votes1
answer196
viewsupdating by filling in information after using the autocomplete
I am creating a form in JSF and primeface, and I have here an autocomplete. Only when I finish filling out my autocomplete, I want you to render a part of my fomulário. Until now I was able to hide…
-
0
votes1
answer26
viewsI have 2 problems that when trying to submit the fomulário
well I’m having little problem here on my form in fact would be 2 problems. 1 - I am using an autComplete, and then I can get my object through the search, only that at the time of submitting my…
-
0
votes1
answer82
viewsI’m not getting a postBack on my project
I’m trying to do a postBack on my project only I’m not getting it. When I submit the form it continues to select without precision. That is, it was in the same way public class FacesUtil { /** *…
-
0
votes1
answer44
viewsI do 2 dates check plus is persisting
I have a form, and before saving I want you to make a check that in case would be two dates. Only when a check is made it launches a Message until then OK. More ends up appearing another referent…
-
0
votes1
answer681
viewsError redirecting to a jsf page inside a bean
(SOLVED) Error redirecting to a jsf page within a Managerbean. I have an application in Java EE, and I want to validate inside the Loginbean constructor (Viewscope) to redirect to my main page if…
-
0
votes1
answer80
viewsJSF change information in XHTML
Good night. I have a java/jsf application I’m having a hard time showing information in XHTML, Well I have a SelectOneMenu to save information in the bank: <p:selectOneMenu id="PermissaoAcesso"…
-
0
votes1
answer672
viewsproblem using Primeface modal
I’m using a modal within the Only when I close, it gets locked the components, I think I must have done something wrong. Follow my code. <ui:composition…
-
0
votes0
answers60
viewsStop a java processing
I have a processing with a class calling another. Example: I have the registro0100. In it I call the ED022, ED021, etc..... In this ED022, I have some validations, example: boolean achou = false; if…
-
0
votes0
answers137
viewsRun method by JSF automatically
I have a JSF with a p:panelGrid with columns that together form a screen that we call telemetry (large screen with various information passing in real time), in each column I added a method in which…
-
0
votes0
answers34
viewsData does not persist in the database
I have a Primefaces3.5, JSF 2.1 and JPA 2.0 application I am uploading a file in which it does not persistence in the bank but outputs in the console are ok. I still don’t understand why you’re not…
-
0
votes1
answer40
viewsWeb-service Architecture and Functionality
I have a question about Web-service. This is the following I have an application in Java EE JSP, where you should allow a conversation with another application on Android (Example: when registering…
-
0
votes1
answer183
viewsHow to delete multiple lines in datatable
I am trying to delete several lines in my data table at once and get nullPointerException. I am sending the code Bean @Named @ViewScoped public class PesquisaFamiliasBean implements Serializable {…
-
0
votes1
answer184
viewsHow to change Growl’s position on the screen?
I want to change the position of Growl but apply in CSS and at the time does not change anything in the position when it appears on the screen, I want to center for example. In the template:…
-
0
votes1
answer233
viewsYou are not setting the value in the.setParameter query when trying to make a query in the database
I’m having a problem when it comes to setting a value on query.setParameter. Use Ecliselink and Mysql, I made a query without setting parameters and it worked, I wonder if it can be? Class where I…
-
0
votes1
answer358
viewsHow to generate a pdf with Primefaces 5.3 using dataexport
This is my screen to generate the pdf <p:panel style="margin-left:30%" id="pnlTituloGabarito"> <p:commandButton value="Export to PDF" ajax="false"> <p:dataExporter type="pdf"…
-
0
votes0
answers40
viewsComponent Poll does not call the method
I’m wanting to call a method periodically but the listner of poll does not call the desired method. Below my codes: <p:poll interval="10"…
-
0
votes0
answers66
viewsHelp with search screen
The query that mounts the screen is as follows : public List<Produto> listarProdutosDoGerenteRegional() { try { return manager.createQuery(" select p from Produto p where…
-
0
votes1
answer479
viewsFile path (Java Web)
I’m working on a web project and I’m having a problem with files(java.io.File). The problem is only when running the web application, if it is Java Application the problem does not exist. When…
-
0
votes1
answer524
viewsJSF - Parameter pass
I have a form in JSF and I need to enter his data in the database I’ve searched several ways, but it’s not working Could you give me a hand with what I’m doing wrong? JSF Form I am not able to pass…
-
0
votes1
answer48
viewsValue of h:selectOneMenu is not being set
I’ve created JSF forms several times, but I’m not understanding why value that selectOneMenu not being defined ("set"). <h:form> <h:selectOneMenu id="nova-matriz-select"…
-
0
votes1
answer316
views -
0
votes1
answer136
viewsHow to save a csv using Hibernate and mysql
I need the following routine to be done: Read some information from the database; Generate a csv based on this data; Write this csv to the database; Start downloading this file to the user. I was…
-
0
votes1
answer292
viewsEditing a record with Daialog primefaces framework
I’m a beginner in the java and java web world, starting with jsf, primefaces and I’m having a problem that I’m not able to solve. I have a datatable listing some data, I have the ajax event to…
-
0
votes1
answer144
viewsImage corrupted using Uploadedfile from Primefaces with Ftpclient
Hello folks I am having problem in Primefaces component "File Upload", while trying to save the file via "Ftpclient" the file gets corrupted. Form configuration <h:form id="formNavegacao"…
-
0
votes0
answers526
viewsTomcat is configured by Eclipse to climb on port 8085 but only opens on 8080
Guys, when setting up Tomcat in the eclipse he gave the error saying that the default ports (8005,8080,8009) were busy, I changed the ports and ran the program, only in Google Chrome when I put…
-
0
votes0
answers99
viewsComponent Not Rendered By Ajax
I have a form, where internally has a component h message: and a h:inputText, and I am submitting this form by jsf standard ajax... the problem is... when submitting the form ajax does not update…
-
0
votes1
answer34
viewsCode redundancy in my . xhtml JSF - Primefaces
I have this table in 2 pages of my own and I ended up copying and pasting this code, the only thing I had to change was the "bean", in one I used "bean1", in the other I used "bean2". Is there a…
-
0
votes1
answer193
viewsReport one object at a time with Jaspersoft Studio
I have a system of loose notes in jsf and primefaces. I was able to generate a set report of several notes at the same time, searching through two input parameters, initial date and final date. But…
-
0
votes1
answer341
viewssubmit part of the form - jsf primefaces
I am trying to post a part of the form but I have tried it in some ways and I still have problems. Follow a screen print click to see the image <h:form id="QuestaoCreateForm"> <h:panelGroup…
-
0
votes1
answer494
viewsProblem implementing JSF Converter with p:selectOneMenu
I’m having problems implementing a convert to a simple selectOneMenu of Primefaces. When you pass the Convert getAsObject method the value parameter comes with the description of what was selected…
-
0
votes1
answer246
viewsJsf&primefaces CSS problem
Project -- JSF CDI Mysql //I am not using Maven Good afternoon, my question is this: I would rather use style="...." ; in xhtml code, to make the code more elegant, make use of css. for example, I…