Questions tagged [jsf]

JSF, Jakarta Server Faces (formerly known as JavaServer Faces) is a model-view-presenter framework typically used to create HTML form based web applications. Using the standard components and render kit, stateful HTML views can be defined using Facelets or JSP tags and wired to model data and application logic via backing beans.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Invoking a external executable from JSF CDI bean is not giving correct output but a standalone java program is giving correct output

I have a executable which I need to execute from a JSF application running on Payara Server when a user submits a form. I have written a CDI View Scoped Bean which has a method to execute the program. ...
Sachin Narang's user avatar
0 votes
1 answer
32 views

Using poll to show progress on long running tasks

I have a long running task in my bean, so I would like to show some progress. I'm using progressBar just fine, but I would like to show some extra information besides a progress bar. Basically I would ...
jesjimher's user avatar
  • 1,195
0 votes
0 answers
17 views

Where can I find a documentation for icefaces 1.8? [closed]

I'm working on a project which uses icefaces 1.8 and I'm having problems in find a good documentation for it. Does anyone knows where to find it? Or a video course? I've tried to use chatgpt and bard, ...
Raniere Soares's user avatar
0 votes
0 answers
40 views

How to update UI after providing a file download from JSF backing bean

I am able to provide a file download and show a loading animation, but I cant hide the loading animation after. I think its because of the FacesContext.getCurrentInstance().responseComplete(); that ...
Luca Christ's user avatar
0 votes
0 answers
20 views

Failure when calling my bean method in JSF action handler [duplicate]

I need to call/execute a method from my bean in JSF 2.2. At 1st glance nothing special here but i can't figure out why bean method wasn't called. Part of the bean: @Component @Scope("...
user1053031's user avatar
0 votes
0 answers
24 views

Managed bean property not being set from p:inputText in composite component

Good day everyone! I hope you are all doing well In my Java Spring boot project with Primefaces and JSF, I have a generic controller and in that controller is a List of generic objects. I have an ...
DelonPrinsloo's user avatar
0 votes
0 answers
57 views

how to create image preview when using rich:fileUpload for the image upload

I cannot figure out the workable way to preview image when rich:fileUpload is used to upload it. As it is a legacy project, I cannot use anything else to upload it and just need to preview image. I ...
Nikolay's user avatar
  • 13
0 votes
0 answers
109 views

ServletResponse Redirect show application server address in 302 response

Why does a "hidden" 302 response is sent after a redirect showing my application server ip address and its port, (see the image above) This is considered as a sensitive information by the ...
Hani Z.'s user avatar
  • 61
1 vote
1 answer
68 views

JSF App: Second server request not submitted to server after upgrade from WAS 8.5 to 9.0

Caveat: I haven't used JSF since college, and that was longer ago than I care to admit, so pretend I'm brand new with the technology. Background: We are upgrading from Java 1.7 and WAS 8.5 with My ...
Greg Hazzard's user avatar
0 votes
0 answers
31 views

Primefaces datatable selection on page refresh

Am on Primefaces 11. In the above screenshot if I select and apply Open status then it changes but the selection stays as shown in the below screenshot. --- (Case 1) Now, if I search for Trolley type ...
Tirath's user avatar
  • 2,304
1 vote
1 answer
22 views

I can invoke static methods in EL, is this as per the spec?

I am confused about the answer of this question regarding static method calls in JSF EL. I have this class with a public static method in a @Named bean: @Named public class StaticMethods { private ...
raho's user avatar
  • 141
0 votes
0 answers
49 views

Primefaces components show wrong value on page load

I have a <fr:menu> in the left panel that contains the list of pages that are available to the user. Depending on the selected page home.xhtml updates itself rendering the correct components. My ...
Davide Salsi's user avatar
1 vote
0 answers
22 views

Primeface Conditional Confirmation

Problem I have a simple form containing text and date input fields (both are mandatory) and a submit button. What I want to do is trigger a confirmation dialog if the value in the text box meets ...
Jameson_uk's user avatar
0 votes
0 answers
23 views

Property [login] not found on type [com.app.dev.controller.LoginController] [duplicate]

I'm new to JSF and was wondering if how I can access the properties from a model and reuse it in the Controller class without getting null error or unknown properties. Here is my code. Model Login....
Fatal Error's user avatar
0 votes
0 answers
82 views

java.lang.StackOverflowError at weblogic.utils.classloaders.GenericClassLoader.getResources

I have a web project with Java 1.8, JSF, Spring MVC and Weblogic. I am receiving this error while I navigate on my web project. It has compiled without errors and published on Weblogic 12.2.1.4 ...
Homselan's user avatar
0 votes
0 answers
26 views

PrimeFaces 7 p:fileUpload event not firing in Spring Boot application

I have a form with a p:fileUpload. I'm able to choose a file but when I want to upload it, FileUpload event is not firing. I see nothing on server console. My project is a SpringBoot application and I ...
Osman Canbaz's user avatar
0 votes
1 answer
47 views

Primefaces submit ajax request without ViewState when the element is removed too fast

This is an invalid request (viewstate missing) created by p:schedule element, when the element homeTabs:widgetContent-LEAVE_CALENDAR:lvCalendarForm:schedule is removed too fast (while the schedule's ...
Best_Name's user avatar
  • 149
0 votes
0 answers
37 views

Webapp deployment is null for Wildfly

I am trying to deploy my Webapp based on JSF and with the pretty-config url rewritting. However, I cannot deploy my webapp on Wildfly 30. Here is the server stacktraces: 15:49:42,528 INFO [org.jboss....
lapin's user avatar
  • 11
1 vote
1 answer
24 views

How to Specify a Generic Type in JSF Composite Component Attribute?

I'm working on a JSF project where I need to pass a List to a composite component. However, I'm encountering an issue when trying to specify this generic type in the type attribute of cc:attribute. ...
Buddhika Ariyaratne's user avatar
1 vote
0 answers
50 views

Primefaces 13 How to avoid the warning "Unable to automatically determine the `lazy` attribute, fallback to false."

I'm using PF 13.0.3. I have this warning on UITable "Unable to automatically determine the lazy attribute, fallback to false. Either define the lazy attribute on the component or make sure the ...
Rose Vandersteene's user avatar
1 vote
1 answer
42 views

How to avoid multiple Primefaces error messages when using multiple JSF validators at the same input field

I have one Primefaces p:inputText component with 2 JSF-validators. First one to check RegEx, second one to check miniumum and maximum length of the input field. If the validation doesn't matches both ...
kik's user avatar
  • 13
0 votes
0 answers
33 views

How to configure Apache Tobago

I am experimenting with Apache Tobago v6.0 (and Apache MyFaces). On using Tobago, I am told it cannot initialise without a tobago-config.xml. I see an example or two and the relevant xsd, but I ...
Chris Powell's user avatar
1 vote
1 answer
71 views

PrimeFaces poll tag issue with session timeout

Our application is built on Spring Boot and front end is built using PrimeFaces 6.2 ... Recently we got a requirement to check if the session is active.. i.e say for every 40 minutes from client side ...
Rajesh Kumar's user avatar
0 votes
0 answers
16 views

how to extract all tables from the website below with final .jsf link with Pandas? [duplicate]

#Site of bank website: http://www.fundos.caixa.gov.br/sipii/pages/public/listar-fundos-internet.jsf I tried the code in python with pandas below import pandas as pd df = pd.read_html("http://www....
Pedro Nogueira Lima's user avatar
0 votes
0 answers
21 views

Put message in p:growl from bean with Primefaces7.0

I am using Primefaces 7.0, and I have a problem with passing messages from my bean to p:growl declared in XHTML. <ns:grid-item width="100"> <p:fileUpload id="fileupload&...
mtmx's user avatar
  • 845
0 votes
0 answers
15 views

Primefaces - selectOneListbox - nothing happens [duplicate]

My Primefaces 8.0 application needs to show a Candidate list. When I do not select any candidate, the command button invokes the save() method. But, when I choose some candidate, nothing happens. No ...
Alexandre Mateus's user avatar
0 votes
0 answers
43 views

UploadedFileCleanerListener must implement at least one listener interface Primefaces

I have this problem when I try to deploy my project in Jboss EAP 7.4. Caused by: java.lang.IllegalArgumentException: UT010012: Listener class class org.primefaces.webapp.UploadedFileCleanerListener ...
Cristian Ruiz's user avatar
0 votes
0 answers
13 views

The listener attribute in <p:ajax> is not working JSF [duplicate]

I'm trying to refresh the content of one of my components when I choose different options in my p:selectOneMenu but I've realized that the listener doesn't follow the change of state This is my xhtml ...
Charlie's user avatar
0 votes
0 answers
20 views

How to set Unique id for seleconemenu placed inside the treetable using primefaces 12.0

I have a treetable, in which one column has selectonemenu dropdown, the treetable is binded from javabackend using PrimeFaces, Everytime i click on the first dropdown, it always shows the last ...
Fred H's user avatar
  • 1
1 vote
1 answer
35 views

JSF update datatable using AJAX after dialog edit of record which was fully populated using actionListener

I have a PrimeFaces datatable with edit buttons on each row that open a Primefaces dynamic dialog but to overcome LazyLoad exception when the dialog renders I use actionListener to requery the ...
jeff's user avatar
  • 3,660
2 votes
1 answer
59 views

JSF invoke dialog from commandLink/ajax

I'm able to invoke dialog from commandlink using ajax (present inside a dataTable). Requirement- The row(commandlink) I click on, dialog should show the clicked row's value. Issue- f:...
satya prakash Panigrahi's user avatar
0 votes
0 answers
23 views

JSF calling another managed bean while opening a dialog [duplicate]

Hello Every one well i know the title isn't right but this is my problem , So i have a data Table with data when i click commandButton i want to open a dialogue and recup dialogs data From another ...
Mohammed ABOUZID's user avatar
0 votes
0 answers
17 views

Changes to Facelets don't get hot-published [duplicate]

I'm working on an application that is hosted on a Jboss 5.1 server. If I make an update to the Java code, it immediately gets published on the server on save, but if I edit the Facelets code, the ...
Lolloroma114's user avatar
0 votes
0 answers
32 views

How to display a Map<String, Object> in jsf

I have a method returning Map<String, Object> and in my Object : private ObjectName objectName; private List<> list1; private List<> list2; my method: Map<String, Object> ...
loubna damri's user avatar
0 votes
0 answers
25 views

When using a datepicker the result is a weird jumbled String, can anyone take a look?

When i pick a date on the application it first shows as jTTvTT.text.Si10ple279TTtext....etc. and then once i click on the field again it shows as this: 1027.9279.1016965432000006@680303_ <p:...
Sarah Berger's user avatar
0 votes
0 answers
34 views

How to create pagination for dataTable in Primefaces 5.1

The thing is, I have a datatable which has a value private transient List. When i add paginator="true" rows="4" pagination really appears and all animations works. but in reality ...
mss's user avatar
  • 1
0 votes
0 answers
13 views

Integrating NX with JSF

Is it possible to integrate a JSF project with an NX workspace? I am conducting some research but have not found anything so far, and I am wondering if anyone has done this before. Any assistance ...
Will's user avatar
  • 455
0 votes
0 answers
15 views

@predestroy of entity1 is being called on third redirect of any other entity in second tab

@predestroy of a page is being called whenever I redirect to another page in a new tab (for the third direction) My controller is @ViewScopped from java.faces.view cdi and @named the navigation to ...
Zeinab Abbas's user avatar
0 votes
0 answers
26 views

Creating a Dual-Package Design System Library for JSF and Angular/PrimeNG: Is it Feasible?

I am embarking on a project to develop a design system library which caters to both JSF and Angular/PrimeNG frameworks. The idea is to have two separate packages within the library - one dedicated to ...
Will's user avatar
  • 455
0 votes
0 answers
19 views

Date attribute by JSF cross-field validation [duplicate]

I'm passing an attribute to another field's validator. JSF (Primefaces) <p:column> <p:calendar id="IncommingDate" ...
LEON DENIS's user avatar
0 votes
0 answers
17 views

JSF Primefaces - Picklist: Determine first entry in both tables

Is there a way to determine the first entry in a picklist? I need it because tooltip doesn't work for picklist and I need to place the first tooltip under the first entry
noircc's user avatar
  • 642
0 votes
0 answers
39 views

redirection to another page in another tab by p:link is calling predestroy and initialize of another page

I have two controllers extending an abstractController ActController of @Named and @ViewScopped GptController of @Named and @ViewScopped where in the abstractController have: @inject @param double id ...
Zeinab Abbas's user avatar
2 votes
0 answers
74 views

Primefaces video using StreamedContent - cannot navigate within video player

We are using Primefaces 12, Java 11, Spring 5.3.21, Tomcat 9. We store videos in Azure cloud storage and we want to make them available to view within our application. The azure video url contains a ...
MrChris's user avatar
  • 106
0 votes
0 answers
40 views

Updating List element with Primefaces JSF and Java [duplicate]

I run my project with wildfly and I want to edit List elements with primefaces, I tried 2 different options and I got those errors: First Option: SEVERE [jakarta.enterprise.resource.webcontainer....
fifo's user avatar
  • 1
0 votes
0 answers
28 views

Adding third party CSS to my project dynamically

I'm trying to add an external third party stylesheet to my JSF project. The link to the site hosting the CSS is going to be set inside a database and I need to read the CSS location and apply the ...
Aljoša Novak's user avatar
0 votes
1 answer
28 views

How to cast a javax.faces.model.ResultSetDataModel$ResultSetMap to java.util.HashMap

I am currently developing a web application using JSF. When I try to insert a hashmap from the datatable, it gives me an error, however it works when inserting a object into my function. I then try to ...
JJSutton's user avatar
0 votes
0 answers
8 views

Custom validator for a date inside a JSF iterable component (data table)

I'm working with a data table with multiple objects and I need to validate the date in which one. I was using Omnifaces 'validateMultiple' component but since it is inside the data table, the ...
Diogo Ribeiro's user avatar
0 votes
1 answer
25 views

How do i properly access the .xhtml files when i run my project in Intellij IDEA

I'm trying to learn Java Web Development. I created a new Jakarta EE 8.0 web project with JSF and Servlet as dependecies on Intellij IDEA and i've been trying to change the default home page to a home....
Carlos's user avatar
  • 1
0 votes
0 answers
19 views

How to make rows expandable/retractable with subTable?

I'm actually working in a project where i'm using Java Primefaces and I need to create a datatable that group elements under multiple categories The render. I want to be able to retract the category ...
Gustavo Moreira Vidal Pereira's user avatar
0 votes
1 answer
84 views

Skip validation on a component when an Ajax request is triggered by that component

I have a p:autoComplete component where I want to show links based on the selected item. A visual example: To do so, I update a component when the value of the p:autoComplete changes. Part of this is ...
Jasper de Vries's user avatar

1
2 3 4 5
716