jsf

JSF 2.0 and TransformerFactory

Hi, I'm going to use Saxon-B 9 in my JSF 2.0 project. But after adding dependency to Saxon & Saxon-dom exceptions began to appear at startup: Sep 25, 2010 6:05:45 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Sep 25, 2010 6:05:45 PM...

java.lang.IllegalArgumentException thrown by mapping error with JSF 2.0 and JPA , why?

Exception java.lang.IllegalArgumentException: partidosPK.idEquipo at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:551) at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:366) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply (ComponentTagHandlerDelegateImpl.java:168)...

Recommended way to organize JSF big application on daily builds

We are working in a big team, building a web application in JSF, where each developer develops new task. For example: User Management, Security, System Parameters etc. We need to create a daily task to build the WAR from the SVN. We know how to use daily builder, SVN etc. Our question is how to save it per module? What is the recomme...

EJB3 Stateful session bean for login and shopping cart and change template

Hello every body now I work with shopping cart, I wonder use between Stateful session beans or HTTP session for cart or login. Everybody have any ideas? In Stateful Session bean how to do compare state for item id, if it equals I will add to item one unit it means if item id = 1 it is coke and user add to cart one more coke it will bec...

Accessing disabled attribute for Primeface Calendar with JavaScript

I have a form where some fields needs to be disabled until a check box is clicked. For JSF-elements are all working fine. The problem is with the primeface elements. For a JSF-element like a dropdown list I do it like this: <h:selectOneMenu value="countryValue" disabled="true" id="countryId"> <f:selectItems value="countries" /> </...

How do I ask my JSF implementation to redirect to new view through flash?

I am using a flash module for site navigation (Freemind flash browser). However, I'm having trouble with navigation/redirection. A typical use case is as follows. From the welcome page, a user clicks on a country. Following that, the flash mind map appears. A user browses the mindmap, and clicks on a desired node. Embedded on this node, ...

How to disable/re-enable JSF component using javascript ?

Hi everybody. I'm developing a JEE application (JSF2 + richfaces 3.3.3 + facelets). I want to disable my h:selectOneMenu when loading my page, and when it finishes loading (using the funtion onload()), i want to re-enable my component. I have something like this: <ui:define name="infosHead"> <script type="text/javascript"> ...

JSF, override HTTP headers

Hi, I strongly need to override JSF 2.0 Content-Type header. Default it is Content-Type:application/xhtml+xml; charset=UTF-8 But I need Content-Type:text/html; charset=UTF-8 Thanks. ...

JSF - First steps into this framework. What is wrong on this configuration?

Im making an easy application just to test the JSF framework. This is actually web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_...

JSF - First steps - Bean doesnt work

Hi. Im moving first steps into JSF framework. I so make these jsp/bean : index.jsp : <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> <%@ taglib prefix="h" ...

dataTable only print out the first item, if the value attribute contains square bracket

I have a h:dataTable that displays ProfileNotification like below: <h:dataTable value="#{myBean.profileNotifications}" var="item" rendered="#{myBean.renderProfileNotification}"> <h:column> <h:form> <h:outputText value="#{item.userName} "...

how can I create variable in JSF to use thro' JSP tag.

I am using tomahawk dataList, where I use rowIndexVar="rowIndex" Inside the dataList I have been using verbatim, where I need to retreive the rowIndex thro' JSP EL ${rowIndex}. How can I achieve it. ...

JSF - Change the action for a h:commandButton (2.0)

Hello. Im new into JSF 2.0. On the last version i understand that if i want change rules about "what send to the client" i just need to configure the faces-config.xml. Now, on version 2.0, how can manage the Action? For example, if i have this on a index.xhtml <h:commandButton id="submit" value="submit" action="response" /> and i nee...

What is the 'official' SEAM way of listening to JSF-SEAM phases?

A simple question on the title. My case is that I want to listen to "before RENDER_RESPONSE" phase, and alter some components internal state. Is PhaseListener the "right way" to do this in SEAM applications? ...

Rendering my own <script> tag instead of the one provided by JSF

Hi guys, I have page which consists of couple fragments and in the "header" fragment I have this tag <webuijsf:script id="script_logo" url="/resources/logo.js"/>. This is rendered in HTML as <script src="/app/resources/logo.js" type="text/javascript" id="Header:script_logo"></script>. This is fine and it is working as expected. Now I nee...

simple birth date form in jsf

hi all.. is there any example of simple form, for input date of birth in jsf.. thank you very much ...

Why is one of the combo boxes empty when I open the same application in two windows?

I am working with icefaces for 3 months. Now I am facing concurrent issues when I open the same application in 2 windows at the same time. For the 1st window values for combobox are coming properly, but for the 2nd window the combo box is empty. I am using IE6, Apache Tomcat 6 and Icefaces 1.8. I also made com.icesoft.faces.concurrentD...

Event are not called in richfaces

Hi everyone! (ps: sorry about my english) I have a text field in my application and for this textfield I have a a4j:support that should work on onchange event! So I have the same form for Include and Update. The user fill the textfield with a code and in my bean I have a method that search the equivalent combobox if that value exists th...

JSF 2.0: Render form fields with initial data using request-scoped beans (to update server data specific to current component)

A pretty normal case: We have a 'portlet' composite component that has two states: expanded and collapsed. Portlets start as expanded, but user can collapse them by clicking on them. This state should be saved to the session, so that once the user refreshes the page or navigates to a new, the portlets remember if they are expanded/colla...

@PostConstruct Annotation and JSF

Hello; I have a problem on my project implemented on JSF 1.2 (MyFaces 1.2.6) and integrated Spring. The problem is about @PostConstruct annotation. It is executed but I see that it is executed before managed properties are populated. First I suspect about managed properties taken from Spring context so I tried a simple integer manage...