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
votes2
answers1298
viewsHow to integrate Spark Theme - primefaces with Maven
Can anyone help me with my problem? I’m trying to integrate Spark Theme with Maven to move up the theme. Meanwhile, I’m having a hard time. http://www.primefaces.org/spark/ I looked at the…
-
1
votes1
answer367
viewsHow do I choose the right scope for a bean?
From what I’ve been studying, I know there are several scopes for Beans: @RequestScoped @ViewScoped @FlowScoped @SessionScoped @ApplicationScoped What is the function of each? How should I correctly…
-
1
votes1
answer74
viewsWhat is the name of this component below?
Have some component ready with primefaces do what the image illustrates below? I need to do this with JSF and I’m half lost. The idea is that yes is an auto complete, but if he does not find…
-
1
votes1
answer314
viewsSave entity and all its daughter entities
I have problems with the updates of my entity Mdfe, before explaining what happens, I would like you to look at the image below, from it I can explain better. We can verify that The Mdfe has a…
-
1
votes0
answers237
viewsPrimefaces Menubar does not enter div
Good night. My menubar is not entering the div in which it is contained. <header> <h:graphicImage library="img" name="logo.jpg" id="logo"/> <h:form> <p:growl id="messages"/>…
-
1
votes2
answers578
viewsWhy can’t I upload static data to the JSF datatable?
This is my class: package com.algaworks.pedidovenda.controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import…
-
1
votes1
answer3729
viewsjava.lang.Noclassdeffounderror in Java WEB with JSF
Hello I’m getting the following error message when running the project: java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual at java.lang.Class.forName0(Native Method) at…
-
1
votes2
answers1590
viewsWildfly error: [org.jboss.remoting.remote.Connection] (XNIO-1 I/O-2) JBREM000200: Remote Connection failed
When trying to run a project by Eclipse Mars using Wildfly 9 on Windows 10 the following error occurs: 11:25:08,167 ERROR [org.jboss.remoting.remote.connection] (XNIO-1 I/O-2) JBREM000200: Remote…
-
1
votes1
answer133
viewsCapitalize
I have an input and I would like that when the user type the letters will be uppercase by the effect of javascript. Without the form I can, more when I put the form does not work. ` <ui:define…
-
1
votes0
answers846
viewsJasper report is not generated on production server
a problem in the use of JasperReports. I created a class to generate the reports, from some parameters. It inside the Eclipse generates normally, but when I export the WAR and put into production,…
-
1
votes2
answers201
viewsJSF Converter Generating Exception
Not to escape the scope of the previous question: Product displayed is the smallest within the group (Criteria) The problem apparently of the issue has been solved, although it was not possible to…
-
1
votes1
answer6426
viewsPutting an image as background on primefaces
how do I put a background image in primefaces. I’ve tried some shapes but none worked out. The closest to a good result I arrived was using <p:graphicImage/> but when I minimize a menu or do a…
-
1
votes0
answers167
viewsHow does the Spring JSF integration work, and how does the Internalresourceviewresolver Filter participate, and how should it be configured for your integration?
I am studying to start a project of a distributed Web system, which will have simple interfaces in some contexts, but others will require an interface structure that will make it necessary to adopt…
-
1
votes1
answer74
viewsInline display does not work properly with span
Man display:inline not working properly would like to know where I am missing it should look like this one: But I can’t follow my code below: .abertura-chamados li { display: inline; }…
-
1
votes0
answers54
views -
1
votes0
answers99
viewsShow and receive response from a p:confirmDialog triggered via Managed/CDI Bean
I have a view with a save button, but the method that runs on the save button does some checking on the bean and asks the user if they really want to save. Show dialog:…
-
1
votes0
answers748
viewsView PDF in a Dialog
I am wanting to change the way the user views the system report I am developing, currently by clicking the button to view the report, is given the option for the user to download or open directly in…
-
1
votes3
answers303
viewsJSF - Selecting Item from a Set
I want to make a xhtml that returns a list of users and next appears a button to select a particular user. Something like this: +----------------------------+ | ID | User | (Button) |…
-
1
votes1
answer900
viewsJSF - how to send information to another page
I have a orderList for the operator to select the customer’s name. After he selects I need to direct him to another page with the customer’s data. How do I pass on customer information that has been…
-
1
votes1
answer93
viewsLogic to inhibit record permanently
Guys I have a "big problem" and I can’t think of anything to solve it so I’d like your help. I have a desktop system that is the intermediary between the server and my web system. This desktop…
-
1
votes2
answers542
viewsHow to update a line(Row) in datatable? (Primefaces)
Hey, guys? Please, can some Javelin ninja help me with this case? I have a datatable and need to know how to update a single Row after an event, such as a click on a commandButton. I studied a…
-
1
votes1
answer641
viewsPick up object by clicking on a commandLink in the Datatable
I’m trying to catch an object by clicking on a commandLink that is in each column of Datatable, but always from the nullPointerException error. Can anyone help? I’m doing it this way:…
-
1
votes1
answer83
viewsFormat word if it is in a datatable
Given my datatable: Mark the word Atack. Is it possible to create a check that if this word is in the datatable it gets a different format? Ex: Bold and the color is Blue.…
-
1
votes1
answer25
viewsSymbols of the ternary operation appear on the screen
As can be seen in the line below, I am using a ternary condition on my screen: <h:outputText value="#{naturemb.nature.id == null} ? #{msg['cadastrando.nature']} :…
-
1
votes1
answer65
viewsRemove pagination from Demoiselle
I’m using Demoiselle and its pagination feature, but when I need to use all the listed objects, ie, use the full return, it does not let, it keeps the pagination. My pagination: @Override public…
-
1
votes1
answer39
viewsMethod to check three objects at a time
I work with Java and JSF. I have a list of 27 objects and I have a method, called every 20 seconds through Polling, updating a field of these objects. For very specific reasons, I need this method…
-
1
votes0
answers38
viewsJava-ee, primefaces component order list
Has anyone ever worked with the first-face component orderlist? Because I want to use it in my project and I’m not getting it, could you help me? You are generating an exception and also do not know…
-
1
votes1
answer78
viewsView does not communicate with MB
I’m using Primefaces, Javajpa,and Wildfly, there’s not much there but my doubt is the following: my view is not seeing my MB, when I rotate gives the following error: Target Unreachable, Identifier…
-
1
votes0
answers619
viewsJSF Download File Saved in Database
Hello, I have a jsf page where I upload the data from a entidade, between the data there is an attached file (pdf, xls, jpg etc.). I would like you, when clicking on the file name, to download the…
-
1
votes1
answer177
viewsError. WARN: WELD-000335: Conversation context is already active
I am presenting the following error in my Glassfish server 4.1 output: WARN: WELD-000335: Conversation context is already active, Most likely it was not cleaned up properly During Previous request…
-
1
votes1
answer1624
viewsDifference between process and immediate
in JSF, what is the difference between immediate and process attributes? In my view both seem to have similar functions.
-
1
votes1
answer692
viewsFile . properties in java code
My JSF application I’m using a file. properties to store the texts, etc. I already use calling the keys inside the .xhtml. file How do I call the keys in the code . java ? My class Util: package…
-
1
votes1
answer309
viewsError in field validation
I have the following class: package br.com.pokemax.modelo; import java.util.Collection; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import…
-
1
votes1
answer256
viewsThe <p:datatable> is not paginated
Get a page that gets a stop. <f:metadata> <f:viewParam name="id" value="#{MyBean.MyObject.id}" /> <f:event type="preRenderView" listener="#{MyBean.exibir}" /> </f:metadata>…
-
1
votes0
answers126
viewsCall properties in java
I created a file .properties to organize my texts, etc. I can use normally calling the key from a .xhtml. But I can’t call from a code .java. My files are below: package br.com.pokemax.util; import…
-
1
votes1
answer217
viewsBetter organization of my project
My project has the following packages in its structure: br.com.xxxx.model: Which contains the entities. br.com.xxxx.negocio: That contains the DAO interface along with the implementing classes.…
-
1
votes2
answers385
viewsCourse Design Error primeFaces Algaworks
I’m Doing a Workshop of PrimeFaces by the company AlgaWorks, but is showing this error in the project in the file pom.xml. The complete code of the file pom.xml project…
-
1
votes0
answers28
views -
1
votes0
answers76
viewsException when running project
I have a project Maven where I tried to add a more recent dependency on JSF After these attempts the project always presented errors. I created a new project and copied all classes, pages etc. Now…
-
1
votes1
answer1831
viewsSending of sms by Java
Speaking personally, I am developing a financial application that I was asked to send a text message to the main administrator. I’m using Java web, Mavem,jsf, Hibernate. Could someone give me a…
-
1
votes2
answers551
viewsDisplay External Image to Server p:graphicImage
I’m using it this way: XHTML: <p:graphicImage value="#{emitenteBean.myImage}" Bean: private StreamedContent myImage; try { FileInputStream fileInputStream = new…
-
1
votes0
answers336
viewsProblem opening a modal
I’m using a framework called BootsFaces and every time I try to open a modal from a commandButton the modal opens but stays this way: As you can see the modal is not enabled. button that opens the…
-
1
votes1
answer333
viewsDomain configuration in Tomcat-jsf applications
I have a jsf application running on the company server, using Tomcat 8.5. Currently I mark the server ip through the service of the site noip.com configured in my router. Only recently the service…
-
1
votes0
answers94
viewsError displaying a collection of a contact’s phones and emails
I want to display on a XHTML page (JSF+Primefaces) a list of contacts with phones and emails. I can display everything I want in a test class: package com.fercosmig.testes; import java.util.List;…
-
1
votes0
answers120
viewsAdd new inputText to JSF page by pressing a key
I have a form where I can have several codes registered, I would like to provide only one inputText at first, if there is need to insert more than one code I press a hot key and then another…
-
1
votes0
answers284
viewsHow do I show an item already selected in a jsf datatabe that has been edited previously
I’m trying to see these items I selected on the inclusion screen also selected on the edit screen and am not getting: this is my inclusion jsf: <?xml version="1.0" encoding="UTF-8"?>…
-
1
votes1
answer459
viewsField read HTML tags in JSF
I would like in my field that I will add the text and send to the database, add for example an ex link: <a href="http://www.globo.com/" ></a>, however, when printing on the screen,…
-
1
votes2
answers635
viewsThymeleaf Spring JSF
I’m trying to do the internationalization of templat using Thymeleaf 3.0 Spring 4.2.3 JSF 2.2 Which is sent along with an email. #{i18N.descriptionPortal} When you print in the email html it looks…
-
1
votes1
answer217
viewsDevelopment JEE and Primefaces
I’m following an online Algaworks course in JEE with Primefaces using Eclipse and Tomcat. When I start the application in Tomcat, it gives the following error: GRAVE: Critical error during…
-
1
votes1
answer74
viewsPass a name to a downloaded file with <p:fileDownload>
I have a method that generates a PDF report with Jasper and returns a DefaultStreamedContent. I call the method no <p:fileDownload> thus: <p:fileDownload…