jsf

How to bypass validation in dataTable? JSF.

I have table with two SelectOneMenu in row. I need populate data in second menu depending on the data that was selected in first. I need bypass validation phase because. I add rows to table dynamically. +-- Table ---------------------------------------------------+ | | | | Fi...

Is ajax4jsf dead? What other AJAX libraries for JSF are there?

I am currently using the JBoss RichFaces JSF component library for the project I am working on. It works quite well in general, especially the AJAX support provided by ajax4jsf (A4J), but I find the usually very inflexible table-markup used for almost every component and all this "skin" stuff of richfaces quite annoying. It would be nice...

How do I add background images in a JSF application using richfaces and CSS?

I'm making a website Using JSF and richfaces, but I need to do some background images on the drop down menu labels. I saw you can use the style attribute by doing .rich-ddmenu-label { background-image: url("images/the_image.gif"); } But that doesn't seem to even try and put a image anywhere. I can use an image using <h:graphi...

How to read in Database Connection parameters?? Web.xml or via Managed Bean??

I have a web application that will be run on a windows 2003 server box. A http link will launch the web application(a jsp form) and that application opens up an oracle database(in the constructor). Different users will be using this application and each user will be sending his or her own username, password as well as the servername and ...

How to navigate with ICEFaces and pass parameters

Hello, I'm using JSF/ICEFaces. I have a table that have many rows with values and I have another page that displays charts. I want to have an icon on every row to chart that specific combo. I know to do regular navigation with JSF by returning a string navigation rule. However, I'm not sure how to pass parameters from the bean correspon...

What is the best way to validate multiple field using JSF framework

i need validate multiple field in jsf, but i cann't find better way . sorry for my bad english. ...

Why not able to get the 'Run on Server' option for JSF jsp page on eclipse, weblogic, JBossTools?

I am trying to run a JSF 1.2 application created using Eclipse Ganemede and JBoss Tools on WebLogic 10.0 MP1 I have created a simple JSF helloworld application and have added a simple JSP. I have configured a weblogic domain and a server using the JBoss Tools plugin through eclipse. When I right click on the JSP file I can only see "Run...

Installation of Jetty into Eclipse

Hi I've had Jetty recommended as a good container for fast and simple development, in my case, Java Server Faces. I wish to use it with my Eclipse IDE (Version: 3.4.1), but quite frankly, can't figure out how. I've tried various outdated plugins, only with large amounts of errors in return, so I'm hoping someone could guide me from dow...

JSF, how to use EL in onclick.

Hi, I want to create links using database columns. I have a backing bean where I 'm connecting to the database. There is no problem with the connection and also no problem with the links names. I can see my links on my browser. I want to use onclick function and that's exactly where the problem starts. How can I use or can I use EL in o...

How many Beans should be enough ?

Hi . I'm a undergrad Student at a German University. I have a team Programming Course .. where we have to use JavaEE/JSF to make a social networking site .. like LinkedIn. Anyway my group has created a lot of beans. Which IMHO is too much . <?xml version='1.0' encoding='UTF-8'?> <!-- =========== FULL CONFIGURATION FILE ============...

Available NetBeans tools for JavaServer Faces (JSF/Facelet) support

Which NetBeans plug-ins or tools would you recommend for JSF development? ...

Handling 'session expired' in JSF web application, running in JBoss AS 5

This question is related to my other question "How to redirect to Login page when Session is expired in Java web application?". Below is what I'm trying to do: I've a JSF web application running on JBoss AS 5 When the user is inactive for, say 15 minutes, I need to log out the user and redirect him to the login page, if he is trying to...

<rich:ajaxValidator> How submit data after validation?

I have such code: <h:inputText id="input" value="#{bean.input}"> <f:convertNumber /> <rich:ajaxValidator event="onblur" /> </h:inputText> I want that if validation was successful data from "input" was stored in my backing bean. And all this must be on "onblur" event. And I'm usin...

how to personnalize item display in a JSF selectOneMenu component ?

Hello, I am actually using h:selectOneMenu to display items, given to it from f:selectItems tag. Rather than displaying a text, I wanna prefer to display an image. How is it possible, since there I have not found any way to render html coming from the selectItem "value" attribute ? Thanks, here is my current code, without any image d...

How can I create an error handling page in ICEfaces (with Facelets)?

I need a little help creating a catch-all error handling page in my ICEfaces application. I'd like to present a user-friendly message along with an exception stack trace. I can redirect to an error page using the following directive in web.xml: <error-page> <error-code>500</error-code> <location>/error.xhtml</location> </error-page...

jsp:include in netbeans

I'm using JSF in NetBeans. All I want to do is to include a page within another page. But whatever I tried, and when I run the main page, I get no error but I can't see my included page in a main page. Why? My main page is: <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xm...

Netbeans, jsp:include

I'm using JSF in NetBeans. All I want to do is to include a page within another page. But whatever I tried, and when I run the main page, I get no error but I can't see my included page in a main page. Why? My main page is: <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xml...

What is the JSF behaviour, if you bind the same backing bean property to two input fields in the same form?

Hello, Is there a defined behaviour in JSF, if two input fields are bound to the same session scoped Backing Bean property. Here is my code snippet <h:form id="myForm"> <h:inputText id="field1" value="#{TheBackingBean.theProperty}" /> <h:inputText id="field2" value="#{TheBackingBean.theProperty}" /> <h:commandButton id="cont...

JSF class diagramming tools

I have been asked to formalize the architecture of our front-end JSF code and beans. My first thoughts were that this would be just like any other class architecture. Fire up visio, make my UML diagrams, and that's that. However, there is no way that I can think of to express things such as bean scope, page navigation, the way differe...

File upload in weblogic portal

Hey I'm trying to get the tomahawk <t:inputFileUpload tag to work for jsf deployed on a weblogic portal. I've basically followed the example found here. but I'm having problems with the enctype on the form tag. <h:form id="welcomeForm" enctype="multipart/form-data"> When is include the enctype attribute in the form tag this means that...