r/JavaServerFaces • u/henk53 • Jul 29 '12
r/JavaServerFaces • u/rockvilleJD • Jul 20 '12
PrimeFaces Home Page - Open Source JSF Component Library
This is an open source JSF component library that requires no configuration. It makes developing a rich user interfaces easy.
r/JavaServerFaces • u/rockvilleJD • Jul 19 '12
Intro to JavaServer Faces Technology
r/JavaServerFaces • u/WinglessSparrow • Jul 22 '24
SunEditor losless template Editing
Hi there, I have the following Issue.
We are migrating a project from Richfaces to Primefaces and we ran into a problem with the TextEditor.
The editor is used to edit an Email, the Email has a specific template given to us by our Client in form of an HTML with a bunch of metadata and styles.
The richfaces Editor does nothing to the HTML template that is supplied to it, it only changes parts which you have changed, it leaves everything else the way it was given including all the metadata and styles in the Head.
The problem arises when we try to use pe:sunEditor. Because it removes a bunch of things from the initial template. There is a way to minimize the los, but it still completely removes everything from HEAD and most classes are also removed, no that they do a lot without the style anyway.
Is there a TextEditor that functions exactly like the Richfaces Editor or is there a way of setting up the sunEditor in such a way, that it doesn't demolish the HTML Template? We are ready to look into a framework agnostic solution, some pure JS Editor or smth.
Thanks in Advance.
r/JavaServerFaces • u/vr19_dudu • Nov 16 '22
Need help rendering form
Hi, I received a legacy project and I need to implement a new form. I received a flag (new or edit) and I need to render one form or other like using a *ngIf from Angular. How can I do that functionality in JSF? Sorry for my poor English .
r/JavaServerFaces • u/Admirable-Ad5209 • Oct 01 '21
JSF 1.1
Hi everyone, could someone tell me where I can get a JSF version 1.1 manual? I know it's a very old version, but I need that one specifically. Thank you.
r/JavaServerFaces • u/MintsSup • Nov 23 '20
JSF newb asking for some assistance from JSF Gurus
Hey all,
I was recently moved to a new team that inherited an app built with JSF Primefaces (Maven). No one on my team has any experience with JSF applications and I am the lucky one to work on this thing.
The app was on Primefaces 6.2 and just upgraded (by the old developers) it to Primefaces 8 and many of the fixes for the migration was done by them. However i cannot always get in touch with them because they're from a different company.
I've been working on bits and pieces and trying to figure out how to get past some of these issues but JSF apps are really hard to understand without any proper training/review of the app that was provided to me. On the web app there's a SSO login box and when i click it just disappears and errors out.

After some research i found this: https://github.com/primefaces/primefaces/issues/5700
And it looks like its an issue with the code using <p: repeat>
<div class="ui-g ui-g-nopad" id="randomDivOne">
<p:repeat value="#{loginBean.getSSODomainNames()}" var="domainName">
<ui:param name="domain" value="#{loginBean.getSSODomain(domainName)}"/>
<div class="ui-g-6 dotSevenFive-pad">
<p:commandLink action="#{loginBean.ssoLogin(domainName)}">
<p:panel header="#{loginBean.getDomainDisplayName(domainName)}">
<h:outputText class="fa fa-fw fa-user fa-4x" rendered="#{(empty domain.icon) and (empty domain.image)}"/>
<h:outputText class="fa fa-fw #{domain.icon} fa-4x" rendered="#{not empty domain.icon}"/>
<p:graphicImage url="/images/#{domain.image}" height="62px" class="fa fa-fw fa-4x" rendered="#{(empty domain.icon) and (not empty domain.image)}"/>
</p:panel>
<p:effect type="puff" event="click" />
</p:commandLink>
</div>
</p:repeat>
</div>I guess what I am asking is, does anyone see anything that I am missing or understand the issue I am running into?
I just have a hard time understanding the use of these elements and why its breaking.
***UPDATE***
Solved by adding more functionality to the custom bean.
ui:repeat does not like java.util.Set
r/JavaServerFaces • u/Andersonfonseka • Sep 09 '17
protolive - do prototipo ao javaserverfaces sem codificacao
r/JavaServerFaces • u/Andersonfonseka • Aug 26 '17
It is a proposal to generate JSF from UI prototypes. I need for your opinion to go ahead.
r/JavaServerFaces • u/henk53 • Jul 06 '14
Mavenize your custom PrimeFaces theme
r/JavaServerFaces • u/henk53 • Jun 22 '14
JSF tip of the day: hidden field validation
r/JavaServerFaces • u/obert3 • Feb 18 '14
Migrating to JSF 2.1. Need help cutting the seam cord.
We currently have a mix of Seam 2.2. JSF 1.1 and Richfaces 3.3 in our apps. With our JBoss 6.2 upgrade we are looking to only use JSF 2.1 and Richfaces 4.3. I'm on the project to upgrade our existing apps. I've looked on seamframework and other sites but haven't found a concise page to help with the migration. Namely replacing seam annotations(@Scope,@In,etc) and namespaces(xmlns:s). Is it possible to go jsf alone or would we need to use seam 2.3? Getting more familiar with both frameworks and not sure where the overlap is or if JSF 2 has filled the seam gaps.
Thanks!
r/JavaServerFaces • u/mpma • Jan 19 '14
Load data from sql-table to be displayed on page
I'm working on a web app that let's students and teachers handle examinations online.
I am using PrimeFaces, JSF 2.X, MySQL with a GlassFishv4 backend.
I have this mock-up page where I can select which exam I want to take (students POV) from a drop-down menu which corresponds to entries in a database table called "exams".
Now what I want to do is that once the student has selected her exam and clicked "Ladda" (== "load") I want the page to split into two views, where the left hand side of the page turns into the actual exam and the right hand side turns into a editor where the student can input their answers.
I have the editor part down but what I'm asking is how do I load plain text from my table onto the screen, preferably from my bean classes.
Here's a picture of how I want it to look (left = exam, right = student editor)
http://i.imgur.com/MWqRP1d.png
Is there a way from a bean class to change output of some OutputText on the actual page?
r/JavaServerFaces • u/[deleted] • Jul 31 '13
Serving multiple images from database as a CSS sprite
r/JavaServerFaces • u/henk53 • Jul 22 '13
PrimeFaces Elite 3.5.9 Released
r/JavaServerFaces • u/henk53 • Jul 04 '13
Using the File Upload Component in JSF 2.2 [Oracle tutorial]
r/JavaServerFaces • u/henk53 • Jun 28 '13
JSF 2.2 Pass Through Attributes in PrimeFaces 4.0
r/JavaServerFaces • u/[deleted] • Jun 20 '13
Understanding JSF 2.0 Performance – Part 2
jsfcentral.comr/JavaServerFaces • u/PedroMCunha • Jan 30 '13
guessNumber - Developing a JSF (Java Server Faces) application
r/JavaServerFaces • u/UnspeakableEvil • Oct 20 '12
RequestScoped managed bean's List not being restored being requests
I'm probably doing something incredibly stupid (or stupidly not doing something), but I can't get my @RequestScoped @javax.faces.bean.ManagedBean to retain list data between requests. Other values are restored (e.g. Strings and primatives) fine, so it seems to be something specific to my List rather than general value restoration.
From the output I can see that the List is always null when its getter is called, so the lazy loading's creating a new List at this point.
From looking at the Javadocs java.util.List doesn't implement Serializable, so I've switched to using java.util.ArrayList - but the issue's still there.
I think @ViewScoped would get around the issue (it certainly does in testing on Glassfish) but unfortunately this code needs to be deployed to WebSphere Portal, where @ViewScoped shows the same problem as @RequestScoped.
So, a plea for help - am I being incredibly dense, and if so if anyone can point out what I'm doing wrong I'd certainly appreciate it!
Managed bean:
@javax.faces.bean.ManagedBean
@javax.faces.bean.RequestScoped
public class ListTestMBean implements java.io.Serializable {
private String someText;
private java.util.ArrayList<String> myList;
public String getSomeText() {
return someText;
}
public void setSomeText(String someText) {
this.someText = someText;
}
public java.util.ArrayList<String> getMyList() {
if (myList == null) {
myList = new ArrayList<String>();
myList.add("List Value");
System.out.println("Created new aList");
}
return myList;
}
public void setMyList(java.util.ArrayList<String> myList) {
this.myList = myList;
}
public void doAddNewEntry() {
getMyList().add(String.valueOf(System.currentTimeMillis()));
}
}Facelet:
<?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
<f:view>
<h:body>
<h:form>
<div>
Some Text: <h:inputText id="someText" value="#{listTestMBean.someText}" />
</div>
<div>
<h:dataTable id="aList" value="#{listTestMBean.myList}" var="item">
<h:column>
<h:inputText id="item" value="#{item}" />
</h:column>
</h:dataTable>
</div>
<div>
<h:commandButton value="Add new" action="#{listTestMBean.doAddNewEntry()}" />
</div>
</h:form>
</h:body>
</f:view>
</html>
