I have a JSF2 application that renders a large table with complex content. Unfortunately, each request takes up to 6 seconds to process. Using simple debug output inside a phase listener, I could see that the performance loss distributes evenly over all phases that process the component tree. So I started up a profiler to see what's goin...
I am pretty happy with JSF 2.0 and I am not familiar with Wicket.
If I would switch from JSF 2.0 to Wicket...
What would I like most in Wicket?
What would I miss most from JSF 2.0?
I guess it's only possible to answer this question if you have experience with both frameworks.
Please don't compare with JSF 1.x.
...
I'm trying to do a search form, depending on the selected item you can do searchs by start to end or month and year
Is it possible to do a form look like this, with Facelets?
using of preference SelectOneRadio
...
how to generate dynamic tree.properties file from database and pass it to tree structure of richfaces.
...
I'm making a web application in which certain pages are login-protected. I have created a JDBC security realm in glassfish for this, and used Form authentication (Similar to the method described here)
I'm using Navigation rules to redirect the user to the secured areas of the website:
<navigation-case>
<from-outcome>showResults...
Is it possible to write own JSF 2.0 components with help of XSLT?
...
I have a question regarding submitting form content with p:commandbutton that tends to work in the ajax way.
If I have a code like this:
<f:verbatim rendered="#{myBean.constructor}"></f:verbatim >
<h:form prependId="false">
....
.....
<p:commandButton value="#{msg.Add_Parameter_Set}" update="addPar...
Hi,
This image should explain the problem clearly. I'm using p:messages from primefaces, but I guess it should apply to h:messages as well.
I want to associate a <p:messages> component with the form in which it is placed. In this case, the message is received by both the components.
The error is generated by the server, and I'm usin...
Hey folks,
I have a problem with my facelets:
I constricted a nav part that displays login information for about curren user and a logout button. Login works properly. But after a user logs out, the nav part of my page displays
Welcome, User (role) [Logout_Button]
Whereas, what I want is the same thing that happens when you get ...
I have a JSF 2.0 project wiht lots of .xhtml files. Due to a security filter I want to put some of the files in a /secure folder to then aply the filter on.
I tried simply moving the files to a folder. But then I get an exception
"/selectRole.xhtml Not Found in ExternalContext as a Resource"
Do I need to add something to the faces-con...
In a ViewHandlerWrapper-implementation I have following code:
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
final String token = UUID.randomUUID().toString();
HttpSession httpSession = (HttpSession) context.getExternalContext().getSession(true);
httpSession.setAtt...
Hi,
Basic question:
Including a page, that contains a component with component id, multiple times cannot be done. But how can i have a reference to that component iside that included page?
Example:
included.xhtml
....
<h:form id="foo"/>
....
<!-- here i need reference to foo component of this page -->
index.xhtml
....
<ui:include...
richfaces file upload is giving error on page : transfer error occured. I am trying to load doc,docx file and i am getting error mentioned above. I am following
http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf?c=fileUpload. Please give relevant solution or some other option for file upload.
...
I am trying to implement a very simple RichFaces application (following the example at the developer guide, but am encountering an error I cannot solve.
My code appears to build and deploy correctly to Tomcat (localhost), but when the index page is opened I get the exception:
javax.faces.view.facelets.TagException: /index.xhtml @13,19 ...
Hello
I am a newbie with Java EE 6. I started with JSF 2.0, Facelets, Managed Beans and really liked it. It was a great switch from JSP and servlets. It also made me a confused person. It may be the lack of my knowledge, but I have many questions swirling in my mind.
Are Facelets and Managed beans a direct replacement of JSP and Servle...
I'm trying to add a very simple file input to my webapp which I'm doing using JSF2.0 and RichFaces 3.3.3, the thing is I really dislike the richfaces fileInput component and I'm looking for something simpler (in terms of use and looks), so far I've found:
tomahawk's fileInput - but tomahawk only supports JSF1.2
trinidad fileInput - but...
Here is my problem: I need to create a (seemingly) simple front-end for a report. The user enters a bunch of numbers, seperated by whitespace or commas, which are the IDs that will be brought up in a report.
I use a converter to change this from a string to a List, and then from there back into a form where the numbers are delimited ...
I have small problem with view datas in h:dataTable item. I have native query which is working properly in database and in java:
SELECT SUM(price_list.first_class_price), SUM(price_list.second_class_price)
FROM price_list, connections
WHERE connections.id = price_list.id_connect
GROUP BY connections.source;
The method in EJB retur...
I have a problem with f:ajax tag. In my previous project, everything worked perfectly. Now I have another project and f:ajax tag doesn't work at all and I don't know why.
I have this in JSF page with Facelets:
<h:form>
...
<h:selectOneMenu id="employeeId" value="#{employeeBean.employeeId}">
<f:selectItems value="#{employeeB...
I have a properties file for localization:
foo=Bar
title=Widget Application
This is tied in as a resource-bundle in the faces-config:
<resource-bundle>
<base-name>com.example.messages.messages</base-name>
<var>msgs</var>
</resource-bundle>
I can access this just fine in the facelets view using EL:
<title>#{msgs.title}<...