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.
35,788
questions
0
votes
0
answers
7
views
How to bundle JSF pages in a separate Web Module in Jakarta EE9? [duplicate]
I am developing a Jakarta EE9 web application with maven. I wonder if it is possible to separate a set of JSF Pages together with CDI Beans in a separate module that can be reused in other Web ...
0
votes
0
answers
9
views
The commandButton needs to be clicked twice to call the method
I am in the process of migrating an application with JSF pages to JBoss #7.4. Started experiencing couple of issues as given below. However, my application with the JSF pages works well with JBoss #6....
0
votes
0
answers
19
views
<o:validateBean>: turns List<DemoData> into List<String>?
I'm using <o:validateBean> to validate my bean at the class level. The code here is mainly from Omnifaces Showcase adapted to my usecase. The bean is:
@Named
@ViewScoped
@ValidProduct(groups = ...
0
votes
0
answers
16
views
Primefaces fileUpload - not able to capture the file/event
I'm trying to upload a file using PrimeFaces, but the fileUploadListener method isn't being invoked after the upload finishes.
view:
<p:layoutUnit position="east" header="...
0
votes
0
answers
61
views
+50
Browser's behavior UTF-8 page with non UTF-8 character (ERROR by ajax) XML Parsing Error: not well-formed
We are developing some JSF web applications with PrimeFaces.
It is possible in inputText to copy paste text with non UTF-8 character like this:
xxxxx
and save the page. But there is an error in the ...
0
votes
0
answers
19
views
unable to access the components of p dialog in primefaces
I am using prime-faces and want to integrate 2 pages for that I used tab view to show the 2 pages in a single page using tabs.
one of my pages has a p dialog panel, when I implement tab view I am ...
0
votes
0
answers
13
views
f:ajax listener method with own class/object as parameter [duplicate]
The signature of f:ajax listener is void listener(AjaxBehaviorEvent event). I've the following working code:
Facelet:
...
<f:ajax listener="#{myBean.myListener(myObject)}" />
...
Bean:...
1
vote
1
answer
30
views
Primefaces Datatable: how to default select a checkbox which is disabled
I have a datatable and a particular row's checkbox is disabled. But it is not showing as selected.
I want to show it as selected by default though it is disabled default.
Please help me how to do that....
-2
votes
0
answers
19
views
ERROR 400 doesn't print the Custom error status page [duplicate]
In my website Im facing the issue like I need to redirect to my custom
page with the purpose to hide the version of Tomcat, which is displayed on
the default 404 HTTP status page.But other error 404-...
2
votes
0
answers
34
views
p:commandLink in facet inside a form causing warning log that it's not inside a form
I created a composite component that renders a form and an ul like this:
<h:form id="formid">
<ul>
<composite:renderFacet name="listItems" />
</ul&...
-1
votes
1
answer
41
views
Java Primefaces Dependency Managed Bean [duplicate]
I have been suffering and trying many times to create a really simple project with primefaces from tutorials. I have done a lot of them and all of them don't work for me.
They all insert only one ...
0
votes
0
answers
33
views
Primeface13 openDynamic doesn't work NPE exception
I'm using Primeface13, java8 and tomcat9 and I'm trying to open a new page using openDynamic.
I have my test2.xhtml page under webapp folder and my level1.xhtml page under WEB-INF/tag/level1.xhtm.
In ...
1
vote
0
answers
57
views
PFE Sheet how to prevent resize with frozen columns in PF7
I have been working with primefaces, and the sheet component meet most of the requirements that I need to accomplish my work, did some research and added contextual menu and other functions, but my ...
0
votes
0
answers
38
views
Cannot retrieve selected date value in Java backend from primefaces p:calendar
I have a primefaces p:calendar component, from which I select different dates.
I need to get the selected date value in Java, but none of the approaches I tried seems to work, as I always get a null ...
0
votes
0
answers
31
views
primefaces add message to upload file component not working
I 'm using Primefaces to upload files, I want to check the size of all the files that will be uploaded if the size is over the limit. I've managed to check the size of all files but I cant display any ...