jsf

JSF : Changing component style in jstl c:foreach array not working

This code displays an index and performs an action using RichFaces' <a4j:commandLink> tag. It works technically fine. Only the style of previously selected letter is not been reset (altough the appropriate code part is executed). Does anybody know where the problem is and how to solve it? The JSF page: <?xml version="1.0" encoding="ISO...

How to map the value of a h:selectBooleanCheckbox in a h:dataTable within a h:dataTable?

Hi folks, The h:selectBooleanCheckbox in question is in a h:dataTable (of Extras) within a h:dataTable (of Items) within a h:dataTable (of Categories). Many Items are displayed and each Item can have many Extras. <h:dataTable value="#{bean.categoryList}" var="category"> <h:column> <h:dataTable value="#{category.itemList}" v...

Can I use a JSF navigation rule in a servlet for redirection?

I have to use a few servlets in my Web application. The servlets perform a bit of processing and then redirect the user to an xhtml page. I already have navigation rules in my app, which I'd like to re-use in my servlet. Example: <navigation-case> <from-outcome>bookingFailed</from-outcome> <to-view-id>/SecureUser/Reservation/N...

How to send byte[] as pdf to browser in java web application ?

In action method (JSF) i have something like below: public String getFile() { byte[] pdfData = ... // how to return byte[] as file to web browser user ? } How to send byte[] as pdf to browser ? ...

problem with primefaces schedule

hi all i have tried to write a simple page containing scheduler it looks fine but the listeners like eventSelectListener,dateSelectListener,eventMoveListener never fired! what is the problem this is my code: <%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib u...

ValueChangeListener not working

Hello, This is my code in my managed bean :- <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/...

How to make facelets work?

I have created a new web project and enabled its JSF and Facelets capabilities on MyEclipse, then I deployed it over weblogic. Everything look fine but it does not work for me, it seems that the view-handler is not called at all. What is wrong with it? Could anyone help me? This is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <we...

JSF2 PrimeFaces Installaion

I would like to use PrimeFaces. I followed all the instructions on the webpage My POM: <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>2.0.0</version> </dependency> [...] <repository> <id>prime-repo</id> <name>Prime Technology Maven Repository</name> <...

JSF2 Action parameter

Hi folks I have read about passing parameters from jsf page to managedbean through actionListener. Is it also possible to pass a parameter to a simple action method? Thank you for reading... Thank you both for your advices! I would be lost without you :-) Following worked for me: <h:commandLink id="link" action="#{overviewContro...

JSF - How do I force an application-scoped bean to instantiate at application startup?

I can't seem to find a way to force an application-scoped managed bean to be instantiated/initialized when the web app is started. It seems that application-scoped beans get lazy-instantiated the first time the bean is accessed, not when the web app is started up. For my web app this happens when the first user opens a page in the web ap...

PrimeFaces Captcha not showing under Chrome

Hey there, My JSF web application uses PrimeFaces Captcha. It works properly under Firefox and IE, but it does not show under Chrome. I don't get any errors at page generation, but if I try to post the data with the invisible Captcha, the following error message is shown: j_idt25:j_idt32: Validation Error: Value is not valid. There i...

Orchestra and RichFaces problem

I use Orchestra and RichFaces in my application. When accessing a page in my application I get the following error many times and the page doesn't load: WARN _ReentrantLock:103 - Waited for longer than 30000 milliseconds for access to lock org.apache.myfaces.orchestra.lib._ReentrantLock@78214f6b which is locked by thread http-8080-2 I...

whats the practice to write a review page in JSF?

I have a JSF Page which gets few inputs from the User, I want to show a review page to the user - as what he has given as inputs in the previous page. I am using h:OutputText in the review page to show all the inputs the User had given - but when the user has reviewed and if the user wants to save them - I have a commandButton which is b...

What is a good resource for learning JSF?

A book recommendation or a website would be fine. Also, how proficient must I be with Java to use JSF effectively? Here are some notes about my background and what I need to do with JSF: I'm a web designer; I don't really consider myself a developer. I have a rudimentary understanding of Java and only a small amount of Java programmin...

JSF prettify/beautify HTML output

I want to correct indent before I send a JSF page to the user, because the indent is a little bit messy from JSF and it would be easier to do css stylig with nicier indent. So I want to redirect all output written by JSF rendering to a variable, parse it and then send it to the user. I tried to play a little with and thought that the <f:...

How do you pass view parameters when navigating from an action in JSF2?

From an action in my bean, I'm trying to redirect to another page expecting a view parameter. What is the recommended way to do this in JSF2? E.g., say my source page is: http://localhost/page1.xhtml it has a commandButton that calls an action: <h:commandButton value="submit" action="#{myBean.submit}" /> where my bean looks like: @...

CRUD Pattern JSF

Hi All, i have a task of education to create an aplication that implement CRUD pattern in java with JSF framework.. is there any one help me to explain about CRUD pattern in java and example code of that (CRUD pattern code).. Thank you very much for all. ...

<p:schedule> decode method does not invoke

...

How to control selecting a single item in a rich:pickList

We have a requirement to select only one element from rich:pickList. How do you disable the controls or prevent folks from moving additional data from the left hand side after an item is selected. ...

JSF: how to rendered=#{bean.isRendered} multiple components at one time

I tried this but does not work: <f:verbatim rendered="#{bean.isRendered}"> <h:selectOneMenu> ... </h:selectOneMenu> <h:selectOneMenu> ... </h:selectOneMenu> <h:selectOneMenu> ... </h:selectOneMenu> </f:verbatim> I can put the rendered attributes inside each <h:selectO...