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
answers392
viewsReplace jquery with pure javascript
I have a jquery script to automatically remove a class from a div if browser javascript is enabled. <script type="text/javascript"> $("#scriptT").removeClass("noscript"); </script> But…
-
1
votes3
answers709
viewsReplace javascript Alert
The system form I develop is full of Alerts to warn the user that he cannot leave that field without filling it out. The problem is that Alerts are very uncomfortable, and so I wanted to replace it…
-
1
votes1
answer176
viewsProblems with spring mvc friendly url
by including a last page in my project I got a url problem, from which, I could not identify the problem. JSF scenario: Certification module: href="customer service/" Customer details:…
-
1
votes0
answers402
viewsJava Vehicle Card Validation
Someone already knows how to validate the new vehicle plates? Vehicle plates should start using Mercosur standard 6 months from now Instead of 3 letters and 4 numbers, as it is today, the new plates…
-
1
votes0
answers43
viewsCombo product and play value in inputText
I am developing a DOCUMENT registration with parameters such as Material, Name and other data. And how it will work, before performing a normal PRODUCT registration with parameters of Material and…
-
1
votes1
answer35
viewsJAVA Nullpointexception
by clicking on my button in the view the parameter is not arriving in my attribute java responsible for the button public Map<String, Object> getFiltroGlobalMap(){ Map<String, Object>…
-
1
votes1
answer264
viewsError Performing load command : org.hibernate.Objectnotfoundexception: No Row with the Given Identifier exists
Good afternoon! Loading a list from the Archive entity: org.hibernate.event.internal.DefaultLoadEventListener doOnLoad INFO: HHH000327: Error performing load command :…
-
1
votes0
answers101
viewsWhen trying to access Repository with.sun.faces.context.Ajaxexceptionhandlerimpl handlePartialResponseError
Guys, I’m going through a problem here, and I can’t solve it. I’ve looked in the forums, but I haven’t seen any solutions either. Anyone gives this help? The error happens when I try to save the…
-
1
votes1
answer18
viewsProblems with if no managedbean
I have a login form with the registration and password fields. I am trying to validate this login where only the number "92018" can log in to the system, but when the login method is called, it does…
-
1
votes0
answers44
viewsJSF + Primefaces = Fullajaxexceptionhandler
I am developing an application using JSF + Primefaces, in the code of a screen has the following button <b:commandButton value="Pesquisar" look="primary" style="width:100%" process="@form"…
-
1
votes1
answer82
viewsI can’t display anything in a JSF view
I’m working on a web application to develop a module, but I can’t display anything in the view, not even a simple message. The view loads the template, but does not display anything I put in the…
-
1
votes1
answer37
viewsQuery returns another user’s value
I am not able to compare the code (from the logged in professional) with the hired code (which should be the same as the logged professional) in sql query and this makes the query return a value of…
-
1
votes0
answers26
viewsNullpointexception problem in JSF and Primefaces
Good afternoon! I am having problems with a xhtml form made in JSF, because it is not setting the values in Usuariobean, and when I will execute the method register() present in the class…
-
1
votes1
answer960
viewsjava.lang.String cannot be cast to Ljava.lang.Object
Trying to list items in a ui:repeat that is inside another, and need to use as parameter the id of the ui:repeat item more external. But I can’t do it because the following error is occurring:…
-
1
votes0
answers31
viewsValor Autocomplete
Good afternoon, I would like to know how to use the value entered in the autocomplete field in my Controller, even if it is null and not a vehicle registered in the BD. <p:outputLabel…
-
1
votes2
answers688
viewsHow to load a Selectonemenu based on Select Previous using JSF?
I am trying to register a Neighborhood based in the City and the selected state. The list of the city depends on the state selected. Follows my code: <div class="form-group">…
-
1
votes1
answer324
viewsHow to fill an inputText based on another inputText?
I’m a beginner in JSF, Primefaces. I have a form and I would like that when a field received a certain value, another field would return information from the Database. Example: On the field…
-
1
votes0
answers25
viewsProblems retrieving the Datatable object in P:Dialog
I have a datatable that lists all the students, and I have a button that opens a modal, in this modal I want to continue manipulating my datatable object, for this I use the…
-
1
votes2
answers83
viewsselectOneMenu with convert does not work
I have a selectOneMenu where I am populating with the database data but the same is coming with the memory address (see image), and not the value I want. I tried to solve using the example of this…
-
1
votes0
answers57
viewsIs it possible to run 2 querys at the same time without creating a FUNCTION?
I have a problem where I need that when creating a new "location" on my system, automatically I need my "Room" table to have the "id_status" that is part of another changed table. This would be…
-
1
votes0
answers19
viewsPrimefaces Tabview Component Disappears
Hello, I am testing the Tabview component with mandatory fields included in each tab. I use ajax with update="@form" to update the component, but when I click on another tab, the Tabview bar simply…
-
1
votes0
answers106
viewsMethod in p:commandButton is not called
In my view you have p:commandButton with a method that adds an item to a p:datatable. By clicking the button to call the method to add the first item, it is correctly added to the datatable, but by…
-
1
votes0
answers20
viewsProblem showing and hiding element with JSF and Richfaces
I am trying to use a selectOneRadio, when performing an exchange action should show an element and disappear if it was another option, however, there is no exchange. ***<h:panelGrid…
-
0
votes1
answer1314
viewsjava.lang.Nullpointerexception on chat system
I am doing a chat project Helpdesk with JSF 2.0 and Primefaces, but an error is generated when I try to connect the Attendant or user in chat. In atendente.xhtml and index.xhtml has a form that…
-
0
votes1
answer561
viewsJboss stops during JSF 1.2 startup after project conversion to Maven
I have a project running perfectly on Jboss AS 5.1, however that same project was not designed using Maven. This means that the dependency management process is still manual and the build is made by…
-
0
votes1
answer462
viewsImage Servlet for JSF Project "Locking" the Application Server
I have the following code that provides my portal with the images that are in the database @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException,…
-
0
votes1
answer2195
viewsHow to sort and disarray a JSF datatable by clicking on the column?
Good guys, I have an application in JSF, I would like to know how to sort and disorganize datatable when clicking the column, in this table there are 6 columns and 3 of them I would like to click it…
-
0
votes1
answer119
viewsSession expiring on IE
I have a JSF2 system where I use JAAS for access control. Everything is working fine in Chrome, but, for a change, IE occurs a problem. Basically I have a form with login and password fields:…
-
0
votes1
answer1470
viewsCentralize components of a datatable that is in data editing in Primefaces
How can I center the components of this datatable. When I click to edit the data of the same I realize that the components of data entry are not centralized, but when using a certain tests with css…
-
0
votes2
answers1761
viewsDatabase image displayed in primefaces does not appear
I am implementing a page where I need to display a datagrid with the values of a table in the database. Each table row has a blob image. But when trying to display the image with the primefaces by…
-
0
votes1
answer2589
viewsHow to open a dialog by passing an object as a parameter in the primefaces?
Good night. I’m having trouble opening a dialog by passing an object as parameter. Someone knows how to fix this?
-
0
votes1
answer757
viewsChange the active tab on a p:tabview
How to change the tab active in a component p:tabview from a p:commandButton? Any idea?
-
0
votes1
answer194
viewsError showing List output using MVC and JSF
I need to return data from the database to JSF but even before I get to JSF I cannot show the searched data. I Have Next Mistake: Advertência: #{usuarioBean.pesquisa}: java.lang.ClassCastException:…
-
0
votes2
answers5005
viewsRun a method in Managedbean when initializing the Page
Greetings Pessoal. I wonder if there is any formal way to execute a method in Managedbean when invoking/initializing a page? I have already done this, usually by putting EL directly on the page,…
-
0
votes1
answer354
viewsValidate rich:Legend earlier than other rich:Legend
I have 2 date fields, the second may not be previous first, but I’m not able to validate. Every time you enter the validation dataInicio ALWAYS IS null. From what I’ve seen of the life cycle of jsf,…
jsfasked 10 years, 2 months ago Bruno Rozendo 1,339 -
0
votes0
answers512
viewsCould not find backup for Factory javax.faces.context.Facescontextfactory
I am creating a project using Spring Boot + Primefaces but when trying to access the page I get the following error: Whitelabel Error Page This application has no Explicit Mapping for /error, so you…
-
0
votes1
answer778
viewsDynamic update in Primefaces component via autocomplete
A simple question, is there any easy way to use the autocomplete component of the first faces, and so when selecting some option make a component (for example a dataScroller) be updated??? I tried…
-
0
votes2
answers76
viewsStrange page after adding Primefaces
After adding Primefaces dependencies the project ignores my page /home.xhtml that is in xml and shows a url /javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo every time I run the project.…
-
0
votes1
answer90
views -
0
votes1
answer2242
viewsCalling a JSF bean method within Javascript
I would like to call a JSF method within my Javascript code. For every time he executes this method in Javascript within the function call another method that is within JSF. Does anyone have any…
-
0
votes0
answers85
viewsProblem using "Frozen Columns" in Primefaces
I’m using the first faces with frozenColumns, in this way: <p:dataTable id="dataTable" var=.... scrollable="true" scrollWidth="800" frozenColumns="1"> Only when it breaks the line, the Frozen…
-
0
votes1
answer578
viewsError the request doesn’t contain a Multipart/form-data or Multipart/Mixed stream
I am trying to save the image to disk but it is generating me this error. mai 18, 2015 12:03:56 PM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute ADVERTÊNCIA:…
-
0
votes2
answers758
viewsNullpointerexception error when using JSF EL
When I add this line of code to my XHTML page: <f:param name="pedido" value="#{pedido.id}"/> It generates this error: jun 04, 2015 10:59:42 AM…
-
0
votes0
answers330
viewsAutomatically authenticate using JCIFS in JAVA
I’m building a Java solution where the goal is to be able to get users who are logged in to a Windows domain to automatically authenticate with their Windows credentials when starting a web…
-
0
votes0
answers468
viewsHow to create PDF from . Jasper
I created a report on iReports and managed . Jasper, but I have no idea how to generate the PDF, I’ve tried several tutorials and nothing works, to create the pdf. What I need is to generate the PDF…
-
0
votes1
answer90
viewsDo not move with Mouse the <p:dialog>
Stupid question however I did not find in any corner, I would like to not allow the user to move the open p:dialog. <p:dialog header="#{MyBean.select.projetos.nome}" widgetVar="lanDialog"…
-
0
votes2
answers1896
viewsHow to get the description of an Enum in xhtml?
I need help to resolve a situation with an Enum class along with the Dampelle framework. Ex.: I have this class: but I would like the descriptive Ex.: Ordinary Law to appear in my combobox, and not…
-
0
votes0
answers136
viewsHow to configure JSF in Eclipse JEE?
I’m starting my JSF studies, how can I set my environment to start with JSF in Eclipse JEE? What I need to install add-on?
-
0
votes0
answers118
viewsJquery Error in Demoiselle with JSF and Primefaces
A Demoiselle application uses an upload button for each record inserted into a list. That is, at some point the page can contain from 1 to N repeated upload components according to the number of…
-
0
votes1
answer330
viewsDo not write to the database and the console appears as recorded
I have a form inside the modal to record registration, when I insert the data it is as if it were recorded in the Eclipse console, but the same does not happen in the database Message on console as…