jsf

Icefaces Liferay portal navigation JSF problem

I have a final Submit button in my Application looks like : public String finalSubmitNavigate(){ // LOGIC HERE! FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), null, "success"); return "success"; } I have also set navigation case in my faces-conf...

Ext js with jsf

Hi there, I am newbie on both jsf and extjs and currently i am working on integration of extjs to jsf .I tried to find some samples from internet but i couldn't find any. Is there any examples of it or is it possible to integrate jsf with extjs in a efficent way? Any help would be appreciated. Thanks. ...

How to render based on conditions in facelets?

I am using JSF 1.2 + Facelets + Apache My Faces without Tomahawk or other libs. I use a customized container. I have a scenario to implement but I am not sure How to achieve the same using JSF + Facelets. These are my questions : Appreciate any help you can provide. Thanks! Scenario : I have only one page + one backing bean , By default...

Detailed Comparison of ICEfaces vs RichFaces?

I've seen a few very brief comparisons of ICEfaces vs. RichFaces, but has anyone written a detailed comparison of the two frameworks? I am particularly interested in detailed comparisons of the implementation details of each framework, but I've seen little more than short opinions from people who have only used one of the two. ...

Jsf pages don't show newly added values

I'm using Java EE6 and JSF for making a simple CRUD application. In many of my JSF pages, I have a selectOneMenu for the user to select an existing item. For example, if the user is adding an "Exam", he/she can choose a "Department" from the combo-box, since they have a one-to-many relationship. The problem is that whenever a new Depar...

Multiple validators for one field. JSF

Can you apply multiple validators for one field. i.e: <ice:inputText id="tawjihiAvg" maxlength="5" partialSubmit="true" style="left: 0px; top: 144px; position: absolute; width: 144px" title="#{msg.Tawjihi_Average}" value="#{SessionBean1.tawjihiA...

Getting the PDF created using iText as pop up in JSF

Hi. I want create a pdf using iText. The method which does this is a JSF bean. What I want is, on click of a commandButton in JSF page, the PDF is created. It must then open as popup in a new window(or tab) keeping the JSF page unaltered. How can I accomplish this ? I know there is a way in javascript in which we can open a new window us...

Cannot convert #{ad.userid} of type class java.lang.String to class javax.faces.component.UIComponent

I am getting home page, but when going to a JSP page which has a h:inputText I am getting the following error: root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.el.JspELException: /login.jsp(21,0) '#{ad.userid}' Cannot convert #{ad.userid} of type class java.lang.String to class javax.faces.c...

Richfaces Support

how can i add rich faces support in my simple application in JSF any good tutorial which help me i am using eclipse and tomcat ...

Input field values are null in bean action method

The input field boxes are filled with #{ad.userid} like that in all pages. And even though when I enter valid values they are giving null values in managed bean when accessed in action method. How can this happen and how can I solve this? ...

JSF / JBoss Seam how-to: splitting one List<Item> over several ListBoxes (h:selectManyListbox)

I'm using these classes: ShoppingCart <-ManyToMany-> Item <-ManyToOne-> ItemCategory All of them are JPA @Entitys with relevant getters and setters for relations: Shopping cart: public class ShoppingCart { ... @ManyToMany public List<Item> getItems() { return items; } ... } Item: public class Item { ... @...

[JSF] selectBooleanCheckbox - How do I know which checkbox am I selecting or deselecting?

I develop something like a shopping cart. I can select multiple items (by clicking on the checkbox next to that item) and add them to a list. How can I know which checkbox I am selecting. If I do this <h:selectBooleanCheckbox value="#{document.checked}"/> it only tell me a state of a checkbox is selected or not, but does not tell me w...

Problem in maintaining state in IceFaces

I am using EJB-3 & IceFaces in my application on JBoss. On refreshing the page, the data gets lost & all fields becomes blank. In another similar application where struts is used, no such problem occurs. Is this problem with IceFaces(View-handler/Render-response etc). ...

navigation through icefaces Jsp portlet LIFERAY

having an action function that looks like this: public String action(){ return "success" } and this in my faces-config.xml: <navigation-rule> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/Page2.iface</to-view-id> </navigation-case> </navigation-rule> I have tried all...

ERROR IN TAKING INPUT IN JSF FORM

the login page is displaying "#{ad.userid}" in input text box when loaded . I erased it and entered userid and pwd.when i clicked submit button the action method is called but the value in userid is being null in bean.could you resolve please. ...

JSF 2.0 How to link CSS from resources folder

Hi folks, I'm designing the template for my new JSF2.0 App and I want to use the resources folder to store my css-file. Now I started to create a template-file, but I don't know how to link the css. I tried: <link rel="stylesheet" type="text/css" href="resources/css/style.css"/> ..but didn't work Can somebody help me, pls. THX <...

JSF: Get current page programmatically

In a JSF backing bean (Managed Bean, Weld Bean, doesn't matter), i can get the context path the client is on by calling FacesContext ctx = FacesContext.getCurrentInstance(); String path = ctx.getExternalContext().getRequestContextPath(); This gives me the path the client currently accesses, like /myapplication. Is it also possible to...

error in taking input in jsf form

When login page is loaded the input text box is displaying #{ad.userid}. When I erased it and entered id and pwd and clicked submit button the login method is called but userid property is giving null value in bean. How can this happen and how can I solve it? Here is the login.jsp: <%@ page contentType="text/html"%> <%@ taglib uri="htt...

How to create custom component using JSF 1.2?

Hi, I am new in the JSF world, please tell me step by step answer of how to create JSF custom component i search on the net but i didn't get any proper answer or give me some link which shows how to create custom component. Thanks Vinod ...

@ViewScoped Managed bean loads many times during postback

Hi, I have a calendar, editor, fileUpload and a dataTable primefaces controls on a jsf facelet. Code is as follows, <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <ui:composition xmlns:ui="http://java.sun.com/js...