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...
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.
...
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...
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.
...
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...
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...
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...
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...
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
...
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?
...
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 {
...
@...
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...
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).
...
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...
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.
...
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
<...
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...
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...
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
...
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">
<ui:composition xmlns:ui="http://java.sun.com/js...