jsf

How to create in-page configuration. Via c:set?

I've got a web application that I need to be able to configure parts of from a JSF page. So for example, imagine my application was split into several smaller parts each with a folder/file structure like below: /partname /config config.xhtml /template generaltemplate.xhtml search.xhtml results.xhtml Se...

How to conditionally style a row in a rich:dataTable

How can I change the style of a particular row based on a condition? I can use JSF EL in rich:column style class attribute, but I have to write for each column. I want to change the entire row. Thanks ...

Can someone describe the component-based paradigm in java web programming?

I am trying to learn java web programming. I come from a perl scripting background and know very little Java, much less JSF/Seam/EJB3.0. I've made a LOT of progress in this very steep learning curve, but there are some large conceptual issues that I think are hampering me a bit. Lately I've turned my attention to learning JSF. Usually...

JSF <c:if> with different object type

Hello, I'm trying to compare two different object in JSF. A String and an Integer, of cours it don't work... //myVar ==> Integer object //myVar2 ==> String <c:if test="${myVar == myVar2}"> YES!!!!!!!! </c:if> I try with myVar.toString but it's wrong. So how to do it ? Thank's ...

Using Java Reflection to initialize member variables

I'm hoping someone can point in the direction of some useful information pertaining to the best practices surrounding the use of Reflection in Java. The current project I'm supporting uses Oracle ADF Faces and we've found that based on the objectives at hand certain pages end up with a vast number of components which need to be initiali...

JSF unit testing

I'm trying to find a practical unit testing framework for JSF. I know about JSFUnit, but this is very impractical to me. I need to include about 10 JARs to my project, and jump through many other hoops just to get it running. I realize that -- due to the need to simulate a platform and a client -- unit testing web applications is diff...

Cannot pickup id with JQuery for the JSF textarea

Hello everybody I have a little problem I am trying to use MartkItUp JQuery rich text editor on JSF textarea component. MY form looks pretty much like this: <h:form id="comment"> <h:inputTextarea id="commentBody" cols="10" rows="10" value="#{postComment.commentBody}" required="true" requiredMessage="Comment Body i...

redirect from jsf ?

Hello everybody, I am working on application with jsp, jstl and jsf for my college project, thats being said, I am as well very new to jsf. Everything is going great so far. However, I seems to have a problem figuring out how to do redirect from managed bean to page with dinamyc parameters. For example article.jsp?article_id=2 Can som...

What is the best method to GZIP a JSF-Seam web app pages

Hi, I'm developing an JSF web app on Tomcat, planning to use Seam in the near future, and I want to add compression of our web pages and resources (i.e. Javascript & CSS files). I'm aware of three methods to GZIP responses in a Java web : Use Ehcache GZIP filter: it's used in Appfuse, so it's probably solid and it checks if the user a...

JSF UIInput in DataTable Footer

I am adding (UIInput) to the footer columns (UIColumn) of a datatable (UIData) created dynamically. The UIData is bound to a datatable tag in the jsp. In the datatable, I just have headers and footers with the header having the labels and footer having the corresponding value in editable textbox. When I change the value and submit the fo...

How can I get values out of a selectOneMenu inside a JSF datatable?

Hi, I have a JSF datatable with a bunch of rows, with each row having a selectOneMenu inside of it like this: <h:form <h:dataTable id="myTable" binding="#{myBean.dataTable}" value="#{myBean.dataTableRows}" var="row" first="0" rows="0" dir="LTR" frame="hsides" rules="all"> <h:column> ...

Firefox not displaying the form

Hi, I'm using AJAX inside my JSF portlet. When the session expires, We are suppose to get the following message(this is the response of AJAX request when session expires) This page is used to hold your data while you are being authorized for your request. You will be forwarded to continue the authorization process. If this does not hap...

Viewing the contents of Session, Application and Request Bean

It would make a lot of sense to be able to monitor the contents of Session, Application and Request Bean while developing a JSF app but as far as I know, I should explicitly add watch points for the parameters I'm interested in. Is there an easier way to see these values as I navigate through my apps the pages? ...

Is it possible to override facelets.development for different environments?

We'd like to set facelets.development to false to suppress stack traces in non-development environments, but we'd like to have it set to true in dev for debugging. Our deployment process dictates one CI build that is migrated through the environments up to production, so we can't use an approach that requires rebuilding the app / rewrit...

How do I specify conditions from 2 different beans in a jsf rendered attribute?

I want to do something along the lines of the following but when I use it like this I get a parse error telling me an entity needs to directly follow the '&' character: <ice:selectManyCheckbox rendered="#{!bean1.condition1 && bean2.condition2}" value="#{bean1.selected}"> <f:selectItems value="#{bean2.items}" /> </ice:selectManyCheckbox>...

I need code in jsf to convert AFP file to PDF

I have written a code to retrieve a Pdf document from remote machine in JSF technology.But i also want to retrieve AFP file by converting it to xml and then to PDF. Please help ...

Transform HTML to JSF

Hi there I hava an unordered List navigation and i wanted to transform this to JSF code. Actually , there is no JSF tag .. Here is the raw-HTML Navigation : <ul id="navbar"> <li id="articles"><a href="Link1">Articles</a></li> <li id="topics"><a href="Link2" title="Topics">Topics</a></li> .... </ul> ..so what should i do ? ...

How to make a form submit when its rendered based on a value in a request scoped bean

Hello everyone! I discovered a problem in my little program, and Im wondering if anyone have any tips or advice on how to solve this problem as best as possible. I have the bean testBean which is in request scope. It contains the following: public class testBean { private boolean internal = false; private String input = ""; public S...

Validating multiple forms on one page using Spring Web Flow and JSF

I'm trying to use JSF to validate two different forms in Spring Web Flows. The problem is that validateAllOnClick seems to fire EVERY clientside validator on the page. Setting processIds to the form I want to validate's ID, or input ID, or validator ID just causes none of the client side validators to fire if I also remove validateALlO...

JSF 1.2 + Spring 2.5. How to?

I am using Spring to manage my DAO & Services. And JSF for UI. I want to use dependency injection in my JSF backing-bean. There is an article that explained how I can do that. But I have two separate projects: one for Service and one for UI. The Spring configuration file is located in Service project. How can I connect both project...