Questions tagged [jsf-2]

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create web applications. Version 2.x is a major step ahead compared to JSF 1.x, significantly expanding the standard set of components and component libraries.

JavaServer Faces 2.x is a major step ahead as compared to JSF 1.x, significantly expanding the standard set of components and component libraries. Facelets (which was designed specifically for JavaServer Faces) was adopted as the official view technology for JSF 2.x. This eliminates the life-cycle conflicts that existed with JSP, forcing workarounds by Java developers. Lot of things which are hardly possible in JSF 1.x can be done more elegantly in JSF 2.x.

For the real wiki, please jump over to the wiki: https://stackoverflow.com/tags/jsf/info.

15731 questions
4
votes
1 answer

Ajax event never fires in when required="true"

In PrimeFaces when I use:
teccc
  • 43
  • 1
  • 4
4
votes
1 answer

How to fetch multiple parameters with the same key into a JSF managed bean

Let's say I have this request: myview.xhtml?a=1&b=par1&b=par2 In myview.xhtml In MyBean @ManagedProperty("#{param.a}") String…
bluefoot
  • 10,220
  • 11
  • 43
  • 56
4
votes
1 answer

Using CDI (Context & Dependency Injection) backing beans instead of Managed Beans

I rode that is recommended to use CDI beans as backing beans instead of JSF managed beans. So i decided to create a little example, to understand how it works, for a @RequestScopedBean: -instead of using @ManagedBean("beanName") ,i use…
javing
  • 12,307
  • 35
  • 138
  • 211
4
votes
1 answer

conditional in JSF

Can i do conditional logic with JSF, without JSTL tags ? For example, i made a composite component, and want to state, if the 'id' attribute is specified, then define the 'id' attribute, but if the 'id' attribute is not specified, then, dont specify…
Bertie
  • 17,277
  • 45
  • 129
  • 182
4
votes
2 answers

Redirect from unavailable resource in Tomcat

I develop a web application on Apache Tomcat (Version 7) using JSF2. End users will probably fidget around with the address bar of a web application. I want to impose a default behavior on cases when users either call for a subpage that does not…
Simon Voggeneder
  • 377
  • 1
  • 7
  • 16
4
votes
1 answer

Alternative to t:selectOneRadio layout="spread"

I don't often have need for tomahawk components anymore since jsf 2.0 provides great selectOneMenu support and most of other functionality I used to use them for, but when it comes to a selectOneRadio component I don't know of another provider with…
Dave Maple
  • 8,102
  • 4
  • 45
  • 64
4
votes
2 answers

richfaces sending data to the server using ajax

My application lets the user to type text in the message field and when he is typing, at htat time it has to allow the admin to see what is being typed in a different console. for this I need to send data periodically to the managed bean and from…
Sanath
  • 4,774
  • 10
  • 51
  • 81
4
votes
2 answers

$(document).ready() doesn't run after f:ajax rendering

I have some jQuery code that runs on every $(document).ready() event. I also have some tags that do re-rendering of some parts of the page. I noticed that when I rerender a component, the $(document).ready() doesn't get called. Is there a…
Ben
  • 10,020
  • 21
  • 94
  • 157
4
votes
2 answers

Accessing and using .jsf files from the database

What is the best way to enable my webapplication to use JSF files stored in the database? I'd like to be able to dynamically (during runtime) create new JSF pages which will be made available without having to redeploy the application. So in other…
sdegroot
  • 237
  • 3
  • 11
4
votes
1 answer

JSF2: How do I render composite component's children at a specific location within component?

I have problem referencing and displaying composite component's childs like that: Where mycomponent is defined like…
andbi
  • 4,426
  • 5
  • 45
  • 70
4
votes
2 answers

ViewExpiredException on every navigation after migrating from JSF 1.2 to JSF 2.0

I'm attempting to migrate an existing JSF application from JSF 1.2 to JSF 2.0. I was using MyFaces 1.2.8 and want to use MyFaces 2.0.5. What I'm experiencing with MyFaces 2.0.5 is that the initially requested page will render properly, but any…
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
4
votes
1 answer

JSF 2.0 selctOneMenu with SelectItems

Iam new to JSF technology, currently in our project we are using JSF 2.0 with spring and hibernate integration.I have one doubt regarding h:selectOneMenu and f:selectItems. From the Database i'm getting a list of UserBeans.I'm using…
Anil
  • 41
  • 1
  • 4
4
votes
1 answer

RichFaces: Release sort column(s) of a DataTable when multiple column sort mode is on

Currently I'm developing a project (JSF 2.0, RichFaces 3.3.3) in which I have to get a 2-columns DataTable with multiple column sorting enabled (I've done this already via sortMode="Multi" property) but, unlike single column sorting, in the case of…
Francisco Alvarado
  • 2,815
  • 2
  • 26
  • 51
4
votes
1 answer

Steps to deploy latest JSF version in weblogic 10.3

I am going to start working on a new project and I am considering to use JSF latest version but our weblogic server version is 10.3 and I am not sure what are all the steps to follow to deploy JSF 2 application in weblogic 10.3 And also would like…
Solomon
  • 51
  • 3
  • 5
4
votes
3 answers

JSF. Convert value for h:commandLink display

I am passing Status object to h:commandLink value. So it is displayed on the page. The problem is, displayed string is packages.entity.Status@db2674c8. I created converter for Status with annotation @FacesConverter(forClass = Status.class, value =…
amorfis
  • 15,390
  • 15
  • 77
  • 125
1 2 3
99
100