Questions tagged [jsf-2.2]

JavaServer Faces 2.2 is the major JSF upgrade that's part of Java EE 7. It has some significant new features like task flows (Faces Flow), a stateless mode, basic theming (resource library contracts), build-in HTML5 support and a much improved "bare HTML" mode (passthrough elements). Starting from this version, JSF formally supports CDI and for some features even depends on CDI.

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

Deploy JSF EAR on weblogic in openshift

We have JSF/Primefaces app built and deployed as EAR on Weblogic 12c. It connects to Oracle 19c DB. We are required to lift and shift this application to openshift environment. https://blogs.oracle....
Jacob's user avatar
  • 426
0 votes
0 answers
37 views

Bean conflict in spring flow

I try to make a project with spring flow and jsf. I use gradle as build system with the following build.gradle: plugins { id 'java' id 'war' id 'org.springframework.boot' version '3.1....
daskai0815's user avatar
0 votes
1 answer
36 views

JSF EL: how to pass parameters to value expression?

@ManagedBean("myBean") public class MyBean { public String getId(String name) {...} } #{myBean.id('foo')} JSF trying to resolve MyBean.getId('foo')(). How to pass parameter to value ...
eastwater's user avatar
  • 4,812
1 vote
1 answer
78 views

JSF user logs in successfully even after user account was locked by LDAP

I use JSF 2 deployed on Liberty 22.0.0.6 server. My FORM based authentication is against LDAP using j_security_check. It is working and my user can log in/authenticate and get LTPA2 token back. And ...
pixel's user avatar
  • 9,889
0 votes
0 answers
57 views

javax.faces.ViewState high memory consumption despite STATE_SAVING_METHOD is set to client

I have a JSF 2.3.9 application from Glassfish Running on Tomcat 9 and Java 8 My JSF configuration is as follows: <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-...
Mahmoud Saleh's user avatar
-1 votes
1 answer
89 views

Syntax Error In jsp form: var isError = <h:outputText value="#{billpayuploadbean.m_bError}" />;

I have used this syntax in JSP form but it showing uncaught syntax error. Library used: jsf-api-2.2.9.jar var isError = <h:outputText value="#{billpayuploadbean.m_bError}" />; After ...
Akash Babar's user avatar
2 votes
1 answer
852 views

NTFS ADS separator (':') in file name is forbidden

I am using primefaces 12.0.0 fileUpload component and sometimes I see in the log file the following exception : com.sun.faces.lifecycle.ProcessValidationsPhase.execute java.lang....
Mahmoud Saleh's user avatar
0 votes
0 answers
42 views

Serve external static content as homepage

I'm facing a problem (sure, that's why I'm here) while trying to use an external static content (generated by Gatsby & Strapi) as my JSF application welcome page on a Wildfly-17 server (reacheable ...
Skunka's user avatar
  • 530
1 vote
1 answer
91 views

Is there a way to replace richfaces tag "<a:queue" to primefaces and JSF 2.2

I need to migrate my legacy application using JSF 1.2/SEAM to JSF 2.2. I need to replace the following code in one of the template files <a:queue name="ic" requestDelay="250"/&...
Aadhaar Mehrotra's user avatar
0 votes
0 answers
162 views

CDI Interceptor fires BEFORE HttpAuthenticationMechanism validates request

We have a JSF App that uses a custom HttpAuthenticationMechanism for authentication, it forwards users to a login page if they do not have the role required and uses @AutoApplySession for ...
DaveB's user avatar
  • 3,063
0 votes
0 answers
37 views

chrome browser loads CSS resource in corrupted format during page load for first time

I am dealing with a strange issue only in the Chrome browser (version higher than 100). One of our customers reported that our JSF application screens were not loading properly (without CSS), but ...
Rajakrishnan's user avatar
0 votes
0 answers
136 views

JSF ExceptionHandler - Response already committed in some cases

We have implemented a custom ExceptionHandler that attempts to intercept any NonexistentConversationException that are thrown if a user requests a URL with an old cid in it (eg. bookmarked link etc.). ...
DaveB's user avatar
  • 3,063
1 vote
0 answers
51 views

Incorrect auto size column template on CSS Grid when jsf 2.1 generates an inputNumber-button xhtml

I have create a jsf 2.1 page with the following content: <h:panelGroup layout="block" id="grupodetalleCodprovincia" style="display: grid; grid-template-columns: auto auto ...
Foltak's user avatar
  • 11
0 votes
1 answer
148 views

Primefaces Datatable submits wrong data by Celledit

I'm using Primefaces datatable with PF8. Data is coming from ListDatamodel. I want to use Cell editing and implemented it exactly like shown in Primefaces showcase. After 3 or 4 inputs of new values, ...
jsfnewbie's user avatar
0 votes
0 answers
78 views

linkbutton does not open in new tab with target="_blank"

<p:linkButton href="http://myLink/" target="_blank"/>
Braulio A. Sássi's user avatar
0 votes
0 answers
40 views

javax.faces.ViewState parameter duplication in POST request after ajax render

I'm not a pro in jsf and i have a problem. After ajax render was triggered, I received two javax.faces.ViewState parameters with different values in the POST request. What could be the cause of this ...
NeKitKat's user avatar
2 votes
1 answer
541 views

Where is maven respository for jsf mojarra 2.3.18?

Where is maven respository for jsf mojarra 2.3.18? The maven center has mojarra 2.4 that does not exist on github mojarra project. but the maven center does not have version 2.3.18 that is the latest ...
eastwater's user avatar
  • 4,812
1 vote
1 answer
786 views

JSF 2.3 - Cannot invoke "javax.faces.context.FacesContext.getAttributes()" because "this.context" is null

The problem is when execute the lines with jsf tags in the jsp file. I execute a normal jsp file and works. Before the error was "Cannot find the Faces Context", but I update the jar of jsf-...
Samuel García Fernández's user avatar
0 votes
1 answer
509 views

PrimeFaces 11 fileupload

I am just trying to run simple fileupload with primefaces 11. My body is: <h:body> <h:form enctype="multipart/form-data"> <p:fileUpload value="#{fileUploadBean....
fknl's user avatar
  • 3
2 votes
1 answer
2k views

Spring Boot 2.7.1 integration with JSF 2.2 (Mojarra) and Primefaces 6.2.9

I have working set up using below stack - Spring MVC 5 JSF Mojarra 2.2.14 Primefaces 6.2.9 The app is built as a WAR. It has web.xml with FacesServlet configured to service *.xhtml requests. All init ...
Jacob's user avatar
  • 426
0 votes
1 answer
387 views

Primefaces datatable filtered rows become blank after sort

My Primefaces table is non-lazy loaded, displays POJOs and support default filtering and sorting. Filtering works fine alone, sorting works fine alone. But when I type something in any column's ...
cpliu338's user avatar
  • 645
0 votes
0 answers
44 views

Index of DataTable Row on which selectOneMenu Item is selected

I am trying to Implement a editable DataTable, with selectOneMenu in one of the columns. How to get the selected Dropdown value along with its corresponding rowkeyId. The approach I was following is ...
Shubha's user avatar
  • 3
0 votes
2 answers
388 views

Hide rows of datatable based on condition in JSF2

I'm using MyFaces <h:datatable> in JSF2 and I would like to hide rows based on condition like below. But it seems that my condition doesn't work. <h:dataTable value="#{myController....
LDropl's user avatar
  • 858
0 votes
1 answer
440 views

CDI/JSF How to handle session timeout

I have a Jakarta EE8 ( CDI 2 / Weld / JSF 2.3 / Wildfly ) app where I need to execute some cleanup code when the user logs out, manual logout are fine however I now need to fire an event when logout ...
DaveB's user avatar
  • 3,063
0 votes
0 answers
138 views

JSF - how can I conditionally include an external JavaScript in the head section?

I need to conditionally include a couple of JavaScript files. Some are stored locally in my webapp, but one is loaded from an external site. The JSF page has a few sections surrounded by <h:...
user9964388's user avatar
2 votes
1 answer
248 views

JSF - Appropriate bean scope for keeping data between pages but only "browser tab related"

I am creating a web application using JSF 2.2.20 in which I am implementing a "kinda wizard" flow which lets the user filling input fields and go back and forth the view pages through ...
NickAth's user avatar
  • 1,108
0 votes
1 answer
102 views

JSF: how to tell if a ValueExpression does not exist or actually its value is null?

FacesContext context = FacesContext.getCurrentInstance(); ELContext ctx = context.getELContext(); ValueExpression expression = context.getApplication().getExpressionFactory().createValueExpression( ...
eastwater's user avatar
  • 4,812
0 votes
2 answers
626 views

How to invoke a form action only when clicking the submit button

When sending a jsf request without any query parameters to the page with the following jsf code: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsf="http://xmlns.jcp.org/jsf"&...
Rui's user avatar
  • 3,532
0 votes
1 answer
1k views

minValue attribute in inputNumber not working in JSF primefaces?

The inputNumber declaration below will not accept any input, however when I removed the minValue attribute, it accept input. What am not doing wrong here? code xhtml: <a:column> <p:...
Zade Abderrahmane's user avatar
0 votes
1 answer
79 views

How open same page on diffrent tab on browser with different value

I'm on develop a website using JSF, I got a problem on page that contain model Id, when I tried to open a same page twice on different tab browser, the value is same. How to set Id on every page to be ...
Steven a's user avatar
0 votes
1 answer
102 views

JSF p:inputText is not coming in ManagedBean while file upload listener is called

I am using JSF 2.2.20. In the xhtml page, there is one input text field and a file upload (advanced mode) . But my problem is, while listener is called for file-upload, the input text is coming as ...
Jerry's user avatar
  • 301
0 votes
0 answers
181 views

Signature of f:ajax listener in JSF2.2

In my project I am using f:ajax listener with arguments like this: <h:inputText value="#{myBean.person.name}"> <f:ajax event="change" ...
Gio's user avatar
  • 641
0 votes
0 answers
293 views

javax.faces.component.UpdateModelException: javax.el.PropertyNotFoundException. Target Unreachable, identifier resolved to null

Solution of this question already exists in stackoverflow. Although I have asked this question, it is because all available answers doesn't solve my problem/error. So I have asked this question so ...
paawan's user avatar
  • 111
0 votes
1 answer
32 views

problem binding selectOneMenu to fire and action with and ok button

I want to know the selected action from a combobox to invoque methodA or methodB depending on the value selected in the combobox. Here is my web.xhtml: <h:selectOneMenu value="#{...
y.z's user avatar
  • 23
0 votes
1 answer
502 views

Spring Boot 2.5.4 + Jersey + JSF

I built a spring boot + project with rest jersey jax-rs and some GUI's with JSF. It's working, but every time I start the project an error log is generated, I tried to look for what it would be but I ...
Fernando Franzini's user avatar
0 votes
0 answers
54 views

In JSF, can any method on a backing bean be called to determine whether to render component or not?

Say I have a managed bean called for example MyBean which has a method called public boolean someMethod () { if (something) { return true; } return false; } The method above is ...
user2125853's user avatar
  • 1,275
0 votes
0 answers
131 views

Drop down not loading value in a dialog box opened with values from Data table in primefaces and JSF project

I am working on a JSF, primefaces based project. I have a tab where I load the database records in a data table. With every record in the data table, I have a button to edit the details. On click of ...
Megan's user avatar
  • 906
1 vote
0 answers
92 views

Migration of jsf 2.0 app to JSF 2.2 and WAS9 Composite Component Not firing event

I have an app that has been running fine until we migrated to WAS9 app server(which uses jsf2.2 by default). The app has a composite component which contains a primefaces:autosuggest widget. The ...
debowsley's user avatar
0 votes
0 answers
338 views

PRIMEFACES: What java code can be run in XHTML files in PRIMEFACES

Traditionally,all the java methods in XHTML code in Primefaces is of the form <p:commandButton action="#{bean.variable}"> Is there another way to call java methods in XHTML code like &...
Afroid1000's user avatar
0 votes
0 answers
33 views

JSF MAC did not verify! error on clustered environment [duplicate]

I have a JSF (Mojarra 2.2.20) that is deployed on Tomcat 8.5 on a clustered environement. My catalina.out is filled with this error: ERROR: MAC did not verify! I've been reading posts like: Getting ...
maqjav's user avatar
  • 2,320
1 vote
1 answer
1k views

Upgraded to wildfly-24.0.0.Final & deployed EAR with this error

I have two applications I started developing using WildFly 14.0.0.Final in 2018 & now deployed on WildFly 23.0.2.Final (April 2021). MacBook-Pro-2:bin NOTiFY$ ./standalone.sh -b 0.0.0.0 --server-...
NOTiFY's user avatar
  • 1,311
0 votes
0 answers
32 views

Primefaces: How can a component fit exactly inside a datatable

I need to put some commandButtons and some progressBars inside a datatable.They look awful. How do i fit them exactly inside a dataTable cell? That is remove the extra space around the component which ...
Afroid1000's user avatar
0 votes
0 answers
88 views

Why does primefaces return message for ID that doesnt exist

I'm writing a JSF application with primefaces which uses bean validation. I have an input validation message being returned on form submission: <partial-response><changes><update id=&...
Mark W's user avatar
  • 5,844
0 votes
1 answer
110 views

Getting view javax.faces.application.ViewExpiredException in jemeter5.3

Trying to test JSF2.2 application in jmeter5.3. Getting javax.faces.application.ViewExpiredException in each request. Using Regular expression extractor to read view stateenter image description here.
Tanveer's user avatar
1 vote
1 answer
241 views

PrimeFaces DataExporter for DataTable inside TabView

PF 8.0 JSF 2.2: I'm using DataTable inside Tabview, I'm facing issue in DataExporter that it's exporting all tables together even when I target it using @parent..:@child(0). <p:tabView ...
Hamed ElAshry's user avatar
1 vote
1 answer
357 views

JSF - Validation error in 1 component, leads all others in the form to fail

Hey to all in the forum I use JSF Mojarra implementation, version JSF 2.2 I need desperately a help on this. I have a snippet of my page. I have a custom component "example_result.xhtml" ...
Thomas_Mylonas's user avatar
0 votes
0 answers
38 views

How to cible and update a row in a nested data table after invoking an action listener

I'm trying to figure out how to update my nested datatable DataTable_03 after calling the controller.createEntity() method. <p:dataTable id="DataTable_01" rowIndexVar="...
user3072470's user avatar
1 vote
0 answers
87 views

JSF Command button F param goes missing on AJAX re-render of button - Workaround ActionListener

I am facing - and not for the first time i believe - JSF composite component re-render pain. The issue I am facing sounds like it is pretty much the same as: https://forum.primefaces.org/viewtopic.php?...
99Sono's user avatar
  • 3,587
0 votes
0 answers
101 views

Access JSF Session Attributes in Spring boot

I'm using Omnifaces Faces.setSessionAttribute but I'm not able to access these attributes in authentication provider because Facescontext is null.
Hamed ElAshry's user avatar
0 votes
0 answers
192 views

Can show a single 'o:graphicImage' image but not multiple numbers of image

Can select a single image & display it using these two: <p:galleria value="#{imagesController.images}" var="image" panelWidth="1500" panelHeight="1000" ...
NOTiFY's user avatar
  • 1,311

1
2 3 4 5
45