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
answer48
viewsApplication problem read xlsx file in centos error: libgcc_s.so. 1: Wrong ELF class: ELFCLASS64
I have a big problem and I can not solve tried to look for some tips on the internet but it did not work. That’s why I’m here and I was wondering if any of you could help me. I have a web…
-
1
votes2
answers95
viewsValidate text before going to the screen
I got the following dataTable: <p:dataTable id="tabela" var="c" value="#{geracaomb.lista}" paginator="true" rows="10" rendered="#{not empty geracaomb.lista}" paginatorPosition="top">…
-
1
votes1
answer65
viewspdf export of a web application, error: org/apache/poi/ss/usermodel/Workbook
Good evening. I am wanting to export to PDF of a web application with JSF and am having the following error: Stack Trace: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook at…
-
1
votes1
answer61
viewsBackground problems
I’m having trouble filling my background with a specific color, in this case, blue. Follow the code of my application: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
1
votes1
answer232
viewsGoogle Chart Geochart does not work in Java
Hello, I have a problem running a Google Chart Geochart map in Java... If it’s in a normal . html file, it works, but inside my xhtml project it doesn’t work. Code in html: <html> <head>…
-
1
votes2
answers599
viewsUpdate primefaces table
Hello, I’m having trouble updating the table after removing some item from it, the item just removed from the table definitely when looking for another type. The table updates as the value of…
-
1
votes0
answers24
viewsJsfExceptionHandler ConstraintViolationImp messageTemplate
I have the mapping in the user class: @NotNull(message = "Contato não pode ser vázio.") @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "contact_id") @Getter…
-
1
votes1
answer579
viewsHow to display the recovered String value of the JSF session?
I am facing a problem when trying to display, in xhtml, a String value recovered from session. What I want is to show the value of a String attribute (attribute name) of an object of the class I…
-
1
votes1
answer94
viewsProblem with JSF
I have a screen and I would like to each product added, I could choose a quantity and then calculate that quantity multiplying by the value of the product. However, I have no idea how to do this,…
-
1
votes0
answers225
viewsFileupload java saves files to an inappropriate folder
I found an example of fileupload on the internet and added it to my project. However, it moves the files up to a folder inside the glashfish server. This folder is named after /config, and all the…
-
1
votes1
answer178
viewsArraylist repeating itself
I have an array that whenever I refresh my page, it duplicates. I did some tests to see if it was duplicated in Javascript, but found nothing. This is the Javascript: <script…
-
1
votes0
answers426
viewsHow to recover only the parameter of a url through a bean Managed
I wanted to know how to recover only the parameter of this url in a bean Managed http://localhost:8180/blabla/teste.xhtml?codigoEmpresa=754 Follow my bean Managed: package…
-
1
votes1
answer799
viewsPrimefaces: Modal dialog does not open
I am trying to open the dialog of the first faces, but without success. I have the following code: Clientescadastrados.xhtml: ... <ui:define name="content"> <h:form…
-
1
votes0
answers87
viewsMulti-threaded chat
Guys I’m developing a chat bot, the question with the answer that the bot gives is all right, my problem is when more than one person comes in contact with the chat, he is treating as if both are…
-
1
votes1
answer197
viewsIs it possible to modularize JSF registration formularies?
The question is this... although the problem does not involve JPA/ORM I find it interesting to contextualize. My little project has a @Entity Addressee and as the name suggests it is an entity…
-
1
votes1
answer259
viewsUpdate message
I have the following screen: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">…
-
1
votes1
answer211
viewsUpdate dialog component
I have the following dialog: <p:dialog header="#{encomendaController.objeto.id == null ? msg['cadastrando'] : msg['atualizando']} Encomenda" widgetVar="cadastroEdicao" minHeight="80"…
-
1
votes0
answers140
viewsA boolean button and dynamic menu with jsf Programming java html primefaces jsf
Hello, I need to make a Boolean button with jsf (primefaces) and html and a dynamic menu that one button calls another, only I have no idea how to do. Can anyone help me? I started doing something,…
-
1
votes1
answer77
viewsSession staying open when I close the browser
I have a user control that stores in an Applitioscope a list of users logged in to the system. Together with each user, I save the session id that it is logged in. Each session lasts around 20…
-
1
votes1
answer179
viewsChange Dialog is not displaying data
I have a Maven project that is using jsf, jpa and primefaces in which there is a dialog that is being used to do the altualization(update) of the data, only, inputText is empty when it is called…
-
1
votes0
answers350
viewsJSF execution error with Google Maps
I’m doing a project and I came across an unpleasant situation. Well, I did a little test using HTML5 in a notepad using Google Maps and everything worked out fine. Only I was using the code in my…
jsfasked 7 years, 7 months ago Lucas Awade 11 -
1
votes2
answers99
viewsDatatable data is not displayed, even with loading of Arraylist running correctly
Guys, I am loading a JSF datatable with an Arraylist, but the result is not displayed in any way, follow as my code: index.xhtml <h:body> <h1>Novo Jogo</h1> <j:form>…
-
1
votes1
answer430
viewsMethod being called several times in the change event of a p:ajax
I have a table with a p:inputText with a p:ajax inside, the same holds the event change, when I fill that inputText with a value a query and some validations are performed. The problem is that when…
-
1
votes0
answers43
viewsPassing data from one view to another
I am trying to implement the following function, when the user clicks the edit button, it would send to the page "create" only populated. but when I try to do so, he sends but with nothing. in my…
-
1
votes0
answers253
viewshow to get the selected value in the combobox (h:Selectonemenu )?
<h:form> <div class="form-group"> <label>Categoria de Produto</label> <h:selectOneMenu value="#{produtoController.produto.categoriaProduto}" styleClass="form-control"…
-
1
votes1
answer712
viewsJasper + JSF-java.lang.Nullpointerexception
I really need to generate a report here with the Jasper but it’s making a mistake, I did it: Java: public void getRelatorioNotas(List < T > lista) { try { FacesContext facesContext =…
-
1
votes1
answer271
viewsJSF problem in Logoff method
Good night I have the following problem, I have a JSF application and I need to do a logoff command, I did several and all gave the same result, it "kills" the user’s session (logs in), but does not…
-
1
votes2
answers703
viewspass several parameters in the ireport
I have the following problem: I created in java a selectcheckbox, where the person will select multiple objects; when sending to the managed bean, I can receive these listed objects. I now want to…
-
1
votes0
answers80
viewsDisplay database image in datatable
I saved an image in the database and want to display in dataTable PS: I know that it is not good practice to store image within the database, this practice was done for study purposes. <h:form…
-
1
votes2
answers580
viewsRedirecting JSF pages
I’m looking to redirect the main page to login page so I set the faces-config.xml together with the main page below my code for you to see Code faces-config.xml <?xml version='1.0'…
-
1
votes1
answer481
viewsCompare dates and validate only the same year
In my component p:calendar there are two date ranges dtInicial and dtFinal in the Managed bean I need to compare only the years and validate. If it is the same year, display the "ok" message.…
-
1
votes0
answers46
viewshow to use query with more than one field (Moldel .vo) in a datamodel
I have the following query and I am willing to put this list with products and the sum in a datamodel list. public List<Filtro> listarProdutosDoGerenteRegional() { try { return…
-
1
votes1
answer194
viewsNull in Primefaces Component Uploadfile
I am having trouble trying to recover that file,file, in my bean. .xhtml <h:form id="form" enctype="multipart/form-data"> <p:fileUpload value="#{bean.file}" skinSimple="true" mode="simple"…
-
1
votes0
answers429
viewsMenu Toggleable Primefaces
I have the following code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"…
-
1
votes1
answer49
viewsStep loading to application index page
I own a commercial application that is with an extremely time consuming login for the user. The connection to the Database to validate user and password, as well as the Spring Security startup take…
jsfasked 7 years, 4 months ago VictorGrechi 124 -
1
votes0
answers203
viewsDisplay confirmation dialog before closing tabview tab primefaces
I’m developing a jsf web application that I need to work with tabs (similar to Chrome). For this, I am using the tabview component of the first faces that has been very useful so far. The problem is…
-
1
votes1
answer66
viewsJSF REQUESTS
If I make a Request for my bean and this bean will make a query in a list. A list of Cpf for example. Can I update the client of this request to each result of this loop made in the bean? I ask this…
-
1
votes0
answers43
viewsRun search update on button
My search field updates a selectManyMenu whenever something is typed in it <p:inputText id="txtFiltroOrgaoDestino" value="#{mBManifestacao.txtFiltroOrgaoDestino}" style="width: 350px">…
-
1
votes1
answer447
viewsChange color of a line in the datatable when checking a checkbox
I am developing an application using the bootsfaces framework in Javaweb. On one of my screens I have a datatable of bootsfaces with the values coming from my Bean and a checkbox of the first faces…
-
1
votes1
answer47
viewshelp with JSF code
In the system q being developed the registration part presents the following error when saving /status/editaestado.xhtml @13,134 value="#{Estadocontrol.Estado.nome}": Target Unreachable, Identifier…
-
1
votes1
answer463
viewsHow to merge <h:column > columns in JSF?
How can I merge columns or rows in JSF 2.0 ? Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
1
votes1
answer726
viewsp:inputText is not updating
I have in the following code, a form that works both to change and to add an entity. The logic is this, I have a variable alteracao. if alteracao == true the form will behave to change if alteracao…
-
1
votes1
answer3293
viewsIllegal Attempt to map a non Collection as a @Onetomany, @Manytomany or @Collectionofelements
Good night. I have the following mistake in Hibernate: org.hibernate.AnnotationException: Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements:…
-
1
votes2
answers342
viewsProblem with @form Primefaces - JSF
I have a problem in Auto update @form of primefaces, it should automatically update the datatable but is not working. Below is JSF and managedBean. Thank you! Products <h:form>…
-
1
votes0
answers88
viewsRollback to persist entity with Hibernate
I have an entity Product: @Entity @Table(name = "produto") public class Produto implements Serializable { private static final long serialVersionUID = 1L; private Long id; private Cliente cliente;…
-
1
votes2
answers764
viewsUpdating Progressbar in JSF
Good Afternoon, I’m doing an asynchronous method that searches the database(oracle), and returns in an Excel file. Inside my Method has the for @Async public synchronized void…
-
1
votes1
answer890
viewsBest way for a bean to call another bean passing itself as a parameter in JSF
I have a 1:n relationship, where a System can have multiple Loggers. I also have two Beans: one for System (Systemsbean that refers to page systems.xhtml) and another for Logger (Loggerbean that…
-
1
votes1
answer114
viewsApp Ionic Integrated Framework with JSF Java Web System
Guys, I need some guidance from an experienced developer, where the need is: I have an application created in Java Web with JSF in production. I need to develop a Hybrid App with Ionic framework…
-
1
votes2
answers349
viewsExchange input class when completed
I’m making a form using primefaces, and I wanted my input to change class when it was filled, only going back to the previous class if the user deleted the content. This is to make the outputLabel…
-
1
votes1
answer144
viewsFile structure and Deployment of JSF applications with Jboss EAP in Debian 8
I wonder if there is how to configure Jboss EAP to deploy Java applications (JSF, Hibernate, Primefaces, Maven) in the folder /var/www/. The structure of the folder /var/www is the following:…